public class JsonReader extends BaseJsonProcessor
BaseJsonProcessor.JsonExceptionProcessingStateJsonProcessor.ReadState| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_RECORD_SIZE |
lastSeenJsonToken, parser, workBuf| Constructor and Description |
|---|
JsonReader(DrillBuf managedBuf,
boolean allTextMode,
boolean skipOuterList,
boolean readNumbersAsDouble) |
JsonReader(DrillBuf managedBuf,
List<SchemaPath> columns,
boolean allTextMode,
boolean skipOuterList,
boolean readNumbersAsDouble) |
| 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) |
JsonProcessor.ReadState |
write(BaseWriter.ComplexWriter writer) |
getExceptionWithContext, getExceptionWithContext, ignoreJSONParseError, processJSONException, setIgnoreJSONParseErrorspublic static final int MAX_RECORD_SIZE
public JsonReader(DrillBuf managedBuf, boolean allTextMode, boolean skipOuterList, boolean readNumbersAsDouble)
public JsonReader(DrillBuf managedBuf, List<SchemaPath> columns, boolean allTextMode, boolean skipOuterList, boolean readNumbersAsDouble)
public void ensureAtLeastOneField(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
IOExceptionpublic JsonProcessor.ReadState write(BaseWriter.ComplexWriter writer) throws IOException
IOExceptionpublic DrillBuf getWorkBuf()
Copyright © 2017 The Apache Software Foundation. All rights reserved.