public abstract class ArrayReader extends AvroStructureReader
Modifier and Type | Field and Description |
---|---|
protected long |
_count |
protected String |
_currentName |
protected String |
_elementTypeId |
protected AvroParserImpl |
_parser |
protected int |
_state |
protected static int |
STATE_DONE |
protected static int |
STATE_ELEMENTS |
protected static int |
STATE_END |
protected static int |
STATE_START |
_currToken
_currentValue, _parent, _typeId
Modifier | Constructor and Description |
---|---|
protected |
ArrayReader(AvroReadContext parent,
AvroParserImpl parser,
String typeId,
String elementTypeId) |
Modifier and Type | Method and Description |
---|---|
protected void |
appendDesc(StringBuilder sb) |
static ArrayReader |
construct(AvroStructureReader reader,
String typeId,
String elementTypeId) |
static ArrayReader |
construct(ScalarDecoder reader,
String typeId,
String elementTypeId) |
String |
getCurrentName() |
long |
getRemainingElements() |
String |
getTypeId() |
String |
nextFieldName() |
_throwUnsupported, consumesNoContent, getCurrentToken, newReader, nextToken, skipValue, throwIllegalState
_reportError, getCurrentValue, getParent, setCurrentValue, toString
protected static final int STATE_START
protected static final int STATE_ELEMENTS
protected static final int STATE_END
protected static final int STATE_DONE
protected final AvroParserImpl _parser
protected final String _elementTypeId
protected int _state
protected long _count
protected String _currentName
protected ArrayReader(AvroReadContext parent, AvroParserImpl parser, String typeId, String elementTypeId)
public static ArrayReader construct(ScalarDecoder reader, String typeId, String elementTypeId)
public static ArrayReader construct(AvroStructureReader reader, String typeId, String elementTypeId)
public String nextFieldName() throws IOException
nextFieldName
in class AvroReadContext
IOException
public String getCurrentName()
getCurrentName
in class AvroReadContext
protected void appendDesc(StringBuilder sb)
appendDesc
in class AvroReadContext
public long getRemainingElements()
getRemainingElements
in class AvroReadContext
public String getTypeId()
getTypeId
in class AvroReadContext
Copyright © 2021 FasterXML. All rights reserved.