Package com.bazaarvoice.jolt.shiftr.spec
Class ShiftrCompositeSpec
java.lang.Object
com.bazaarvoice.jolt.shiftr.spec.ShiftrSpec
com.bazaarvoice.jolt.shiftr.spec.ShiftrCompositeSpec
- All Implemented Interfaces:
BaseSpec
,OrderedCompositeSpec
Spec that has children, which it builds and then manages during Transforms.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List
<ShiftrSpec> private static final ComputedKeysComparator
private final ExecutionStrategy
private final Map
<String, ShiftrSpec> private static final SpecBuilder
<ShiftrSpec> private final List
<ShiftrSpec> 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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.bazaarvoice.jolt.common.spec.BaseSpec
getPathElement
-
Field Details
-
orderMap
-
computedKeysComparator
-
specBuilder
-
specialChildren
-
literalChildren
-
computedChildren
-
executionStrategy
-
-
Constructor Details
-
ShiftrCompositeSpec
-
-
Method Details
-
getLiteralChildren
- Specified by:
getLiteralChildren
in interfaceOrderedCompositeSpec
-
getComputedChildren
- Specified by:
getComputedChildren
in interfaceOrderedCompositeSpec
-
determineExecutionStrategy
- Specified by:
determineExecutionStrategy
in interfaceOrderedCompositeSpec
-
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 perform one step in the Shiftr parallel treewalk. Step one level down the input "tree" by carefully handling the List/Map nature the input to get the "one level down" data. Step one level down the Spec tree by carefully and efficiently applying our children to the "one level down" data.
-