Class DataType.LIST
java.lang.Object
com.bazaarvoice.jolt.modifier.DataType
com.bazaarvoice.jolt.modifier.DataType.LIST
- Enclosing class:
DataType
List type that records maxIndex from spec, and uses that to expand a source (list) properly
-
Nested Class Summary
Nested classes/interfaces inherited from class DataType
DataType.LIST, DataType.MAP, DataType.RUNTIME -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectMAP and LIST types overrides this method to return appropriate new map or listLIST 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 inputbooleanisCompatible(Object input) Determines if an input is compatible with current DataTypeMethods inherited from class DataType
create, determineDataType
-
Field Details
-
maxIndexFromSpec
private final int maxIndexFromSpec
-
-
Constructor Details
-
LIST
private LIST(int maxIndexFromSpec)
-
-
Method Details
-
createValue
Description copied from class:DataTypeMAP and LIST types overrides this method to return appropriate new map or list- Specified by:
createValuein classDataType
-
expand
-
isCompatible
Description copied from class:DataTypeDetermines if an input is compatible with current DataType- Specified by:
isCompatiblein classDataType
-