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, consumesNoContent, getCurrentToken, throwIllegalState_reportError, getCurrentValue, getParent, setCurrentValue, toStringprotected 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)
AvroStructureReadernewReader in class AvroStructureReaderpublic String getCurrentName()
getCurrentName in class AvroReadContextpublic abstract com.fasterxml.jackson.core.JsonToken nextToken()
throws IOException
nextToken in class AvroStructureReaderIOExceptionpublic abstract void skipValue(AvroParserImpl parser) throws IOException
AvroStructureReaderAvroStructureReader.nextToken() which will simply skip the full
value.skipValue in class AvroStructureReaderIOExceptionpublic abstract long getRemainingElements()
getRemainingElements in class AvroReadContextpublic String nextFieldName() throws IOException
nextFieldName in class AvroReadContextIOExceptionpublic void appendDesc(StringBuilder sb)
appendDesc in class AvroReadContextpublic String getTypeId()
getTypeId in class AvroReadContextCopyright © 2022 FasterXML. All rights reserved.