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

pack-priv abstract Class RecordReader

extends AvroStructureReader
Class Inheritance
Known Direct Subclasses
tools.jackson.dataformat.avro.deser.RecordReader.Std, tools.jackson.dataformat.avro.deser.RecordReader.Resolving
Imports
java.io.IOException, tools.jackson.core.JsonToken, tools.jackson.core.sym.PropertyNameMatcher, tools.jackson.dataformat.avro.schema.AvroSchemaHelper

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
public static class

Field Summary

Modifier and TypeField and Description
protected final int
protected String
protected final AvroFieldReader[]
protected final AvroParserImpl
protected int
protected static final int
protected static final int
protected static final int
protected static final int
protected static final int

Constructor Summary

AccessConstructor and Description
protected
RecordReader(AvroReadContext parent, AvroFieldReader[] fieldReaders, AvroParserImpl parser, String typeId)

Method Summary

Modifier and TypeMethod and Description
protected final int
protected final JsonToken
public void
public boolean
consumesNoContent()

Overrides tools.jackson.dataformat.avro.deser.AvroStructureReader.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 String
currentName()

Overrides tools.jackson.dataformat.avro.deser.AvroReadContext.currentName.

Method for accessing name associated with the current location.

public String
public abstract RecordReader
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 final 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:
_throwUnsupportednextTokenthrowIllegalState

Field Detail

_countback to summary
protected final int _count
_currentNameback to summary
protected String _currentName
_fieldReadersback to summary
protected final AvroFieldReader[] _fieldReaders
_parserback to summary
protected final AvroParserImpl _parser
_stateback to summary
protected int _state
STATE_DONEback to summary
protected static final int STATE_DONE
STATE_ENDback to summary
protected static final int STATE_END
STATE_NAMEback to summary
protected static final int STATE_NAME
STATE_STARTback to summary
protected static final int STATE_START
STATE_VALUEback to summary
protected static final int STATE_VALUE

Constructor Detail

RecordReaderback to summary
protected RecordReader(AvroReadContext parent, AvroFieldReader[] fieldReaders, AvroParserImpl parser, String typeId)

Method Detail

_matchAtEndObjectback to summary
protected final int _matchAtEndObject() throws IOException
_nextAtEndObjectback to summary
protected final JsonToken _nextAtEndObject() throws IOException
appendDescback to summary
public void appendDesc(StringBuilder sb)

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

Annotations
@Override
consumesNoContentback to summary
public boolean consumesNoContent()

Overrides tools.jackson.dataformat.avro.deser.AvroStructureReader.consumesNoContent.

Doc from tools.jackson.dataformat.avro.deser.AvroStructureReader.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.

Annotations
@Override
currentNameback to summary
public String currentName()

Overrides tools.jackson.dataformat.avro.deser.AvroReadContext.currentName.

Doc from tools.jackson.core.TokenStreamContext.currentName.

Method for accessing name associated with the current location. Non-null for PROPERTY_NAME and value events that directly follow Property names; null for root level and array values.

Annotations
@Override
getTypeIdback to summary
public String getTypeId()

Overrides tools.jackson.dataformat.avro.deser.AvroReadContext.getTypeId.

Annotations
@Override
newReaderback to summary
public abstract RecordReader 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
skipValueback to summary
public final 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
tools.jackson.dataformat.avro.deser back to summary

public final Class RecordReader.Resolving

extends RecordReader
Class Inheritance

Field Summary

Inherited from tools.jackson.dataformat.avro.deser.RecordReader:
_count_currentName_fieldReaders_parser_stateSTATE_DONESTATE_ENDSTATE_NAMESTATE_STARTSTATE_VALUE

Constructor Summary

AccessConstructor and Description
public
Resolving(AvroFieldReader[] fieldReaders, String typeId)

public
Resolving(AvroReadContext parent, AvroFieldReader[] fieldReaders, AvroParserImpl parser, String typeId)

Method Summary

Modifier and TypeMethod and Description
public RecordReader
newReader(AvroReadContext parent, AvroParserImpl parser)

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

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

public String
public int
public JsonToken
Inherited from tools.jackson.dataformat.avro.deser.RecordReader:
_matchAtEndObject_nextAtEndObjectappendDescconsumesNoContentcurrentNamegetTypeIdskipValue

Constructor Detail

Resolvingback to summary
public Resolving(AvroFieldReader[] fieldReaders, String typeId)
Resolvingback to summary
public Resolving(AvroReadContext parent, AvroFieldReader[] fieldReaders, AvroParserImpl parser, String typeId)

Method Detail

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

Implements abstract tools.jackson.dataformat.avro.deser.RecordReader.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
tools.jackson.dataformat.avro.deser back to summary

public final Class RecordReader.Std

extends RecordReader
Class Inheritance

Field Summary

Inherited from tools.jackson.dataformat.avro.deser.RecordReader:
_count_currentName_fieldReaders_parser_stateSTATE_DONESTATE_ENDSTATE_NAMESTATE_STARTSTATE_VALUE

Constructor Summary

AccessConstructor and Description
public
Std(AvroFieldReader[] fieldReaders, String typeId)

public
Std(AvroReadContext parent, AvroFieldReader[] fieldReaders, AvroParserImpl parser, String typeId)

Method Summary

Modifier and TypeMethod and Description
public RecordReader
newReader(AvroReadContext parent, AvroParserImpl parser)

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

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

public String
public int
public JsonToken
Inherited from tools.jackson.dataformat.avro.deser.RecordReader:
_matchAtEndObject_nextAtEndObjectappendDescconsumesNoContentcurrentNamegetTypeIdskipValue

Constructor Detail

Stdback to summary
public Std(AvroFieldReader[] fieldReaders, String typeId)
Stdback to summary
public Std(AvroReadContext parent, AvroFieldReader[] fieldReaders, AvroParserImpl parser, String typeId)

Method Detail

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

Implements abstract tools.jackson.dataformat.avro.deser.RecordReader.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