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 ComputedKeysComparatorprivate final ExecutionStrategyprivate final Map<String, ShiftrSpec> private static final SpecBuilder<ShiftrSpec> private final List<ShiftrSpec> Fields inherited from class ShiftrSpec
pathElement -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class ShiftrSpec
getPathElementMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BaseSpec
getPathElement
-
Field Details
-
orderMap
-
computedKeysComparator
-
specBuilder
-
specialChildren
-
literalChildren
-
computedChildren
-
executionStrategy
-
-
Constructor Details
-
ShiftrCompositeSpec
-
-
Method Details
-
getLiteralChildren
- Specified by:
getLiteralChildrenin interfaceOrderedCompositeSpec
-
getComputedChildren
- Specified by:
getComputedChildrenin interfaceOrderedCompositeSpec
-
determineExecutionStrategy
- Specified by:
determineExecutionStrategyin 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.
-