Class RemovrLeafSpec

java.lang.Object
com.bazaarvoice.jolt.removr.spec.RemovrSpec
com.bazaarvoice.jolt.removr.spec.RemovrLeafSpec

public class RemovrLeafSpec extends RemovrSpec
Spec for handling the leaf level of the Removr Transform.
  • Constructor Details

    • RemovrLeafSpec

      public RemovrLeafSpec(String rawKey)
  • Method Details

    • applyToMap

      public List<String> applyToMap(Map<String,Object> inputMap)
      Build a list of keys to remove from the input map, using the pathElement from the Spec.
      Specified by:
      applyToMap in class RemovrSpec
      Parameters:
      inputMap - : Input map from which the spec key needs to be removed.
      Returns:
      the keys to remove, otherwise empty List.
    • applyToList

      public List<Integer> applyToList(List<Object> inputList)
      Description copied from class: RemovrSpec
      Build a list of indices to remove from the input list, using the pathElement from the Spec.
      Specified by:
      applyToList in class RemovrSpec
      Parameters:
      inputList - : Input List from which the spec key needs to be removed.
      Returns:
      the indicies to remove, otherwise empty List.