Class DataType.LIST

java.lang.Object
com.bazaarvoice.jolt.modifier.DataType
com.bazaarvoice.jolt.modifier.DataType.LIST
Enclosing class:
DataType

public static final class DataType.LIST extends DataType
List type that records maxIndex from spec, and uses that to expand a source (list) properly
  • Field Details

    • maxIndexFromSpec

      private final int maxIndexFromSpec
  • Constructor Details

    • LIST

      private LIST(int maxIndexFromSpec)
  • Method Details

    • createValue

      protected Object createValue()
      Description copied from class: DataType
      MAP and LIST types overrides this method to return appropriate new map or list
      Specified by:
      createValue in class DataType
    • expand

      public Integer expand(Object input)
      Description copied from class: DataType
      LIST overrides this method to expand the source (list) such that in can support an index specified in spec that is outside the range input list, returns original size of the input
      Overrides:
      expand in class DataType
    • isCompatible

      public boolean isCompatible(Object input)
      Description copied from class: DataType
      Determines if an input is compatible with current DataType
      Specified by:
      isCompatible in class DataType