Class JsonReader
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.vector.complex.fn.JsonReader
- All Implemented Interfaces:
JsonProcessor
Deprecated.
This is used by old-style
JSONRecordReader
.
Please use new JsonLoaderImpl
along with
JsonBatchReader
instead of this reader-
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated.Deprecated.void
setSource
(byte[] bytes) Deprecated.void
Deprecated.void
setSource
(com.fasterxml.jackson.databind.JsonNode node) Deprecated.void
setSource
(InputStream is) Deprecated.void
Deprecated.protected void
writeDocument
(BaseWriter.ComplexWriter writer, com.fasterxml.jackson.core.JsonToken t) Deprecated.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, toString
-
Field Details
-
MAX_RECORD_SIZE
public static final int MAX_RECORD_SIZEDeprecated.- See Also:
-
-
Constructor Details
-
JsonReader
Deprecated.
-
-
Method Details
-
ensureAtLeastOneField
Deprecated. -
setSource
Deprecated.- Throws:
IOException
-
setSource
Deprecated.- Specified by:
setSource
in interfaceJsonProcessor
- Overrides:
setSource
in classBaseJsonProcessor
- Throws:
IOException
-
setSource
public void setSource(com.fasterxml.jackson.databind.JsonNode node) Deprecated.- Specified by:
setSource
in interfaceJsonProcessor
- Overrides:
setSource
in classBaseJsonProcessor
-
setSource
Deprecated.- Throws:
IOException
-
setSource
Deprecated.- Throws:
IOException
-
writeDocument
protected void writeDocument(BaseWriter.ComplexWriter writer, com.fasterxml.jackson.core.JsonToken t) throws IOException Deprecated.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
-
getWorkBuf
Deprecated.
-