Class BaseJsonReader

java.lang.Object
org.apache.drill.exec.store.easy.json.reader.BaseJsonProcessor
org.apache.drill.exec.store.easy.json.reader.BaseJsonReader
All Implemented Interfaces:
JsonProcessor
Direct Known Subclasses:
CountingJsonReader, JsonReader

public abstract class BaseJsonReader extends BaseJsonProcessor
Basic reader implementation for json documents.
  • Constructor Details

    • BaseJsonReader

      public BaseJsonReader(DrillBuf workBuf, boolean enableNanInf, boolean enableEscapeAnyChar, boolean skipOuterList)
  • Method Details

    • write

      Throws:
      IOException
    • writeDocument

      protected abstract void writeDocument(BaseWriter.ComplexWriter writer, com.fasterxml.jackson.core.JsonToken t) throws IOException
      Writes the contents of the json node starting with the specified token into a complex vector. Token can take the following values: - START_ARRAY - the top level of json document is an array and skipping of the outer list is disabled - START_OBJECT - the top level of json document is a set of white space delimited maps or skipping of the outer list is enabled
      Throws:
      IOException
    • createDocumentTopLevelException

      protected UserException createDocumentTopLevelException()