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. |
| Access | Constructor and Description |
|---|---|
| protected | AvroParserImpl(ObjectReadContext readCtxt, IOContext ioCtxt, int parserFeatures, int avroFeatures, AvroSchema schema)
|
| Modifier and Type | Method and Description |
|---|---|
| protected final void | |
| public final void | _initSchema(AvroSchema schema)
Implements abstract tools.
|
| public final int | |
| public abstract boolean | |
| public void | close()
Overrides tools. Implements java. Method that can be called to get the name associated with the current event. |
| 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 JsonToken | |
| public abstract JsonToken | |
| public abstract int | |
| public abstract JsonToken | |
| public 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 tools. Numeric accessor that can be called when the current
token is of type |
| public final JsonParser. | getNumberType()
Overrides tools. If current token is of type
|
| public JsonParser. | getNumberTypeFP()
Overrides tools. If current token is of type
|
| public final Number | getNumberValue()
Overrides tools. Generic number value accessor method that will work for all kinds of numeric values. |
| public final Number | getNumberValueExact()
Overrides tools. 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 tools. 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 | nextName()
Overrides tools. Method that fetches next token (as if calling |
| public boolean | nextName(SerializableString sstr)
Overrides tools. Method that fetches next token (as if calling |
| public int | nextNameMatch(PropertyNameMatcher matcher)
Overrides tools. Method that tries to match next token from stream as |
| public abstract String | nextStringValue()
Overrides tools. Method that fetches next token (as if calling |
| public JsonToken | nextToken()
Implements abstract tools. Main iteration method, which will advance stream enough to determine type of the next token, if any. |
| 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 void | |
| public abstract void | |
| public abstract void | |
| public 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. | |
| AvroParserImpl | back to summary |
|---|---|
| protected AvroParserImpl(ObjectReadContext readCtxt, IOContext ioCtxt, int parserFeatures, int avroFeatures, AvroSchema schema) | |
| _checkNumericValue | back to summary |
|---|---|
| protected final void _checkNumericValue() throws JacksonException | |
| _initSchema | back to summary |
|---|---|
| public final void _initSchema(AvroSchema schema) throws JacksonException Implements abstract tools.
| |
| 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() Overrides tools. Implements java. Doc from tools. Method that can be called to get the name associated with the current event.
| |
| convertNumberToBigDecimal | back to summary |
|---|---|
| protected final void convertNumberToBigDecimal() throws JacksonException Overrides tools.
| |
| convertNumberToBigInteger | back to summary |
|---|---|
| protected final void convertNumberToBigInteger() throws JacksonException Overrides tools.
| |
| convertNumberToDouble | back to summary |
|---|---|
| protected final void convertNumberToDouble() throws JacksonException Overrides tools.
| |
| convertNumberToFloat | back to summary |
|---|---|
| protected final void convertNumberToFloat() throws JacksonException Overrides tools.
| |
| convertNumberToInt | back to summary |
|---|---|
| protected final void convertNumberToInt() throws JacksonException Overrides tools.
| |
| convertNumberToLong | back to summary |
|---|---|
| protected final void convertNumberToLong() throws JacksonException Overrides tools.
| |
| 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 | |
| decodeBytesDecimal | back to summary |
|---|---|
| public JsonToken decodeBytesDecimal(int scale) 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 | |
| decodeFixedDecimal | back to summary |
|---|---|
| public JsonToken decodeFixedDecimal(int scale, 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 JacksonException Overrides tools. Doc from tools. 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 tools. Doc from tools. If current token is of type
Note in Jackson 2.x, an exception was wrong if called for non-numeric token.
| |
| getNumberTypeFP | back to summary |
|---|---|
| public JsonParser. Overrides tools. Doc from tools. If current token is of type
| |
| getNumberValue | back to summary |
|---|---|
| public final Number getNumberValue() throws JacksonException Overrides tools. Doc from tools. 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 JacksonException Overrides tools. Doc from tools. 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 tools. Doc from tools. 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() | |
| nextName | back to summary |
|---|---|
| public String nextName() throws JacksonException Overrides tools. Doc from tools. Method that fetches next token (as if calling Note in Jackson 2.x method was called
| |
| nextName | back to summary |
|---|---|
| public boolean nextName(SerializableString sstr) throws JacksonException Overrides tools. Doc from tools. Method that fetches next token (as if calling return (nextToken() == JsonToken.PROPERTY_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. Note in Jackson 2.x method was called
| |
| nextNameMatch | back to summary |
|---|---|
| public int nextNameMatch(PropertyNameMatcher matcher) throws JacksonException Overrides tools. Doc from tools. Method that tries to match next token from stream as
| |
| nextStringValue | back to summary |
|---|---|
| public abstract String nextStringValue() throws JacksonException Overrides tools. Doc from tools. Method that fetches next token (as if calling return (nextToken() == JsonToken.VALUE_STRING) ? getString() : 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 JacksonException Implements abstract tools. Doc from tools. 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.
| |
| 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 | |
| skipBytesDecimal | back to summary |
|---|---|
| public void skipBytesDecimal() throws IOException | |
| skipDouble | back to summary |
|---|---|
| public abstract void skipDouble() throws IOException | |
| skipFixed | back to summary |
|---|---|
| public abstract void skipFixed(int size) throws IOException | |
| skipFixedDecimal | back to summary |
|---|---|
| public void skipFixedDecimal(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 JacksonException Skip to the end of the current structure (array/map/object); This is different
from
| |