public abstract class AvroParserImpl extends AvroParser
AvroReadContext implementations.AvroParser.Feature| Modifier and Type | Field and Description |
|---|---|
protected int |
_branchIndex
Index of the union branch that was followed to reach the current token.
|
protected int |
_enumIndex
Index of the enum that was read as the current token.
|
protected float |
_numberFloat
Value if decoded directly as `float`.
|
_avroContext, _formatFeatures, _objectCodec, _rootSchema_binaryValue, _byteArrayBuilder, _closed, _currInputProcessed, _currInputRow, _currInputRowStart, _expLength, _fractLength, _inputEnd, _inputPtr, _intLength, _ioContext, _nameCopied, _nameCopyBuffer, _nextToken, _numberBigDecimal, _numberBigInt, _numberDouble, _numberInt, _numberLong, _numberNegative, _numTypesValid, _parsingContext, _textBuffer, _tokenInputCol, _tokenInputRow, _tokenInputTotal_currToken, _lastClearedToken, BD_MAX_INT, BD_MAX_LONG, BD_MIN_INT, BD_MIN_LONG, BI_MAX_INT, BI_MAX_LONG, BI_MIN_INT, BI_MIN_LONG, CHAR_NULL, INT_0, INT_9, INT_APOS, INT_ASTERISK, INT_BACKSLASH, INT_COLON, INT_COMMA, INT_CR, INT_e, INT_E, INT_HASH, INT_LBRACKET, INT_LCURLY, INT_LF, INT_MINUS, INT_PERIOD, INT_PLUS, INT_QUOTE, INT_RBRACKET, INT_RCURLY, INT_SLASH, INT_SPACE, INT_TAB, MAX_ERROR_TOKEN_LENGTH, MAX_INT_D, MAX_INT_L, MAX_LONG_D, MIN_INT_D, MIN_INT_L, MIN_LONG_D, NO_BYTES, NO_INTS, NR_BIGDECIMAL, NR_BIGINT, NR_DOUBLE, NR_FLOAT, NR_INT, NR_LONG, NR_UNKNOWN| Modifier | Constructor and Description |
|---|---|
protected |
AvroParserImpl(com.fasterxml.jackson.core.io.IOContext ctxt,
int parserFeatures,
int avroFeatures,
com.fasterxml.jackson.core.ObjectCodec codec) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
_checkNumericValue(int expType) |
void |
_initSchema(AvroSchema schema) |
int |
branchIndex() |
abstract boolean |
checkInputEnd() |
void |
close() |
protected void |
convertNumberToBigDecimal() |
protected void |
convertNumberToBigInteger() |
protected void |
convertNumberToDouble() |
protected void |
convertNumberToFloat() |
protected void |
convertNumberToInt() |
protected void |
convertNumberToLong() |
abstract long |
decodeArrayNext() |
abstract long |
decodeArrayStart() |
abstract com.fasterxml.jackson.core.JsonToken |
decodeBoolean() |
abstract com.fasterxml.jackson.core.JsonToken |
decodeBytes() |
abstract com.fasterxml.jackson.core.JsonToken |
decodeDouble() |
abstract int |
decodeEnum() |
abstract com.fasterxml.jackson.core.JsonToken |
decodeFixed(int size) |
abstract com.fasterxml.jackson.core.JsonToken |
decodeFloat() |
abstract int |
decodeIndex() |
abstract int |
decodeInt() |
abstract com.fasterxml.jackson.core.JsonToken |
decodeIntToken() |
abstract long |
decodeLong() |
abstract com.fasterxml.jackson.core.JsonToken |
decodeLongToken() |
abstract String |
decodeMapKey() |
abstract long |
decodeMapNext() |
abstract long |
decodeMapStart() |
abstract void |
decodeString() |
abstract com.fasterxml.jackson.core.JsonToken |
decodeStringToken() |
int |
enumIndex() |
float |
getFloatValue() |
com.fasterxml.jackson.core.JsonParser.NumberType |
getNumberType() |
Number |
getNumberValue() |
long |
getRemainingElements()
Returns the remaining number of elements in the current block of a map or array
|
boolean |
isNaN() |
boolean |
isRecord() |
String |
nextFieldName() |
boolean |
nextFieldName(com.fasterxml.jackson.core.SerializableString sstr) |
abstract String |
nextTextValue() |
com.fasterxml.jackson.core.JsonToken |
nextToken() |
com.fasterxml.jackson.core.JsonParser |
overrideFormatFeatures(int values,
int mask) |
void |
setAvroContext(AvroReadContext ctxt) |
protected com.fasterxml.jackson.core.JsonToken |
setBytes(byte[] b) |
protected com.fasterxml.jackson.core.JsonToken |
setNumber(double v) |
protected com.fasterxml.jackson.core.JsonToken |
setNumber(float v) |
protected com.fasterxml.jackson.core.JsonToken |
setNumber(int v) |
protected com.fasterxml.jackson.core.JsonToken |
setNumber(long v) |
protected abstract com.fasterxml.jackson.core.JsonToken |
setString(String str) |
abstract long |
skipArray() |
abstract void |
skipBoolean() |
abstract void |
skipBytes() |
abstract void |
skipDouble() |
abstract void |
skipFixed(int size) |
abstract void |
skipFloat() |
abstract void |
skipInt() |
abstract void |
skipLong() |
abstract long |
skipMap() |
abstract void |
skipString() |
void |
skipValue()
Skip to the end of the current structure (array/map/object); This is different
from
skipMap() and skipArray() because it operates at the parser
level instead of at the decoder level and advances the parsing context in addition
to consuming the data from the input. |
_closeInput, _finishString, canReadTypeId, canUseSchema, configure, disable, enable, getBinaryValue, getCodec, getCurrentLocation, getCurrentName, getEmbeddedObject, getInputSource, getSchema, getText, getText, getTextCharacters, getTextLength, getTextOffset, getTokenLocation, getTypeId, hasTextCharacters, isEnabled, overrideCurrentName, setCodec, setSchema, version_checkStdFeatureChanges, _decodeBase64Escape, _decodeBase64Escape, _decodeEscaped, _eofAsNextChar, _getByteArrayBuilder, _getSourceReference, _handleBase64MissingPadding, _handleEOF, _handleUnrecognizedCharacterEscape, _parseIntValue, _parseNumericValue, _releaseBuffers, _reportMismatchedEndMarker, _reportTooLongIntegral, _throwUnquotedSpace, _validJsonTokenList, _validJsonValueList, disable, enable, getBigIntegerValue, getCurrentValue, getDecimalValue, getDoubleValue, getIntValue, getLongValue, getParsingContext, getTokenCharacterOffset, getTokenColumnNr, getTokenLineNr, growArrayBy, isClosed, loadMore, loadMoreGuaranteed, overrideStdFeatures, reportInvalidBase64Char, reportInvalidBase64Char, reset, resetAsNaN, resetFloat, resetInt, setCurrentValue, setFeatureMask_ascii, _asciiBytes, _constructError, _decodeBase64, _getCharDesc, _hasTextualNull, _longIntegerDesc, _longNumberDesc, _reportError, _reportError, _reportError, _reportInputCoercion, _reportInvalidEOF, _reportInvalidEOF, _reportInvalidEOF, _reportInvalidEOFInValue, _reportInvalidEOFInValue, _reportMissingRootWS, _reportUnexpectedChar, _throwInternal, _throwInvalidSpace, _wrapError, clearCurrentToken, currentToken, currentTokenId, getCurrentToken, getCurrentTokenId, getLastClearedToken, getValueAsBoolean, getValueAsDouble, getValueAsInt, getValueAsInt, getValueAsLong, getValueAsLong, getValueAsString, getValueAsString, hasCurrentToken, hasToken, hasTokenId, isExpectedStartArrayToken, isExpectedStartObjectToken, nextValue, reportInvalidNumber, reportOverflowInt, reportOverflowInt, reportOverflowInt, reportOverflowLong, reportOverflowLong, reportOverflowLong, reportUnexpectedNumberChar, skipChildren_codec, _constructError, _reportUnsupportedOperation, canParseAsync, canReadObjectId, configure, currentName, finishToken, getBinaryValue, getBooleanValue, getByteValue, getFeatureMask, getFormatFeatures, getNonBlockingInputFeeder, getObjectId, getShortValue, getValueAsBoolean, getValueAsDouble, isEnabled, isEnabled, nextBooleanValue, nextIntValue, nextLongValue, readBinaryValue, readBinaryValue, readValueAs, readValueAs, readValueAsTree, readValuesAs, readValuesAs, releaseBuffered, releaseBuffered, requiresCustomCodec, setRequestPayloadOnError, setRequestPayloadOnError, setRequestPayloadOnErrorprotected int _branchIndex
protected int _enumIndex
protected float _numberFloat
NOTE: base class (`ParserBase`) has other value storage, but since JSON has no distinction between double, float, only includes `float`.
protected AvroParserImpl(com.fasterxml.jackson.core.io.IOContext ctxt,
int parserFeatures,
int avroFeatures,
com.fasterxml.jackson.core.ObjectCodec codec)
public final com.fasterxml.jackson.core.JsonParser overrideFormatFeatures(int values,
int mask)
overrideFormatFeatures in class AvroParserpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class com.fasterxml.jackson.core.base.ParserBaseIOExceptionpublic com.fasterxml.jackson.core.JsonToken nextToken()
throws IOException
nextToken in class AvroParserIOExceptionpublic String nextFieldName() throws IOException
nextFieldName in class com.fasterxml.jackson.core.JsonParserIOExceptionpublic boolean nextFieldName(com.fasterxml.jackson.core.SerializableString sstr)
throws IOException
nextFieldName in class com.fasterxml.jackson.core.JsonParserIOExceptionpublic abstract String nextTextValue() throws IOException
nextTextValue in class com.fasterxml.jackson.core.JsonParserIOExceptionpublic final void _initSchema(AvroSchema schema) throws com.fasterxml.jackson.core.JsonProcessingException
_initSchema in class AvroParsercom.fasterxml.jackson.core.JsonProcessingExceptionpublic final void skipValue()
throws IOException
skipMap() and skipArray() because it operates at the parser
level instead of at the decoder level and advances the parsing context in addition
to consuming the data from the input.IOException - If there was an issue advancing through the underlying data streampublic final boolean isNaN()
isNaN in class com.fasterxml.jackson.core.base.ParserBasepublic final Number getNumberValue() throws IOException
getNumberValue in class com.fasterxml.jackson.core.base.ParserBaseIOExceptionpublic final com.fasterxml.jackson.core.JsonParser.NumberType getNumberType()
throws IOException
getNumberType in class com.fasterxml.jackson.core.base.ParserBaseIOExceptionpublic final float getFloatValue()
throws IOException
getFloatValue in class com.fasterxml.jackson.core.base.ParserBaseIOExceptionprotected final void _checkNumericValue(int expType)
throws IOException
IOExceptionprotected final void convertNumberToInt()
throws IOException
convertNumberToInt in class com.fasterxml.jackson.core.base.ParserBaseIOExceptionprotected final void convertNumberToLong()
throws IOException
convertNumberToLong in class com.fasterxml.jackson.core.base.ParserBaseIOExceptionprotected final void convertNumberToBigInteger()
throws IOException
convertNumberToBigInteger in class com.fasterxml.jackson.core.base.ParserBaseIOExceptionprotected final void convertNumberToFloat()
throws IOException
IOExceptionprotected final void convertNumberToDouble()
throws IOException
convertNumberToDouble in class com.fasterxml.jackson.core.base.ParserBaseIOExceptionprotected final void convertNumberToBigDecimal()
throws IOException
convertNumberToBigDecimal in class com.fasterxml.jackson.core.base.ParserBaseIOExceptionpublic abstract boolean checkInputEnd()
throws IOException
IOExceptionpublic long getRemainingElements()
public abstract com.fasterxml.jackson.core.JsonToken decodeIntToken()
throws IOException
IOExceptionpublic abstract int decodeInt()
throws IOException
IOExceptionpublic abstract void skipInt()
throws IOException
IOExceptionpublic abstract com.fasterxml.jackson.core.JsonToken decodeLongToken()
throws IOException
IOExceptionpublic abstract long decodeLong()
throws IOException
IOExceptionpublic abstract void skipLong()
throws IOException
IOExceptionpublic abstract com.fasterxml.jackson.core.JsonToken decodeFloat()
throws IOException
IOExceptionpublic abstract void skipFloat()
throws IOException
IOExceptionpublic abstract com.fasterxml.jackson.core.JsonToken decodeDouble()
throws IOException
IOExceptionpublic abstract void skipDouble()
throws IOException
IOExceptionpublic abstract com.fasterxml.jackson.core.JsonToken decodeStringToken()
throws IOException
IOExceptionpublic abstract void decodeString()
throws IOException
IOExceptionpublic abstract void skipString()
throws IOException
IOExceptionpublic abstract com.fasterxml.jackson.core.JsonToken decodeBytes()
throws IOException
IOExceptionpublic abstract void skipBytes()
throws IOException
IOExceptionpublic abstract com.fasterxml.jackson.core.JsonToken decodeFixed(int size)
throws IOException
IOExceptionpublic abstract void skipFixed(int size)
throws IOException
IOExceptionpublic abstract long decodeArrayStart()
throws IOException
IOExceptionpublic abstract long decodeArrayNext()
throws IOException
IOExceptionpublic abstract long skipArray()
throws IOException
IOExceptionpublic abstract String decodeMapKey() throws IOException
IOExceptionpublic abstract long decodeMapStart()
throws IOException
IOExceptionpublic abstract long decodeMapNext()
throws IOException
IOExceptionpublic abstract long skipMap()
throws IOException
IOExceptionpublic abstract com.fasterxml.jackson.core.JsonToken decodeBoolean()
throws IOException
IOExceptionpublic abstract void skipBoolean()
throws IOException
IOExceptionpublic abstract int decodeIndex()
throws IOException
IOExceptionpublic abstract int decodeEnum()
throws IOException
IOExceptionpublic final int branchIndex()
public final int enumIndex()
public final boolean isRecord()
public final void setAvroContext(AvroReadContext ctxt)
protected final com.fasterxml.jackson.core.JsonToken setBytes(byte[] b)
protected final com.fasterxml.jackson.core.JsonToken setNumber(int v)
protected final com.fasterxml.jackson.core.JsonToken setNumber(long v)
protected final com.fasterxml.jackson.core.JsonToken setNumber(float v)
protected final com.fasterxml.jackson.core.JsonToken setNumber(double v)
protected abstract com.fasterxml.jackson.core.JsonToken setString(String str)
Copyright © 2020 FasterXML. All rights reserved.