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

public class ExtendedTypeFieldFactory extends BaseFieldFactory
  • Constructor Details

  • Method Details

    • fieldParser

      public ElementParser fieldParser(FieldDefn fieldDefn)
      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

      public ValueParser scalarParserFor(FieldDefn fieldDefn, ColumnMetadata colSchema)
      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 interface FieldFactory
      Overrides:
      scalarParserFor in class BaseFieldFactory