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

public class ProvidedFieldFactory extends BaseFieldFactory
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.
  • Constructor Details

  • Method Details

    • fieldParser

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

      public ElementParser parserFor(FieldDefn fieldDefn)