Top Description Fields Constructors Methods
tools.jackson.dataformat.avro.deser

pack-priv final Class UnionReader

extends AvroStructureReader
Class Inheritance
Imports
java.io.IOException, tools.jackson.core.JsonToken, tools.jackson.core.exc.StreamReadException, tools.jackson.core.sym.PropertyNameMatcher

Reader used in cases where union contains at least one non-scalar type.

Field Summary

Modifier and TypeField and Description
private final AvroStructureReader[]
private final AvroParserImpl

Constructor Summary

AccessConstructor and Description
public
private

Method Summary

Modifier and TypeMethod and Description
private final int
_decodeIndex(int index)

protected void
public UnionReader
newReader(AvroReadContext parent, AvroParserImpl parser)

Implements abstract tools.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 int
public JsonToken
public void
skipValue(AvroParserImpl parser)

Implements abstract tools.jackson.dataformat.avro.deser.AvroStructureReader.skipValue.

Alternative to nextToken which will simply skip the full value.

Inherited from tools.jackson.dataformat.avro.deser.AvroStructureReader:
_throwUnsupportedconsumesNoContentthrowIllegalState

Field Detail

_memberReadersback to summary
private final AvroStructureReader[] _memberReaders
_parserback to summary
private final AvroParserImpl _parser

Constructor Detail

UnionReaderback to summary
public UnionReader(AvroStructureReader[] memberReaders)
UnionReaderback to summary
private UnionReader(AvroReadContext parent, AvroStructureReader[] memberReaders, AvroParserImpl parser)

Method Detail

_decodeIndexback to summary
private final int _decodeIndex(int index) throws IOException
appendDescback to summary
protected void appendDesc(StringBuilder sb)

Implements abstract tools.jackson.dataformat.avro.deser.AvroReadContext.appendDesc.

Annotations
@Override
newReaderback to summary
public UnionReader newReader(AvroReadContext parent, AvroParserImpl parser)

Implements abstract tools.jackson.dataformat.avro.deser.AvroStructureReader.newReader.

Doc from tools.jackson.dataformat.avro.deser.AvroStructureReader.newReader.

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

Annotations
@Override
nextNameback to summary
public String nextName() throws IOException

Implements abstract tools.jackson.dataformat.avro.deser.AvroReadContext.nextName.

Annotations
@Override
nextNameMatchback to summary
public int nextNameMatch(PropertyNameMatcher matcher) throws IOException

Implements abstract tools.jackson.dataformat.avro.deser.AvroReadContext.nextNameMatch.

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

Implements abstract tools.jackson.dataformat.avro.deser.AvroStructureReader.nextToken.

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

Implements abstract tools.jackson.dataformat.avro.deser.AvroStructureReader.skipValue.

Doc from tools.jackson.dataformat.avro.deser.AvroStructureReader.skipValue.

Alternative to nextToken which will simply skip the full value.

Annotations
@Override