Class ExtendedTypeFieldFactory
java.lang.Object
org.apache.drill.exec.store.easy.json.loader.BaseFieldFactory
org.apache.drill.exec.store.easy.json.extended.ExtendedTypeFieldFactory
- All Implemented Interfaces:
FieldFactory
-
Field Summary
Fields inherited from class org.apache.drill.exec.store.easy.json.loader.BaseFieldFactory
child, loader
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfieldParser
(FieldDefn fieldDefn) Create a parser for a field.scalarParserFor
(FieldDefn fieldDefn, ColumnMetadata colSchema) Infer the extended parser from the provided field type.Methods inherited from class org.apache.drill.exec.store.easy.json.loader.BaseFieldFactory
buildOuterArrays, forceArrayResolution, forceNullResolution, ignoredFieldParser, loader, multiDimObjectArrayFor, multiDimScalarArrayFor, multiDimVariantArrayParserFor, objectArrayParserFor, objectArrayParserFor, objectParserFor, objectParserFor, objectParserFor, parserFactory, repeatedListSchemaFor, scalarArrayParserFor, scalarArrayParserFor, scalarListenerFor, scalarParserFor, variantArrayParserFor, variantParserFor
-
Constructor Details
-
ExtendedTypeFieldFactory
-
-
Method Details
-
fieldParser
Description copied from interface:FieldFactory
Create a parser for a field. The caller will add the field to the parent object. Called only for projected fields. May add a "deferred" undefined field if the value type is undefined. Such fields are added to the underlying row or map at a later time. -
scalarParserFor
Infer the extended parser from the provided field type. The user is required to pick field type consistent with this mapping from their data types. Cannot handle, say, a column which is an int in one row and long in another.- Specified by:
scalarParserFor
in interfaceFieldFactory
- Overrides:
scalarParserFor
in classBaseFieldFactory
-