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, AVRO_READ_CAPABILITIES
_binaryValue, _byteArrayBuilder, _closed, _currInputProcessed, _currInputRow, _currInputRowStart, _expLength, _fractLength, _inputEnd, _inputPtr, _intLength, _ioContext, _nameCopied, _nameCopyBuffer, _nextToken, _numberBigDecimal, _numberBigInt, _numberDouble, _numberInt, _numberLong, _numberNegative, _numberString, _numTypesValid, _parsingContext, _textBuffer, _tokenInputCol, _tokenInputRow, _tokenInputTotal, JSON_READ_CAPABILITIES
_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() |
Number |
getNumberValueExact() |
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, getReadCapabilities, getSchema, getText, getText, getTextCharacters, getTextLength, getTextOffset, getTokenLocation, getTypeId, hasTextCharacters, isEnabled, overrideCurrentName, setCodec, setSchema, version
_checkStdFeatureChanges, _contentReference, _decodeBase64Escape, _decodeBase64Escape, _decodeEscaped, _eofAsNextChar, _getBigDecimal, _getBigInteger, _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, _reportUnexpectedNumberChar, _throwInternal, _throwInvalidSpace, _wrapError, clearCurrentToken, currentToken, currentTokenId, getCurrentToken, getCurrentTokenId, getLastClearedToken, getValueAsBoolean, getValueAsDouble, getValueAsInt, getValueAsInt, getValueAsLong, getValueAsLong, getValueAsString, getValueAsString, hasCurrentToken, hasToken, hasTokenId, isExpectedNumberIntToken, isExpectedStartArrayToken, isExpectedStartObjectToken, nextValue, reportInvalidNumber, reportOverflowInt, reportOverflowInt, reportOverflowInt, reportOverflowLong, reportOverflowLong, reportOverflowLong, reportUnexpectedNumberChar, skipChildren
_codec, _constructError, _constructReadException, _constructReadException, _constructReadException, _constructReadException, _constructReadException, _reportUnsupportedOperation, assignCurrentValue, canParseAsync, canReadObjectId, configure, currentLocation, currentName, currentTokenLocation, currentValue, 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, setRequestPayloadOnError
protected 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 AvroParser
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class com.fasterxml.jackson.core.base.ParserBase
IOException
public com.fasterxml.jackson.core.JsonToken nextToken() throws IOException
nextToken
in class AvroParser
IOException
public String nextFieldName() throws IOException
nextFieldName
in class com.fasterxml.jackson.core.JsonParser
IOException
public boolean nextFieldName(com.fasterxml.jackson.core.SerializableString sstr) throws IOException
nextFieldName
in class com.fasterxml.jackson.core.JsonParser
IOException
public abstract String nextTextValue() throws IOException
nextTextValue
in class com.fasterxml.jackson.core.JsonParser
IOException
public final void _initSchema(AvroSchema schema) throws com.fasterxml.jackson.core.JsonProcessingException
_initSchema
in class AvroParser
com.fasterxml.jackson.core.JsonProcessingException
public 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.ParserBase
public final Number getNumberValue() throws IOException
getNumberValue
in class com.fasterxml.jackson.core.base.ParserBase
IOException
public final Number getNumberValueExact() throws IOException
getNumberValueExact
in class com.fasterxml.jackson.core.base.ParserBase
IOException
public final com.fasterxml.jackson.core.JsonParser.NumberType getNumberType() throws IOException
getNumberType
in class com.fasterxml.jackson.core.base.ParserBase
IOException
public final float getFloatValue() throws IOException
getFloatValue
in class com.fasterxml.jackson.core.base.ParserBase
IOException
protected final void _checkNumericValue(int expType) throws IOException
IOException
protected final void convertNumberToInt() throws IOException
convertNumberToInt
in class com.fasterxml.jackson.core.base.ParserBase
IOException
protected final void convertNumberToLong() throws IOException
convertNumberToLong
in class com.fasterxml.jackson.core.base.ParserBase
IOException
protected final void convertNumberToBigInteger() throws IOException
convertNumberToBigInteger
in class com.fasterxml.jackson.core.base.ParserBase
IOException
protected final void convertNumberToFloat() throws IOException
convertNumberToFloat
in class com.fasterxml.jackson.core.base.ParserBase
IOException
protected final void convertNumberToDouble() throws IOException
convertNumberToDouble
in class com.fasterxml.jackson.core.base.ParserBase
IOException
protected final void convertNumberToBigDecimal() throws IOException
convertNumberToBigDecimal
in class com.fasterxml.jackson.core.base.ParserBase
IOException
public abstract boolean checkInputEnd() throws IOException
IOException
public long getRemainingElements()
public abstract com.fasterxml.jackson.core.JsonToken decodeIntToken() throws IOException
IOException
public abstract int decodeInt() throws IOException
IOException
public abstract void skipInt() throws IOException
IOException
public abstract com.fasterxml.jackson.core.JsonToken decodeLongToken() throws IOException
IOException
public abstract long decodeLong() throws IOException
IOException
public abstract void skipLong() throws IOException
IOException
public abstract com.fasterxml.jackson.core.JsonToken decodeFloat() throws IOException
IOException
public abstract void skipFloat() throws IOException
IOException
public abstract com.fasterxml.jackson.core.JsonToken decodeDouble() throws IOException
IOException
public abstract void skipDouble() throws IOException
IOException
public abstract com.fasterxml.jackson.core.JsonToken decodeStringToken() throws IOException
IOException
public abstract void decodeString() throws IOException
IOException
public abstract void skipString() throws IOException
IOException
public abstract com.fasterxml.jackson.core.JsonToken decodeBytes() throws IOException
IOException
public abstract void skipBytes() throws IOException
IOException
public abstract com.fasterxml.jackson.core.JsonToken decodeFixed(int size) throws IOException
IOException
public abstract void skipFixed(int size) throws IOException
IOException
public abstract long decodeArrayStart() throws IOException
IOException
public abstract long decodeArrayNext() throws IOException
IOException
public abstract long skipArray() throws IOException
IOException
public abstract String decodeMapKey() throws IOException
IOException
public abstract long decodeMapStart() throws IOException
IOException
public abstract long decodeMapNext() throws IOException
IOException
public abstract long skipMap() throws IOException
IOException
public abstract com.fasterxml.jackson.core.JsonToken decodeBoolean() throws IOException
IOException
public abstract void skipBoolean() throws IOException
IOException
public abstract int decodeIndex() throws IOException
IOException
public abstract int decodeEnum() throws IOException
IOException
public 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 © 2022 FasterXML. All rights reserved.