Package com.bazaarvoice.jolt.removr.spec
Class RemovrSpec
java.lang.Object
com.bazaarvoice.jolt.removr.spec.RemovrSpec
- Direct Known Subclasses:
RemovrCompositeSpec
,RemovrLeafSpec
-
Field Summary
Fields -
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.protected Integer
Try to "interpret" the spec String value as a non-negative integer.static PathElement
-
Field Details
-
pathElement
-
-
Constructor Details
-
RemovrSpec
-
-
Method Details
-
parse
-
getNonNegativeIntegerFromLiteralPathElement
Try to "interpret" the spec String value as a non-negative integer.- Returns:
- non-negative integer, otherwise null
-
applyToList
Build a list of indices to remove from the input list, using the pathElement from the Spec.- Returns:
- the indicies to remove, otherwise empty List.
-
applyToMap
Build a list of keys to remove from the input map, using the pathElement from the Spec.- Returns:
- the keys to remove, otherwise empty List.
-