Class ProvidedFieldFactory
java.lang.Object
org.apache.drill.exec.store.easy.json.loader.BaseFieldFactory
org.apache.drill.exec.store.easy.json.loader.ProvidedFieldFactory
- All Implemented Interfaces:
FieldFactory
Create a Drill field listener based on a provided schema. The schema
takes precedence over the JSON syntax: the schema is expected to
accurately describe what will occur for this field in the JSON
input.
-
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) Build a column and its listener based a provided schema.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, scalarParserFor, variantArrayParserFor, variantParserFor
-
Constructor Details
-
ProvidedFieldFactory
-
-
Method Details
-
fieldParser
Build a column and its listener based a provided schema. The user is responsible to ensure that the provided schema accurately reflects the structure of the JSON being parsed. -
parserFor
-