Top Inners Fields Constructors Methods
com.fasterxml.jackson.dataformat.avro.deser

public abstract Class ArrayReader

extends AvroStructureReader
Class Inheritance
Known Direct Subclasses
com.fasterxml.jackson.dataformat.avro.deser.ArrayReader.Scalar, com.fasterxml.jackson.dataformat.avro.deser.ArrayReader.NonScalar, com.fasterxml.jackson.dataformat.avro.deser.StructDefaults.ArrayDefaults
Imports
java.io.IOException, com.fasterxml.jackson.core.JsonToken

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class

Field Summary

Modifier and TypeField and Description
protected long
protected String
protected final String
protected final AvroParserImpl
protected int
protected static final int
protected static final int
protected static final int
protected static final int
Inherited from com.fasterxml.jackson.dataformat.avro.deser.AvroStructureReader:
_currToken

Constructor Summary

AccessConstructor and Description
protected
ArrayReader(AvroReadContext parent, AvroParserImpl parser, String typeId, String elementTypeId)

Method Summary

Modifier and TypeMethod and Description
protected void
public static ArrayReader
construct(ScalarDecoder reader, String typeId, String elementTypeId)

public static ArrayReader
construct(AvroStructureReader reader, String typeId, String elementTypeId)

public String
getCurrentName()

Overrides com.fasterxml.jackson.dataformat.avro.deser.AvroReadContext.getCurrentName.

Method for accessing name associated with the current location.

public long
public String
public String
Inherited from com.fasterxml.jackson.dataformat.avro.deser.AvroStructureReader:
_throwUnsupportedconsumesNoContentgetCurrentTokennewReadernextTokenskipValuethrowIllegalState

Field Detail

_countback to summary
protected long _count
_currentNameback to summary
protected String _currentName
_elementTypeIdback to summary
protected final String _elementTypeId
_parserback to summary
protected final AvroParserImpl _parser
_stateback to summary
protected int _state
STATE_DONEback to summary
protected static final int STATE_DONE
STATE_ELEMENTSback to summary
protected static final int STATE_ELEMENTS
STATE_ENDback to summary
protected static final int STATE_END
STATE_STARTback to summary
protected static final int STATE_START

Constructor Detail

ArrayReaderback to summary
protected ArrayReader(AvroReadContext parent, AvroParserImpl parser, String typeId, String elementTypeId) throws IOException

Method Detail

appendDescback to summary
protected void appendDesc(StringBuilder sb)

Implements abstract com.fasterxml.jackson.dataformat.avro.deser.AvroReadContext.appendDesc.

Annotations
@Override
constructback to summary
public static ArrayReader construct(ScalarDecoder reader, String typeId, String elementTypeId) throws IOException
constructback to summary
public static ArrayReader construct(AvroStructureReader reader, String typeId, String elementTypeId) throws IOException
getCurrentNameback to summary
public String getCurrentName()

Overrides com.fasterxml.jackson.dataformat.avro.deser.AvroReadContext.getCurrentName.

Doc from com.fasterxml.jackson.core.JsonStreamContext.getCurrentName.

Method for accessing name associated with the current location. Non-null for FIELD_NAME and value events that directly follow field names; null for root level and array values.

Returns:String

Current field name within context, if any; null if none

Annotations
@Override
getRemainingElementsback to summary
public long getRemainingElements()

Overrides com.fasterxml.jackson.dataformat.avro.deser.AvroReadContext.getRemainingElements.

Annotations
@Override
getTypeIdback to summary
public String getTypeId()

Overrides com.fasterxml.jackson.dataformat.avro.deser.AvroReadContext.getTypeId.

Annotations
@Override
nextFieldNameback to summary
public String nextFieldName() throws IOException

Implements abstract com.fasterxml.jackson.dataformat.avro.deser.AvroReadContext.nextFieldName.

Annotations
@Override
com.fasterxml.jackson.dataformat.avro.deser back to summary

private final Class ArrayReader.NonScalar

extends ArrayReader
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final AvroStructureReader
Inherited from com.fasterxml.jackson.dataformat.avro.deser.ArrayReader:
_count_currentName_elementTypeId_parser_stateSTATE_DONESTATE_ELEMENTSSTATE_ENDSTATE_START

Constructor Summary

AccessConstructor and Description
public
NonScalar(AvroStructureReader reader, String typeId, String elementTypeId)

private
NonScalar(AvroReadContext parent, AvroStructureReader reader, AvroParserImpl parser, String typeId, String elementTypeId)

Method Summary

Modifier and TypeMethod and Description
public ArrayReader.NonScalar
newReader(AvroReadContext parent, AvroParserImpl parser)

Implements abstract com.fasterxml.jackson.dataformat.avro.deser.AvroStructureReader.newReader.

Method for creating actual instance to use for reading (initial instance constructed is so-called blueprint).

public JsonToken
public void
skipValue(AvroParserImpl parser)

Implements abstract com.fasterxml.jackson.dataformat.avro.deser.AvroStructureReader.skipValue.

Alternative to nextToken which will simply skip the full value.

Inherited from com.fasterxml.jackson.dataformat.avro.deser.ArrayReader:
appendDescconstructconstructgetCurrentNamegetRemainingElementsgetTypeIdnextFieldName

Field Detail

_elementReaderback to summary
private final AvroStructureReader _elementReader

Constructor Detail

NonScalarback to summary
public NonScalar(AvroStructureReader reader, String typeId, String elementTypeId) throws IOException
NonScalarback to summary
private NonScalar(AvroReadContext parent, AvroStructureReader reader, AvroParserImpl parser, String typeId, String elementTypeId) throws IOException

Method Detail

newReaderback to summary
public ArrayReader.NonScalar newReader(AvroReadContext parent, AvroParserImpl parser) throws IOException

Implements abstract com.fasterxml.jackson.dataformat.avro.deser.AvroStructureReader.newReader.

Doc from com.fasterxml.jackson.dataformat.avro.deser.AvroStructureReader.newReader.

Method for creating actual instance to use for reading (initial instance constructed is so-called blueprint).

Annotations
@Override
nextTokenback to summary
public JsonToken nextToken() throws IOException

Implements abstract com.fasterxml.jackson.dataformat.avro.deser.AvroStructureReader.nextToken.

Annotations
@Override
skipValueback to summary
public void skipValue(AvroParserImpl parser) throws IOException

Implements abstract com.fasterxml.jackson.dataformat.avro.deser.AvroStructureReader.skipValue.

Doc from com.fasterxml.jackson.dataformat.avro.deser.AvroStructureReader.skipValue.

Alternative to nextToken which will simply skip the full value.

Annotations
@Override
com.fasterxml.jackson.dataformat.avro.deser back to summary

private final Class ArrayReader.Scalar

extends ArrayReader
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final ScalarDecoder
Inherited from com.fasterxml.jackson.dataformat.avro.deser.ArrayReader:
_count_currentName_elementTypeId_parser_stateSTATE_DONESTATE_ELEMENTSSTATE_ENDSTATE_START

Constructor Summary

AccessConstructor and Description
public
Scalar(ScalarDecoder reader, String typeId, String elementTypeId)

private
Scalar(AvroReadContext parent, ScalarDecoder reader, AvroParserImpl parser, String typeId, String elementTypeId)

Method Summary

Modifier and TypeMethod and Description
public ArrayReader.Scalar
newReader(AvroReadContext parent, AvroParserImpl parser)

Implements abstract com.fasterxml.jackson.dataformat.avro.deser.AvroStructureReader.newReader.

Method for creating actual instance to use for reading (initial instance constructed is so-called blueprint).

public JsonToken
public void
skipValue(AvroParserImpl parser)

Implements abstract com.fasterxml.jackson.dataformat.avro.deser.AvroStructureReader.skipValue.

Alternative to nextToken which will simply skip the full value.

Inherited from com.fasterxml.jackson.dataformat.avro.deser.ArrayReader:
appendDescconstructconstructgetCurrentNamegetRemainingElementsgetTypeIdnextFieldName

Field Detail

_elementReaderback to summary
private final ScalarDecoder _elementReader

Constructor Detail

Scalarback to summary
public Scalar(ScalarDecoder reader, String typeId, String elementTypeId) throws IOException
Scalarback to summary
private Scalar(AvroReadContext parent, ScalarDecoder reader, AvroParserImpl parser, String typeId, String elementTypeId) throws IOException

Method Detail

newReaderback to summary
public ArrayReader.Scalar newReader(AvroReadContext parent, AvroParserImpl parser) throws IOException

Implements abstract com.fasterxml.jackson.dataformat.avro.deser.AvroStructureReader.newReader.

Doc from com.fasterxml.jackson.dataformat.avro.deser.AvroStructureReader.newReader.

Method for creating actual instance to use for reading (initial instance constructed is so-called blueprint).

Annotations
@Override
nextTokenback to summary
public JsonToken nextToken() throws IOException

Implements abstract com.fasterxml.jackson.dataformat.avro.deser.AvroStructureReader.nextToken.

Annotations
@Override
skipValueback to summary
public void skipValue(AvroParserImpl parser) throws IOException

Implements abstract com.fasterxml.jackson.dataformat.avro.deser.AvroStructureReader.skipValue.

Doc from com.fasterxml.jackson.dataformat.avro.deser.AvroStructureReader.skipValue.

Alternative to nextToken which will simply skip the full value.

Annotations
@Override