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, waitensureAtLeastOneField, writeprotected 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 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 builder, String message)
getExceptionWithContext in interface JsonProcessorpublic UserException.Builder getExceptionWithContext(Throwable e, String message)
getExceptionWithContext in interface JsonProcessorprotected BaseJsonProcessor.JsonExceptionProcessingState processJSONException() throws IOException
IOExceptionprotected String getCurrentField()
Copyright © 2021 The Apache Software Foundation. All rights reserved.