public class ApacheAvroParserImpl extends AvroParserImpl
AvroReadContext implementations.AvroParser.Feature| Modifier and Type | Field and Description |
|---|---|
protected boolean |
_bufferRecyclable
Flag that indicates whether the input buffer is recycable (and
needs to be returned to recycler once we are done) or not.
|
protected org.apache.avro.io.BinaryDecoder |
_decoder
Actual decoder in use, possible same as
_rootDecoder, but
not necessarily, in case of different reader/writer schema in use. |
protected byte[] |
_inputBuffer
Current buffer from which data is read; generally data is read into
buffer from input source, but in some cases pre-loaded buffer
is handed to the parser.
|
protected InputStream |
_inputStream |
protected String |
_textValue
We need to keep track of text values.
|
_branchIndex, _enumIndex, _numberFloat_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| Constructor and Description |
|---|
ApacheAvroParserImpl(com.fasterxml.jackson.core.io.IOContext ctxt,
int parserFeatures,
int avroFeatures,
com.fasterxml.jackson.core.ObjectCodec codec,
byte[] data,
int offset,
int len) |
ApacheAvroParserImpl(com.fasterxml.jackson.core.io.IOContext ctxt,
int parserFeatures,
int avroFeatures,
com.fasterxml.jackson.core.ObjectCodec codec,
InputStream in) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
_closeInput() |
protected void |
_releaseBuffers() |
boolean |
checkInputEnd() |
long |
decodeArrayNext() |
long |
decodeArrayStart() |
com.fasterxml.jackson.core.JsonToken |
decodeBoolean() |
com.fasterxml.jackson.core.JsonToken |
decodeBytes() |
com.fasterxml.jackson.core.JsonToken |
decodeDouble() |
int |
decodeEnum() |
com.fasterxml.jackson.core.JsonToken |
decodeFixed(int size) |
com.fasterxml.jackson.core.JsonToken |
decodeFloat() |
int |
decodeIndex() |
int |
decodeInt() |
com.fasterxml.jackson.core.JsonToken |
decodeIntToken() |
long |
decodeLong() |
com.fasterxml.jackson.core.JsonToken |
decodeLongToken() |
String |
decodeMapKey() |
long |
decodeMapNext() |
long |
decodeMapStart() |
void |
decodeString() |
com.fasterxml.jackson.core.JsonToken |
decodeStringToken() |
Object |
getInputSource() |
String |
getText() |
int |
getText(Writer writer) |
boolean |
hasTextCharacters() |
String |
nextTextValue() |
protected com.fasterxml.jackson.core.JsonToken |
setString(String str) |
long |
skipArray() |
void |
skipBoolean() |
void |
skipBytes() |
void |
skipDouble() |
void |
skipFixed(int size) |
void |
skipFloat() |
void |
skipInt() |
void |
skipLong() |
long |
skipMap() |
void |
skipString() |
_checkNumericValue, _initSchema, branchIndex, close, convertNumberToBigDecimal, convertNumberToBigInteger, convertNumberToDouble, convertNumberToFloat, convertNumberToInt, convertNumberToLong, enumIndex, getFloatValue, getNumberType, getNumberValue, getNumberValueExact, getRemainingElements, isNaN, isRecord, nextFieldName, nextFieldName, nextToken, overrideFormatFeatures, setAvroContext, setBytes, setNumber, setNumber, setNumber, setNumber, skipValue_finishString, canReadTypeId, canUseSchema, configure, disable, enable, getBinaryValue, getCodec, getCurrentLocation, getCurrentName, getEmbeddedObject, getReadCapabilities, getSchema, getTextCharacters, getTextLength, getTextOffset, getTokenLocation, getTypeId, isEnabled, overrideCurrentName, setCodec, setSchema, version_checkStdFeatureChanges, _contentReference, _decodeBase64Escape, _decodeBase64Escape, _decodeEscaped, _eofAsNextChar, _getBigDecimal, _getBigInteger, _getByteArrayBuilder, _getSourceReference, _handleBase64MissingPadding, _handleEOF, _handleUnrecognizedCharacterEscape, _parseIntValue, _parseNumericValue, _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, setRequestPayloadOnErrorprotected InputStream _inputStream
protected byte[] _inputBuffer
protected boolean _bufferRecyclable
If it is not, it also means that parser can NOT modify underlying buffer.
protected org.apache.avro.io.BinaryDecoder _decoder
_rootDecoder, but
not necessarily, in case of different reader/writer schema in use.protected String _textValue
public ApacheAvroParserImpl(com.fasterxml.jackson.core.io.IOContext ctxt,
int parserFeatures,
int avroFeatures,
com.fasterxml.jackson.core.ObjectCodec codec,
InputStream in)
public ApacheAvroParserImpl(com.fasterxml.jackson.core.io.IOContext ctxt,
int parserFeatures,
int avroFeatures,
com.fasterxml.jackson.core.ObjectCodec codec,
byte[] data,
int offset,
int len)
protected void _releaseBuffers()
throws IOException
_releaseBuffers in class com.fasterxml.jackson.core.base.ParserBaseIOExceptionpublic Object getInputSource()
getInputSource in class AvroParserprotected void _closeInput()
throws IOException
_closeInput in class AvroParserIOExceptionpublic boolean hasTextCharacters()
hasTextCharacters in class AvroParserpublic String nextTextValue() throws IOException
nextTextValue in class AvroParserImplIOExceptionpublic String getText() throws IOException
getText in class AvroParserIOExceptionpublic int getText(Writer writer) throws IOException
getText in class AvroParserIOExceptionpublic boolean checkInputEnd()
throws IOException
checkInputEnd in class AvroParserImplIOExceptionpublic com.fasterxml.jackson.core.JsonToken decodeBoolean()
throws IOException
decodeBoolean in class AvroParserImplIOExceptionpublic void skipBoolean()
throws IOException
skipBoolean in class AvroParserImplIOExceptionpublic int decodeInt()
throws IOException
decodeInt in class AvroParserImplIOExceptionpublic com.fasterxml.jackson.core.JsonToken decodeIntToken()
throws IOException
decodeIntToken in class AvroParserImplIOExceptionpublic void skipInt()
throws IOException
skipInt in class AvroParserImplIOExceptionpublic long decodeLong()
throws IOException
decodeLong in class AvroParserImplIOExceptionpublic com.fasterxml.jackson.core.JsonToken decodeLongToken()
throws IOException
decodeLongToken in class AvroParserImplIOExceptionpublic void skipLong()
throws IOException
skipLong in class AvroParserImplIOExceptionpublic com.fasterxml.jackson.core.JsonToken decodeFloat()
throws IOException
decodeFloat in class AvroParserImplIOExceptionpublic void skipFloat()
throws IOException
skipFloat in class AvroParserImplIOExceptionpublic com.fasterxml.jackson.core.JsonToken decodeDouble()
throws IOException
decodeDouble in class AvroParserImplIOExceptionpublic void skipDouble()
throws IOException
skipDouble in class AvroParserImplIOExceptionpublic void decodeString()
throws IOException
decodeString in class AvroParserImplIOExceptionpublic com.fasterxml.jackson.core.JsonToken decodeStringToken()
throws IOException
decodeStringToken in class AvroParserImplIOExceptionpublic void skipString()
throws IOException
skipString in class AvroParserImplIOExceptionpublic com.fasterxml.jackson.core.JsonToken decodeBytes()
throws IOException
decodeBytes in class AvroParserImplIOExceptionpublic void skipBytes()
throws IOException
skipBytes in class AvroParserImplIOExceptionpublic com.fasterxml.jackson.core.JsonToken decodeFixed(int size)
throws IOException
decodeFixed in class AvroParserImplIOExceptionpublic void skipFixed(int size)
throws IOException
skipFixed in class AvroParserImplIOExceptionpublic long decodeArrayStart()
throws IOException
decodeArrayStart in class AvroParserImplIOExceptionpublic long decodeArrayNext()
throws IOException
decodeArrayNext in class AvroParserImplIOExceptionpublic long skipArray()
throws IOException
skipArray in class AvroParserImplIOExceptionpublic String decodeMapKey() throws IOException
decodeMapKey in class AvroParserImplIOExceptionpublic long decodeMapStart()
throws IOException
decodeMapStart in class AvroParserImplIOExceptionpublic long decodeMapNext()
throws IOException
decodeMapNext in class AvroParserImplIOExceptionpublic long skipMap()
throws IOException
skipMap in class AvroParserImplIOExceptionpublic int decodeIndex()
throws IOException
decodeIndex in class AvroParserImplIOExceptionpublic int decodeEnum()
throws IOException
decodeEnum in class AvroParserImplIOExceptionprotected com.fasterxml.jackson.core.JsonToken setString(String str)
setString in class AvroParserImplCopyright © 2022 FasterXML. All rights reserved.