Interface FieldFactory
- All Known Implementing Classes:
BaseFieldFactory
,ExtendedTypeFieldFactory
,InferredFieldFactory
,ProvidedFieldFactory
public interface FieldFactory
Extensible mechanism to build fields for a JSON object (a Drill
row or Map).
-
Method Summary
Modifier and TypeMethodDescriptionfieldParser
(FieldDefn fieldDefn) Create a parser for a field.forceArrayResolution
(FieldDefn fieldDefn) forceNullResolution
(FieldDefn fieldDefn) scalarParserFor
(FieldDefn fieldDefn, ColumnMetadata colSchema) Internal method which allows a custom parser (such as for extended types) to provide the scalar parser for a provided schema.
-
Method Details
-
fieldParser
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. -
ignoredFieldParser
ElementParser ignoredFieldParser() -
forceNullResolution
-
forceArrayResolution
-
scalarParserFor
Internal method which allows a custom parser (such as for extended types) to provide the scalar parser for a provided schema.
-