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

public abstract Class AvroStructureReader

extends AvroReadContext
Class Inheritance
Known Direct Subclasses
tools.jackson.dataformat.avro.deser.MapReader, tools.jackson.dataformat.avro.deser.RecordReader, tools.jackson.dataformat.avro.deser.ScalarDecoderWrapper, tools.jackson.dataformat.avro.deser.UnionReader, tools.jackson.dataformat.avro.deser.ArrayReader
Imports
java.io.IOException, tools.jackson.core.JsonToken

Base class for handlers for Avro structured types (or in some cases, scalar types that need to be exposed in unified way similar to structured types).

Field Summary

Inherited from tools.jackson.dataformat.avro.deser.AvroReadContext:
_currentValue_currToken_parent_typeId

Constructor Summary

AccessConstructor and Description
protected
AvroStructureReader(AvroReadContext parent, int type, String typeId)

Method Summary

Modifier and TypeMethod and Description
protected <T> T
public boolean
consumesNoContent()

Method that may be called to check if the values "read" by this reader are zero-length, that is, consume no content: most common example being Record with no fields.

public abstract AvroStructureReader
newReader(AvroReadContext parent, AvroParserImpl parser)

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

public abstract JsonToken
public abstract void
skipValue(AvroParserImpl parser)

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

Alternative to nextToken which will simply skip the full value.

protected void
throwIllegalState(int state)

Inherited from tools.jackson.dataformat.avro.deser.AvroReadContext:
_reportErrorappendDescassignCurrentValuecurrentNamecurrentTokencurrentValuegetParentgetRemainingElementsgetTypeIdnextNamenextNameMatchtoString

Constructor Detail

AvroStructureReaderback to summary
protected AvroStructureReader(AvroReadContext parent, int type, String typeId)

Method Detail

_throwUnsupportedback to summary
protected <T> T _throwUnsupported()
consumesNoContentback to summary
public boolean consumesNoContent()

Method that may be called to check if the values "read" by this reader are zero-length, that is, consume no content: most common example being Record with no fields.

Note

Arrays can not return true as they need to encode length even for "empty" arrays.

newReaderback to summary
public abstract AvroStructureReader newReader(AvroReadContext parent, AvroParserImpl parser)

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

nextTokenback to summary
public abstract JsonToken nextToken() throws IOException

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

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

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

Alternative to nextToken which will simply skip the full value.

Annotations
@Override
throwIllegalStateback to summary
protected void throwIllegalState(int state)