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 String |
currentFieldName
The name of the current field being parsed.
|
protected com.fasterxml.jackson.core.JsonToken |
lastSeenJsonToken |
protected com.fasterxml.jackson.core.JsonParser |
parser |
protected DrillBuf |
workBuf |
Constructor and Description |
---|
BaseJsonProcessor(DrillBuf workBuf,
boolean enableNanInf,
boolean enableEscapeAnyChar) |
Modifier and Type | Method and Description |
---|---|
protected String |
getCurrentField() |
static com.fasterxml.jackson.databind.ObjectMapper |
getDefaultMapper() |
UserException.Builder |
getExceptionWithContext(Throwable e,
String message) |
UserException.Builder |
getExceptionWithContext(UserException.Builder builder,
String message) |
boolean |
ignoreJSONParseError() |
protected BaseJsonProcessor.JsonExceptionProcessingState |
processJSONException() |
void |
setIgnoreJSONParseErrors(boolean ignoreJSONParseErrors) |
void |
setSource(InputStream is) |
void |
setSource(com.fasterxml.jackson.databind.JsonNode node) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
ensureAtLeastOneField, write
protected com.fasterxml.jackson.core.JsonParser parser
protected DrillBuf workBuf
protected com.fasterxml.jackson.core.JsonToken lastSeenJsonToken
protected String currentFieldName
public BaseJsonProcessor(DrillBuf workBuf, boolean enableNanInf, boolean enableEscapeAnyChar)
public static com.fasterxml.jackson.databind.ObjectMapper getDefaultMapper()
public boolean ignoreJSONParseError()
ignoreJSONParseError
in interface JsonProcessor
public void setIgnoreJSONParseErrors(boolean ignoreJSONParseErrors)
setIgnoreJSONParseErrors
in interface JsonProcessor
public void setSource(InputStream is) throws IOException
setSource
in interface JsonProcessor
IOException
public void setSource(com.fasterxml.jackson.databind.JsonNode node)
setSource
in interface JsonProcessor
public UserException.Builder getExceptionWithContext(UserException.Builder builder, String message)
getExceptionWithContext
in interface JsonProcessor
public UserException.Builder getExceptionWithContext(Throwable e, String message)
getExceptionWithContext
in interface JsonProcessor
protected BaseJsonProcessor.JsonExceptionProcessingState processJSONException() throws IOException
IOException
protected String getCurrentField()
Copyright © 1970 The Apache Software Foundation. All rights reserved.