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