java.lang.Object
tools.jackson.core.TokenStreamContext
tools.jackson.dataformat.avro.deser.AvroReadContext
tools.jackson.dataformat.avro.deser.AvroStructureReader
tools.jackson.dataformat.avro.deser.MapReader
- Direct Known Subclasses:
StructDefaults.ObjectDefaults
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected final Stringprotected final AvroParserImplprotected intprotected final Stringprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intFields inherited from class tools.jackson.dataformat.avro.deser.AvroReadContext
_currentValue, _currToken, _parent, _typeIdFields inherited from class tools.jackson.core.TokenStreamContext
_index, _nestingDepth, _type, TYPE_ARRAY, TYPE_OBJECT, TYPE_ROOT -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedMapReader(AvroReadContext parent, AvroParserImpl parser, String typeId, String keyTypeId, String valueTypeId) -
Method Summary
Modifier and TypeMethodDescriptionvoidstatic MapReaderconstruct(AvroStructureReader reader, String typeId, String keyTypeId) static MapReaderconstruct(ScalarDecoder dec, String typeId, String keyTypeId, String valueTypeId) abstract longabstract MapReadernewReader(AvroReadContext parent, AvroParserImpl parser) Method for creating actual instance to use for reading (initial instance constructed is so-called blueprint).nextName()intnextNameMatch(tools.jackson.core.sym.PropertyNameMatcher matcher) abstract tools.jackson.core.JsonTokenabstract voidskipValue(AvroParserImpl parser) Alternative toAvroStructureReader.nextToken()which will simply skip the full value.Methods inherited from class tools.jackson.dataformat.avro.deser.AvroStructureReader
_throwUnsupported, consumesNoContent, throwIllegalStateMethods inherited from class tools.jackson.dataformat.avro.deser.AvroReadContext
_reportError, assignCurrentValue, currentToken, currentValue, getParent, toStringMethods inherited from class tools.jackson.core.TokenStreamContext
getCurrentIndex, getEntryCount, getNestingDepth, hasCurrentIndex, hasCurrentName, hasPathSegment, inArray, inObject, inRoot, pathAsPointer, pathAsPointer, startLocation, typeDesc
-
Field Details
-
STATE_START
protected static final int STATE_START- See Also:
-
STATE_NAME
protected static final int STATE_NAME- See Also:
-
STATE_VALUE
protected static final int STATE_VALUE- See Also:
-
STATE_END
protected static final int STATE_END- See Also:
-
STATE_DONE
protected static final int STATE_DONE- See Also:
-
_parser
-
_keyTypeId
-
_valueTypeId
-
_currentName
-
_state
protected int _state
-
-
Constructor Details
-
MapReader
-
MapReader
protected MapReader(AvroReadContext parent, AvroParserImpl parser, String typeId, String keyTypeId, String valueTypeId)
-
-
Method Details
-
construct
public static MapReader construct(ScalarDecoder dec, String typeId, String keyTypeId, String valueTypeId) -
construct
-
newReader
Description copied from class:AvroStructureReaderMethod for creating actual instance to use for reading (initial instance constructed is so-called blueprint).- Specified by:
newReaderin classAvroStructureReader
-
currentName
- Overrides:
currentNamein classAvroReadContext
-
nextToken
- Specified by:
nextTokenin classAvroStructureReader- Throws:
IOException
-
skipValue
Description copied from class:AvroStructureReaderAlternative toAvroStructureReader.nextToken()which will simply skip the full value.- Specified by:
skipValuein classAvroStructureReader- Throws:
IOException
-
getRemainingElements
public abstract long getRemainingElements()- Overrides:
getRemainingElementsin classAvroReadContext
-
nextName
- Specified by:
nextNamein classAvroReadContext- Throws:
IOException
-
nextNameMatch
- Specified by:
nextNameMatchin classAvroReadContext- Throws:
IOException
-
appendDesc
- Specified by:
appendDescin classAvroReadContext
-
getTypeId
- Overrides:
getTypeIdin classAvroReadContext
-