Class CountingJsonReader
java.lang.Object
org.apache.drill.exec.store.easy.json.reader.BaseJsonProcessor
org.apache.drill.exec.store.easy.json.reader.BaseJsonReader
org.apache.drill.exec.store.easy.json.reader.CountingJsonReader
- All Implemented Interfaces:
JsonProcessor
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.drill.exec.store.easy.json.reader.BaseJsonProcessor
BaseJsonProcessor.JsonExceptionProcessingState
Nested classes/interfaces inherited from interface org.apache.drill.exec.store.easy.json.JsonProcessor
JsonProcessor.ReadState
-
Field Summary
Fields inherited from class org.apache.drill.exec.store.easy.json.reader.BaseJsonProcessor
currentFieldName, lastSeenJsonToken, parser, workBuf
-
Constructor Summary
ConstructorDescriptionCountingJsonReader
(DrillBuf workBuf, boolean enableNanInf, boolean enableEscapeAnyChar) -
Method Summary
Modifier and TypeMethodDescriptionvoid
protected void
writeDocument
(BaseWriter.ComplexWriter writer, com.fasterxml.jackson.core.JsonToken t) Writes the contents of the json node starting with the specified token into a complex vector.Methods inherited from class org.apache.drill.exec.store.easy.json.reader.BaseJsonReader
createDocumentTopLevelException, write
Methods inherited from class org.apache.drill.exec.store.easy.json.reader.BaseJsonProcessor
getCurrentField, getDefaultMapper, getExceptionWithContext, getExceptionWithContext, ignoreJSONParseError, processJSONException, setIgnoreJSONParseErrors, setSource, setSource, toString
-
Constructor Details
-
CountingJsonReader
-
-
Method Details
-
writeDocument
protected void writeDocument(BaseWriter.ComplexWriter writer, com.fasterxml.jackson.core.JsonToken t) throws IOException Description copied from class:BaseJsonReader
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- Specified by:
writeDocument
in classBaseJsonReader
- Throws:
IOException
-
ensureAtLeastOneField
-