public abstract class AvroStructureReader extends AvroReadContext
Modifier and Type | Field and Description |
---|---|
protected com.fasterxml.jackson.core.JsonToken |
_currToken |
_currentValue, _parent, _typeId
Modifier | Constructor and Description |
---|---|
protected |
AvroStructureReader(AvroReadContext parent,
int type,
String typeId) |
Modifier and Type | Method and Description |
---|---|
protected <T> T |
_throwUnsupported() |
boolean |
consumesNoContent()
Method that may be called to check if the values "read" by this reader
are zero-length, that is, consume no content: most common example being
Record with no fields.
|
com.fasterxml.jackson.core.JsonToken |
getCurrentToken() |
abstract AvroStructureReader |
newReader(AvroReadContext parent,
AvroParserImpl parser)
Method for creating actual instance to use for reading (initial
instance constructed is so-called blue print).
|
abstract com.fasterxml.jackson.core.JsonToken |
nextToken() |
abstract void |
skipValue(AvroParserImpl parser)
Alternative to
nextToken() which will simply skip the full
value. |
protected void |
throwIllegalState(int state) |
_reportError, appendDesc, getCurrentName, getCurrentValue, getParent, getRemainingElements, getTypeId, nextFieldName, setCurrentValue, toString
protected AvroStructureReader(AvroReadContext parent, int type, String typeId)
public boolean consumesNoContent()
Note: Arrays can not return true
as they need to encode length
even for "empty" arrays.
public abstract AvroStructureReader newReader(AvroReadContext parent, AvroParserImpl parser)
public abstract com.fasterxml.jackson.core.JsonToken nextToken() throws IOException
nextToken
in class AvroReadContext
IOException
public abstract void skipValue(AvroParserImpl parser) throws IOException
nextToken()
which will simply skip the full
value.skipValue
in class AvroReadContext
IOException
public final com.fasterxml.jackson.core.JsonToken getCurrentToken()
getCurrentToken
in class AvroReadContext
protected void throwIllegalState(int state)
protected <T> T _throwUnsupported()
Copyright © 2020 FasterXML. All rights reserved.