public final class MapReader extends AvroStructureReader
Modifier and Type | Field and Description |
---|---|
protected long |
_count |
protected org.apache.avro.io.BinaryDecoder |
_decoder |
protected AvroParserImpl |
_parser |
protected int |
_state |
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
_parent
Constructor and Description |
---|
MapReader(AvroScalarReader reader) |
MapReader(AvroStructureReader reader) |
Modifier and Type | Method and Description |
---|---|
void |
appendDesc(StringBuilder sb) |
String |
getCurrentName() |
MapReader |
newReader(AvroReadContext parent,
AvroParserImpl parser,
org.apache.avro.io.BinaryDecoder decoder)
Method for creating actual instance to use for reading (initial
instance constructed is so-called blue print).
|
String |
nextFieldName() |
com.fasterxml.jackson.core.JsonToken |
nextToken() |
_throwUnsupported, getCurrentToken, throwIllegalState
_reportError, getParent, 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 org.apache.avro.io.BinaryDecoder _decoder
protected final AvroParserImpl _parser
protected int _state
protected long _count
public MapReader(AvroScalarReader reader)
public MapReader(AvroStructureReader reader)
public MapReader newReader(AvroReadContext parent, AvroParserImpl parser, org.apache.avro.io.BinaryDecoder decoder)
AvroStructureReader
newReader
in class AvroStructureReader
public String getCurrentName()
getCurrentName
in class AvroReadContext
public com.fasterxml.jackson.core.JsonToken nextToken() throws IOException
nextToken
in class AvroStructureReader
IOException
public String nextFieldName() throws IOException
nextFieldName
in class AvroReadContext
IOException
public void appendDesc(StringBuilder sb)
appendDesc
in class AvroReadContext
Copyright © 2016 FasterXML. All rights reserved.