public class JsonReader extends BaseJsonReader
Modifier and Type | Class and Description |
---|---|
static class |
JsonReader.Builder |
BaseJsonProcessor.JsonExceptionProcessingState
JsonProcessor.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(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(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, write
getCurrentField, getDefaultMapper, getExceptionWithContext, getExceptionWithContext, ignoreJSONParseError, processJSONException, setIgnoreJSONParseErrors, toString
public static final int MAX_RECORD_SIZE
public JsonReader(JsonReader.Builder builder)
public void ensureAtLeastOneField(BaseWriter.ComplexWriter writer)
public void setSource(int start, int end, DrillBuf buf) throws IOException
IOException
public void setSource(InputStream is) throws IOException
setSource
in interface JsonProcessor
setSource
in class BaseJsonProcessor
IOException
public void setSource(com.fasterxml.jackson.databind.JsonNode node)
setSource
in interface JsonProcessor
setSource
in class BaseJsonProcessor
public void setSource(String data) throws IOException
IOException
public void setSource(byte[] bytes) throws IOException
IOException
protected void writeDocument(BaseWriter.ComplexWriter writer, com.fasterxml.jackson.core.JsonToken t) throws IOException
BaseJsonReader
writeDocument
in class BaseJsonReader
IOException
public DrillBuf getWorkBuf()
Copyright © 1970 The Apache Software Foundation. All rights reserved.