Package com.bazaarvoice.jolt.shiftr.spec
Class ShiftrLeafSpec
java.lang.Object
com.bazaarvoice.jolt.shiftr.spec.ShiftrSpec
com.bazaarvoice.jolt.shiftr.spec.ShiftrLeafSpec
- All Implemented Interfaces:
BaseSpec
Leaf level Spec object.
If this Spec's PathElement matches the input (successful parallel tree walk)
this Spec has the information needed to write the given data to the output object.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List
<? extends PathEvaluatingTraversal> private static final TraversalBuilder
Fields inherited from class com.bazaarvoice.jolt.shiftr.spec.ShiftrSpec
pathElement
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.bazaarvoice.jolt.shiftr.spec.ShiftrSpec
getPathElement
-
Field Details
-
TRAVERSAL_BUILDER
-
shiftrWriters
-
-
Constructor Details
-
ShiftrLeafSpec
-
-
Method Details
-
apply
public boolean apply(String inputKey, Optional<Object> inputOptional, WalkedPath walkedPath, Map<String, Object> output, Map<String, Object> context) If this Spec matches the inputkey, then do the work of outputting data and return true.- Returns:
- true if this this spec "handles" the inputkey such that no sibling specs need to see it
-