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

public abstract Class MapReader

extends AvroStructureReader
Class Inheritance
Known Direct Subclasses
com.fasterxml.jackson.dataformat.avro.deser.MapReader.Scalar, com.fasterxml.jackson.dataformat.avro.deser.MapReader.NonScalar, com.fasterxml.jackson.dataformat.avro.deser.StructDefaults.ObjectDefaults
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 String
protected final String
protected final AvroParserImpl
protected int
protected final String
protected static final 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
MapReader(String typeId, String keyTypeId, String valueTypeId)

protected
MapReader(AvroReadContext parent, AvroParserImpl parser, String typeId, String keyTypeId, String valueTypeId)

Method Summary

Modifier and TypeMethod and Description
public void
public static MapReader
construct(ScalarDecoder dec, String typeId, String keyTypeId, String valueTypeId)

public static MapReader
construct(AvroStructureReader reader, String typeId, String keyTypeId)

public String
getCurrentName()

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

Method for accessing name associated with the current location.

public abstract long
public String
public abstract MapReader
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 String
public abstract JsonToken
public abstract 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.AvroStructureReader:
_throwUnsupportedconsumesNoContentgetCurrentTokenthrowIllegalState

Field Detail

_currentNameback to summary
protected String _currentName
_keyTypeIdback to summary
protected final String _keyTypeId
_parserback to summary
protected final AvroParserImpl _parser
_stateback to summary
protected int _state
_valueTypeIdback to summary
protected final String _valueTypeId
STATE_DONEback to summary
protected static final int STATE_DONE
STATE_ENDback to summary
protected static final int STATE_END
STATE_NAMEback to summary
protected static final int STATE_NAME
STATE_STARTback to summary
protected static final int STATE_START
STATE_VALUEback to summary
protected static final int STATE_VALUE

Constructor Detail

MapReaderback to summary
protected MapReader(String typeId, String keyTypeId, String valueTypeId) throws IOException
MapReaderback to summary
protected MapReader(AvroReadContext parent, AvroParserImpl parser, String typeId, String keyTypeId, String valueTypeId) throws IOException

Method Detail

appendDescback to summary
public void appendDesc(StringBuilder sb)

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

Annotations
@Override
constructback to summary
public static MapReader construct(ScalarDecoder dec, String typeId, String keyTypeId, String valueTypeId) throws IOException
constructback to summary
public static MapReader construct(AvroStructureReader reader, String typeId, String keyTypeId) 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 abstract 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
newReaderback to summary
public abstract MapReader 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
nextFieldNameback to summary
public String nextFieldName() throws IOException

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

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

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

Annotations
@Override
skipValueback to summary
public abstract 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 MapReader.NonScalar

extends MapReader
Class Inheritance

Field Summary

Modifier and TypeField and Description
protected long
private final AvroStructureReader
Inherited from com.fasterxml.jackson.dataformat.avro.deser.MapReader:
_currentName_keyTypeId_parser_state_valueTypeIdSTATE_DONESTATE_ENDSTATE_NAMESTATE_STARTSTATE_VALUE

Constructor Summary

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

public
NonScalar(AvroReadContext parent, AvroParserImpl parser, AvroStructureReader reader, String typeId, String keyTypeId)

Method Summary

Modifier and TypeMethod and Description
public long
public MapReader
newReader(AvroReadContext parent, AvroParserImpl parser)

Implements abstract com.fasterxml.jackson.dataformat.avro.deser.MapReader.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.MapReader.skipValue.

Alternative to nextToken which will simply skip the full value.

Inherited from com.fasterxml.jackson.dataformat.avro.deser.MapReader:
appendDescconstructconstructgetCurrentNamegetTypeIdnextFieldName

Field Detail

_countback to summary
protected long _count
_structureReaderback to summary
private final AvroStructureReader _structureReader

Constructor Detail

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

Method Detail

getRemainingElementsback to summary
public long getRemainingElements()

Implements abstract com.fasterxml.jackson.dataformat.avro.deser.MapReader.getRemainingElements.

Annotations
@Override
newReaderback to summary
public MapReader newReader(AvroReadContext parent, AvroParserImpl parser) throws IOException

Implements abstract com.fasterxml.jackson.dataformat.avro.deser.MapReader.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.MapReader.nextToken.

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

Implements abstract com.fasterxml.jackson.dataformat.avro.deser.MapReader.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 MapReader.Scalar

extends MapReader
Class Inheritance

Field Summary

Modifier and TypeField and Description
protected long
private final ScalarDecoder
Inherited from com.fasterxml.jackson.dataformat.avro.deser.MapReader:
_currentName_keyTypeId_parser_state_valueTypeIdSTATE_DONESTATE_ENDSTATE_NAMESTATE_STARTSTATE_VALUE

Constructor Summary

AccessConstructor and Description
protected
Scalar(ScalarDecoder dec, String typeId, String keyTypeId, String valueTypeId)

protected
Scalar(AvroReadContext parent, AvroParserImpl parser, ScalarDecoder sd, String typeId, String keyTypeId, String valueTypeId)

Method Summary

Modifier and TypeMethod and Description
public long
public MapReader
newReader(AvroReadContext parent, AvroParserImpl parser)

Implements abstract com.fasterxml.jackson.dataformat.avro.deser.MapReader.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.MapReader.skipValue.

Alternative to nextToken which will simply skip the full value.

Inherited from com.fasterxml.jackson.dataformat.avro.deser.MapReader:
appendDescconstructconstructgetCurrentNamegetTypeIdnextFieldName

Field Detail

_countback to summary
protected long _count
_scalarDecoderback to summary
private final ScalarDecoder _scalarDecoder

Constructor Detail

Scalarback to summary
protected Scalar(ScalarDecoder dec, String typeId, String keyTypeId, String valueTypeId) throws IOException
Scalarback to summary
protected Scalar(AvroReadContext parent, AvroParserImpl parser, ScalarDecoder sd, String typeId, String keyTypeId, String valueTypeId) throws IOException

Method Detail

getRemainingElementsback to summary
public long getRemainingElements()

Implements abstract com.fasterxml.jackson.dataformat.avro.deser.MapReader.getRemainingElements.

Annotations
@Override
newReaderback to summary
public MapReader newReader(AvroReadContext parent, AvroParserImpl parser) throws IOException

Implements abstract com.fasterxml.jackson.dataformat.avro.deser.MapReader.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.MapReader.nextToken.

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

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

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

Alternative to nextToken which will simply skip the full value.

Annotations
@Override