public class JsonReader extends BaseJsonReader
| Modifier and Type | Class and Description |
|---|---|
static class |
JsonReader.Builder |
BaseJsonProcessor.JsonExceptionProcessingStateJsonProcessor.ReadState| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_RECORD_SIZE |
currentFieldName, lastSeenJsonToken, parser, workBuf| Constructor and Description |
|---|
JsonReader(JsonReader.Builder builder) |
| Modifier and Type | Method and Description |
|---|---|
void |
ensureAtLeastOneField(org.apache.drill.exec.vector.complex.writer.BaseWriter.ComplexWriter writer) |
DrillBuf |
getWorkBuf() |
void |
setSource(byte[] bytes) |
void |
setSource(InputStream is) |
void |
setSource(int start,
int end,
DrillBuf buf) |
void |
setSource(com.fasterxml.jackson.databind.JsonNode node) |
void |
setSource(String data) |
protected void |
writeDocument(org.apache.drill.exec.vector.complex.writer.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.
|
createDocumentTopLevelException, writegetCurrentField, getDefaultMapper, getExceptionWithContext, getExceptionWithContext, ignoreJSONParseError, processJSONException, setIgnoreJSONParseErrors, toStringpublic static final int MAX_RECORD_SIZE
public JsonReader(JsonReader.Builder builder)
public void ensureAtLeastOneField(org.apache.drill.exec.vector.complex.writer.BaseWriter.ComplexWriter writer)
public void setSource(int start,
int end,
DrillBuf buf)
throws IOException
IOExceptionpublic void setSource(InputStream is) throws IOException
setSource in interface JsonProcessorsetSource in class BaseJsonProcessorIOExceptionpublic void setSource(com.fasterxml.jackson.databind.JsonNode node)
setSource in interface JsonProcessorsetSource in class BaseJsonProcessorpublic void setSource(String data) throws IOException
IOExceptionpublic void setSource(byte[] bytes)
throws IOException
IOExceptionprotected void writeDocument(org.apache.drill.exec.vector.complex.writer.BaseWriter.ComplexWriter writer,
com.fasterxml.jackson.core.JsonToken t)
throws IOException
BaseJsonReaderwriteDocument in class BaseJsonReaderIOExceptionpublic DrillBuf getWorkBuf()
Copyright © 2021 The Apache Software Foundation. All rights reserved.