Class ShiftrLeafSpec

java.lang.Object
com.bazaarvoice.jolt.shiftr.spec.ShiftrSpec
com.bazaarvoice.jolt.shiftr.spec.ShiftrLeafSpec
All Implemented Interfaces:
BaseSpec

public class ShiftrLeafSpec extends ShiftrSpec
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 Details

  • Constructor Details

    • ShiftrLeafSpec

      public ShiftrLeafSpec(String rawKey, Object rhs)
  • 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