public abstract class BaseJsonProcessor extends Object implements JsonProcessor
| Modifier and Type | Class and Description |
|---|---|
static class |
BaseJsonProcessor.JsonExceptionProcessingState |
JsonProcessor.ReadState| Modifier and Type | Field and Description |
|---|---|
protected com.fasterxml.jackson.core.JsonToken |
lastSeenJsonToken |
protected com.fasterxml.jackson.core.JsonParser |
parser |
protected DrillBuf |
workBuf |
| Constructor and Description |
|---|
BaseJsonProcessor(DrillBuf workBuf) |
| Modifier and Type | Method and Description |
|---|---|
UserException.Builder |
getExceptionWithContext(Throwable e,
String field,
String msg,
Object... args) |
UserException.Builder |
getExceptionWithContext(UserException.Builder exceptionBuilder,
String field,
String msg,
Object... args) |
boolean |
ignoreJSONParseError() |
protected BaseJsonProcessor.JsonExceptionProcessingState |
processJSONException() |
void |
setIgnoreJSONParseErrors(boolean ignoreJSONParseErrors) |
void |
setSource(InputStream is) |
void |
setSource(com.fasterxml.jackson.databind.JsonNode node) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitensureAtLeastOneField, writeprotected com.fasterxml.jackson.core.JsonParser parser
protected DrillBuf workBuf
protected com.fasterxml.jackson.core.JsonToken lastSeenJsonToken
public BaseJsonProcessor(DrillBuf workBuf)
public boolean ignoreJSONParseError()
ignoreJSONParseError in interface JsonProcessorpublic void setIgnoreJSONParseErrors(boolean ignoreJSONParseErrors)
setIgnoreJSONParseErrors in interface JsonProcessorpublic void setSource(InputStream is) throws IOException
setSource in interface JsonProcessorIOExceptionpublic void setSource(com.fasterxml.jackson.databind.JsonNode node)
setSource in interface JsonProcessorpublic UserException.Builder getExceptionWithContext(UserException.Builder exceptionBuilder, String field, String msg, Object... args)
getExceptionWithContext in interface JsonProcessorpublic UserException.Builder getExceptionWithContext(Throwable e, String field, String msg, Object... args)
getExceptionWithContext in interface JsonProcessorprotected BaseJsonProcessor.JsonExceptionProcessingState processJSONException() throws IOException
IOExceptionCopyright © 2017 The Apache Software Foundation. All rights reserved.