public abstract class MapReader extends AvroStructureReader
Modifier and Type | Field and Description |
---|---|
protected String |
_currentName |
protected String |
_keyTypeId |
protected AvroParserImpl |
_parser |
protected int |
_state |
protected String |
_valueTypeId |
protected static int |
STATE_DONE |
protected static int |
STATE_END |
protected static int |
STATE_NAME |
protected static int |
STATE_START |
protected static int |
STATE_VALUE |
_currToken
_currentValue, _parent, _typeId
Modifier | Constructor and Description |
---|---|
protected |
MapReader(AvroReadContext parent,
AvroParserImpl parser,
String typeId,
String keyTypeId,
String valueTypeId) |
protected |
MapReader(String typeId,
String keyTypeId,
String valueTypeId) |
Modifier and Type | Method and Description |
---|---|
void |
appendDesc(StringBuilder sb) |
static MapReader |
construct(AvroStructureReader reader,
String typeId,
String keyTypeId) |
static MapReader |
construct(ScalarDecoder dec,
String typeId,
String keyTypeId,
String valueTypeId) |
String |
getCurrentName() |
abstract long |
getRemainingElements() |
String |
getTypeId() |
abstract MapReader |
newReader(AvroReadContext parent,
AvroParserImpl parser)
Method for creating actual instance to use for reading (initial
instance constructed is so-called blue print).
|
String |
nextFieldName() |
abstract com.fasterxml.jackson.core.JsonToken |
nextToken() |
abstract void |
skipValue(AvroParserImpl parser)
Alternative to
AvroStructureReader.nextToken() which will simply skip the full
value. |
_throwUnsupported, getCurrentToken, throwIllegalState
_reportError, getCurrentValue, getParent, setCurrentValue, toString
protected static final int STATE_START
protected static final int STATE_NAME
protected static final int STATE_VALUE
protected static final int STATE_END
protected static final int STATE_DONE
protected final AvroParserImpl _parser
protected final String _keyTypeId
protected final String _valueTypeId
protected String _currentName
protected int _state
protected MapReader(AvroReadContext parent, AvroParserImpl parser, String typeId, String keyTypeId, String valueTypeId)
public static MapReader construct(ScalarDecoder dec, String typeId, String keyTypeId, String valueTypeId)
public static MapReader construct(AvroStructureReader reader, String typeId, String keyTypeId)
public abstract MapReader newReader(AvroReadContext parent, AvroParserImpl parser)
AvroStructureReader
newReader
in class AvroStructureReader
public String getCurrentName()
getCurrentName
in class AvroReadContext
public abstract com.fasterxml.jackson.core.JsonToken nextToken() throws IOException
nextToken
in class AvroStructureReader
IOException
public abstract void skipValue(AvroParserImpl parser) throws IOException
AvroStructureReader
AvroStructureReader.nextToken()
which will simply skip the full
value.skipValue
in class AvroStructureReader
IOException
public abstract long getRemainingElements()
getRemainingElements
in class AvroReadContext
public String nextFieldName() throws IOException
nextFieldName
in class AvroReadContext
IOException
public void appendDesc(StringBuilder sb)
appendDesc
in class AvroReadContext
public String getTypeId()
getTypeId
in class AvroReadContext
Copyright © 2017 FasterXML. All rights reserved.