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

public abstract Class AvroStructureReader

extends AvroReadContext
Class Inheritance
Known Direct Subclasses
com.fasterxml.jackson.dataformat.avro.deser.MapReader, com.fasterxml.jackson.dataformat.avro.deser.RecordReader, com.fasterxml.jackson.dataformat.avro.deser.ScalarDecoderWrapper, com.fasterxml.jackson.dataformat.avro.deser.UnionReader, com.fasterxml.jackson.dataformat.avro.deser.ArrayReader
Imports
java.io.IOException, com.fasterxml.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

Modifier and TypeField and Description
protected JsonToken
Inherited from com.fasterxml.jackson.dataformat.avro.deser.AvroReadContext:
_currentValue_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 final JsonToken
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 com.fasterxml.jackson.dataformat.avro.deser.AvroReadContext.skipValue.

Alternative to nextToken which will simply skip the full value.

protected void
throwIllegalState(int state)

Inherited from com.fasterxml.jackson.dataformat.avro.deser.AvroReadContext:
_reportErrorappendDescgetCurrentNamegetCurrentValuegetParentgetRemainingElementsgetTypeIdnextFieldNamesetCurrentValuetoString

Field Detail

_currTokenback to summary
protected JsonToken _currToken

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.

Since
2.10
getCurrentTokenback to summary
public final JsonToken getCurrentToken()

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

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

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

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

Implements abstract com.fasterxml.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)