AvroReadContext implementations.
| 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
Hides com. |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected final void | |
| public final void | _initSchema(AvroSchema schema)
Implements abstract com.
|
| public final int | |
| public abstract boolean | |
| public void | close()
Overrides com. Implements java. Closes the parser so that no further iteration or data access
can be made; will also close the underlying input source
if parser either owns the input source, or feature
|
| protected final void | |
| protected final void | |
| protected final void | |
| protected final void | |
| protected final void | |
| protected final void | |
| public abstract long | |
| public abstract long | |
| public abstract JsonToken | |
| public abstract JsonToken | |
| public abstract JsonToken | |
| public abstract int | |
| public abstract JsonToken | |
| public abstract JsonToken | |
| public abstract int | |
| public abstract int | |
| public abstract JsonToken | |
| public abstract long | |
| public abstract JsonToken | |
| public abstract String | |
| public abstract long | |
| public abstract long | |
| public abstract void | |
| public abstract JsonToken | |
| public final int | |
| public final float | getFloatValue()
Overrides com. Numeric accessor that can be called when the current
token is of type |
| public final JsonParser. | getNumberType()
Overrides com. If current token is of type
|
| public JsonParser. | getNumberTypeFP()
Overrides com. If current token is of type
|
| public final Number | getNumberValue()
Overrides com. Generic number value accessor method that will work for all kinds of numeric values. |
| public final Number | getNumberValueExact()
Overrides com. Method similar to |
| public long | getRemainingElements()
Returns the remaining number of elements in the current block of a map or array |
| public final boolean | isNaN()
Overrides com. Accessor for checking whether current token is a special "not-a-number" (NaN) token (including both "NaN" AND positive/negative infinity!). |
| public final boolean | |
| public String | nextFieldName()
Overrides com. Method that fetches next token (as if calling |
| public boolean | nextFieldName(SerializableString
Property name to compare next token to (if next token is
sstr)JsonToken.FIELD_NAME)Overrides com. Method that fetches next token (as if calling |
| public abstract String | nextTextValue()
Overrides com. Method that fetches next token (as if calling |
| public JsonToken | nextToken()
Implements abstract com. Main iteration method, which will advance stream enough to determine type of the next token, if any. |
| public final JsonParser | overrideFormatFeatures(int
Bit mask of set/clear state for features to change values, int Bit mask of features to change mask)Implements abstract com. Bulk set method for (re)setting states of |
| public final void | |
| protected final JsonToken | |
| protected final JsonToken | |
| protected final JsonToken | |
| protected final JsonToken | |
| protected final JsonToken | |
| protected abstract JsonToken | |
| public abstract long | Returns: Either 0, in which case all entries have been successfully skipped; or positive non-zero number to indicate elements that caller has to skip
|
| public abstract void | |
| public abstract void | |
| public abstract void | |
| public abstract void | |
| public abstract void | |
| public abstract void | |
| public abstract void | |
| public abstract long | Returns: Either 0, in which case all entries have been successfully skipped; or positive non-zero number to indicate map entries that caller has to skip
|
| public abstract void | |
| public final void | skipValue()
Skip to the end of the current structure (array/map/object); This is different
from |
| _branchIndex | back to summary |
|---|---|
| protected int _branchIndex Index of the union branch that was followed to reach the current token. This is cleared when the next token is read.
| |
| _enumIndex | back to summary |
|---|---|
| protected int _enumIndex Index of the enum that was read as the current token. This is cleared when the next token is read.
| |
| _numberFloat | back to summary |
|---|---|
| protected float _numberFloat Hides com. Value if decoded directly as `float`. Note base class (`ParserBase`) has other value storage, but since JSON has no distinction between double, float, only includes `float`.
| |
| AvroParserImpl | back to summary |
|---|---|
| protected AvroParserImpl(IOContext ctxt, int parserFeatures, int avroFeatures, ObjectCodec codec) | |
| _checkNumericValue | back to summary |
|---|---|
| protected final void _checkNumericValue(int expType) throws IOException | |
| _initSchema | back to summary |
|---|---|
| public final void _initSchema(AvroSchema schema) throws IOException Implements abstract com.
| |
| branchIndex | back to summary |
|---|---|
| public final int branchIndex() | |
| checkInputEnd | back to summary |
|---|---|
| public abstract boolean checkInputEnd() throws IOException | |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides com. Implements java. Doc from com. Closes the parser so that no further iteration or data access
can be made; will also close the underlying input source
if parser either owns the input source, or feature
| |
| convertNumberToBigDecimal | back to summary |
|---|---|
| protected final void convertNumberToBigDecimal() throws IOException Overrides com.
| |
| convertNumberToBigInteger | back to summary |
|---|---|
| protected final void convertNumberToBigInteger() throws IOException Overrides com.
| |
| convertNumberToDouble | back to summary |
|---|---|
| protected final void convertNumberToDouble() throws IOException Overrides com.
| |
| convertNumberToFloat | back to summary |
|---|---|
| protected final void convertNumberToFloat() throws IOException Overrides com.
| |
| convertNumberToInt | back to summary |
|---|---|
| protected final void convertNumberToInt() throws IOException Overrides com.
| |
| convertNumberToLong | back to summary |
|---|---|
| protected final void convertNumberToLong() throws IOException Overrides com.
| |
| decodeArrayNext | back to summary |
|---|---|
| public abstract long decodeArrayNext() throws IOException | |
| decodeArrayStart | back to summary |
|---|---|
| public abstract long decodeArrayStart() throws IOException | |
| decodeBoolean | back to summary |
|---|---|
| public abstract JsonToken decodeBoolean() throws IOException | |
| decodeBytes | back to summary |
|---|---|
| public abstract JsonToken decodeBytes() throws IOException | |
| decodeDouble | back to summary |
|---|---|
| public abstract JsonToken decodeDouble() throws IOException | |
| decodeEnum | back to summary |
|---|---|
| public abstract int decodeEnum() throws IOException | |
| decodeFixed | back to summary |
|---|---|
| public abstract JsonToken decodeFixed(int size) throws IOException | |
| decodeFloat | back to summary |
|---|---|
| public abstract JsonToken decodeFloat() throws IOException | |
| decodeIndex | back to summary |
|---|---|
| public abstract int decodeIndex() throws IOException | |
| decodeInt | back to summary |
|---|---|
| public abstract int decodeInt() throws IOException | |
| decodeIntToken | back to summary |
|---|---|
| public abstract JsonToken decodeIntToken() throws IOException | |
| decodeLong | back to summary |
|---|---|
| public abstract long decodeLong() throws IOException | |
| decodeLongToken | back to summary |
|---|---|
| public abstract JsonToken decodeLongToken() throws IOException | |
| decodeMapKey | back to summary |
|---|---|
| public abstract String decodeMapKey() throws IOException | |
| decodeMapNext | back to summary |
|---|---|
| public abstract long decodeMapNext() throws IOException | |
| decodeMapStart | back to summary |
|---|---|
| public abstract long decodeMapStart() throws IOException | |
| decodeString | back to summary |
|---|---|
| public abstract void decodeString() throws IOException | |
| decodeStringToken | back to summary |
|---|---|
| public abstract JsonToken decodeStringToken() throws IOException | |
| enumIndex | back to summary |
|---|---|
| public final int enumIndex() | |
| getFloatValue | back to summary |
|---|---|
| public final float getFloatValue() throws IOException Overrides com. Doc from com. Numeric accessor that can be called when the current
token is of type Note if the value falls
outside of range of Java float, a
| |
| getNumberType | back to summary |
|---|---|
| public final JsonParser. Overrides com. Doc from com. If current token is of type
| |
| getNumberTypeFP | back to summary |
|---|---|
| public JsonParser. Overrides com. Doc from com. If current token is of type
Default implementation as of Jackson 2.x will call
| |
| getNumberValue | back to summary |
|---|---|
| public final Number getNumberValue() throws IOException Overrides com. Doc from com. Generic number value accessor method that will work for all kinds of numeric values. It will return the optimal (simplest/smallest possible) wrapper object that can express the numeric value just parsed.
| |
| getNumberValueExact | back to summary |
|---|---|
| public final Number getNumberValueExact() throws IOException Overrides com. Doc from com. Method similar to
Default implementation simply returns
| |
| getRemainingElements | back to summary |
|---|---|
| public long getRemainingElements() Returns the remaining number of elements in the current block of a map or array | |
| isNaN | back to summary |
|---|---|
| public final boolean isNaN() Overrides com. Doc from com. Accessor for checking whether current token is a special
"not-a-number" (NaN) token (including both "NaN" AND
positive/negative infinity!). These values are not supported by all formats:
JSON, for example, only supports them if
Note in case where numeric value is outside range of requested type --
most notably
| |
| isRecord | back to summary |
|---|---|
| public final boolean isRecord() | |
| nextFieldName | back to summary |
|---|---|
| public String nextFieldName() throws IOException Overrides com. Doc from com. Method that fetches next token (as if calling
| |
| nextFieldName | back to summary |
|---|---|
| public boolean nextFieldName(SerializableString sstr) throws IOException Overrides com. Doc from com. Method that fetches next token (as if calling return (nextToken() == JsonToken.FIELD_NAME) && str.getValue().equals(currentName());but may be faster for parser to verify, and can therefore be used if caller expects to get such a property name from input next.
| |
| nextTextValue | back to summary |
|---|---|
| public abstract String nextTextValue() throws IOException Overrides com. Doc from com. Method that fetches next token (as if calling return (nextToken() == JsonToken.VALUE_STRING) ? getText() : null;but may be faster for parser to process, and can therefore be used if caller expects to get a String value next from input.
| |
| nextToken | back to summary |
|---|---|
| public JsonToken nextToken() throws IOException Implements abstract com. Doc from com. Main iteration method, which will advance stream enough to determine type of the next token, if any. If none remaining (stream has no content other than possible white space before ending), null will be returned.
| |
| overrideFormatFeatures | back to summary |
|---|---|
| public final JsonParser overrideFormatFeatures(int values, int mask) Implements abstract com. Doc from com. Bulk set method for (re)setting states of
Default implementation will simply throw an exception to indicate that
the parser implementation does not support any
| |
| setAvroContext | back to summary |
|---|---|
| public final void setAvroContext(AvroReadContext ctxt) | |
| setBytes | back to summary |
|---|---|
| protected final JsonToken setBytes(byte[] b) | |
| setNumber | back to summary |
|---|---|
| protected final JsonToken setNumber(int v) | |
| setNumber | back to summary |
|---|---|
| protected final JsonToken setNumber(long v) | |
| setNumber | back to summary |
|---|---|
| protected final JsonToken setNumber(float v) | |
| setNumber | back to summary |
|---|---|
| protected final JsonToken setNumber(double v) | |
| setString | back to summary |
|---|---|
| protected abstract JsonToken setString(String str) throws IOException | |
| skipArray | back to summary |
|---|---|
public abstract long skipArray() throws IOException
| |
| skipBoolean | back to summary |
|---|---|
| public abstract void skipBoolean() throws IOException | |
| skipBytes | back to summary |
|---|---|
| public abstract void skipBytes() throws IOException | |
| skipDouble | back to summary |
|---|---|
| public abstract void skipDouble() throws IOException | |
| skipFixed | back to summary |
|---|---|
| public abstract void skipFixed(int size) throws IOException | |
| skipFloat | back to summary |
|---|---|
| public abstract void skipFloat() throws IOException | |
| skipInt | back to summary |
|---|---|
| public abstract void skipInt() throws IOException | |
| skipLong | back to summary |
|---|---|
| public abstract void skipLong() throws IOException | |
| skipMap | back to summary |
|---|---|
public abstract long skipMap() throws IOException
| |
| skipString | back to summary |
|---|---|
| public abstract void skipString() throws IOException | |
| skipValue | back to summary |
|---|---|
| public final void skipValue() throws IOException Skip to the end of the current structure (array/map/object); This is different
from
| |