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

pack-priv final Class UnionReader

extends AvroStructureReader
Class Inheritance
Imports
java.io.IOException, com.fasterxml.jackson.core.JsonParseException, .JsonToken

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
Inherited from com.fasterxml.jackson.dataformat.avro.deser.AvroStructureReader:
_currToken

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 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 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.AvroStructureReader:
_throwUnsupportedconsumesNoContentgetCurrentTokenthrowIllegalState

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) throws IOException
UnionReaderback to summary
private UnionReader(AvroReadContext parent, AvroStructureReader[] memberReaders, AvroParserImpl parser) throws IOException

Method Detail

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

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

Annotations
@Override
newReaderback to summary
public UnionReader 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 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