Package com.bazaarvoice.jolt.modifier
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 com.bazaarvoice.jolt.modifier.DataType
DataType.LIST, DataType.MAP, DataType.RUNTIME
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Object
MAP 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 inputboolean
isCompatible
(Object input) Determines if an input is compatible with current DataTypeMethods inherited from class com.bazaarvoice.jolt.modifier.DataType
create, determineDataType
-
Field Details
-
maxIndexFromSpec
private final int maxIndexFromSpec
-
-
Constructor Details
-
LIST
private LIST(int maxIndexFromSpec)
-
-
Method Details
-
createValue
Description copied from class:DataType
MAP and LIST types overrides this method to return appropriate new map or list- Specified by:
createValue
in classDataType
-
expand
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 -
isCompatible
Description copied from class:DataType
Determines if an input is compatible with current DataType- Specified by:
isCompatible
in classDataType
-