Package com.bazaarvoice.jolt.removr.spec
Class RemovrLeafSpec
- java.lang.Object
-
- com.bazaarvoice.jolt.removr.spec.RemovrSpec
-
- com.bazaarvoice.jolt.removr.spec.RemovrLeafSpec
-
public class RemovrLeafSpec extends RemovrSpec
Spec for handling the leaf level of the Removr Transform.
-
-
Field Summary
-
Fields inherited from class com.bazaarvoice.jolt.removr.spec.RemovrSpec
pathElement
-
-
Constructor Summary
Constructors Constructor Description RemovrLeafSpec(java.lang.String rawKey)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.Integer>
applyToList(java.util.List<java.lang.Object> inputList)
Build a list of indices to remove from the input list, using the pathElement from the Spec.java.util.List<java.lang.String>
applyToMap(java.util.Map<java.lang.String,java.lang.Object> inputMap)
Build a list of keys to remove from the input map, using the pathElement from the Spec.-
Methods inherited from class com.bazaarvoice.jolt.removr.spec.RemovrSpec
getNonNegativeIntegerFromLiteralPathElement, parse
-
-
-
-
Method Detail
-
applyToMap
public java.util.List<java.lang.String> applyToMap(java.util.Map<java.lang.String,java.lang.Object> inputMap)
Build a list of keys to remove from the input map, using the pathElement from the Spec.- Specified by:
applyToMap
in classRemovrSpec
- Parameters:
inputMap
- : Input map from which the spec key needs to be removed.- Returns:
- the keys to remove, otherwise empty List.
-
applyToList
public java.util.List<java.lang.Integer> applyToList(java.util.List<java.lang.Object> inputList)
Description copied from class:RemovrSpec
Build a list of indices to remove from the input list, using the pathElement from the Spec.- Specified by:
applyToList
in classRemovrSpec
- Parameters:
inputList
- : Input List from which the spec key needs to be removed.- Returns:
- the indicies to remove, otherwise empty List.
-
-