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

pack-priv abstract Class RecordReader

extends AvroStructureReader
Class Inheritance
Known Direct Subclasses
com.fasterxml.jackson.dataformat.avro.deser.RecordReader.Std, com.fasterxml.jackson.dataformat.avro.deser.RecordReader.Resolving
Imports
java.io.IOException, com.fasterxml.jackson.core.JsonToken, com.fasterxml.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
Inherited from com.fasterxml.jackson.dataformat.avro.deser.AvroStructureReader:
_currToken

Constructor Summary

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

Method Summary

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

Overrides com.fasterxml.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
getCurrentName()

Overrides com.fasterxml.jackson.dataformat.avro.deser.AvroReadContext.getCurrentName.

Method for accessing name associated with the current location.

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

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) throws IOException

Method Detail

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

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

Annotations
@Override
consumesNoContentback to summary
public boolean consumesNoContent()

Overrides com.fasterxml.jackson.dataformat.avro.deser.AvroStructureReader.consumesNoContent.

Doc from com.fasterxml.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
getCurrentNameback to summary
public String getCurrentName()

Overrides com.fasterxml.jackson.dataformat.avro.deser.AvroReadContext.getCurrentName.

Doc from com.fasterxml.jackson.core.JsonStreamContext.getCurrentName.

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

Returns:String

Current field name within context, if any; null if none

Annotations
@Override
getTypeIdback to summary
public String getTypeId()

Overrides com.fasterxml.jackson.dataformat.avro.deser.AvroReadContext.getTypeId.

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

public final Class RecordReader.Resolving

extends RecordReader
Class Inheritance

Field Summary

Inherited from com.fasterxml.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 com.fasterxml.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 JsonToken
Inherited from com.fasterxml.jackson.dataformat.avro.deser.RecordReader:
_nextAtEndObjectappendDescconsumesNoContentgetCurrentNamegetTypeIdskipValue

Constructor Detail

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

Method Detail

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

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

public final Class RecordReader.Std

extends RecordReader
Class Inheritance

Field Summary

Inherited from com.fasterxml.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 com.fasterxml.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 JsonToken
Inherited from com.fasterxml.jackson.dataformat.avro.deser.RecordReader:
_nextAtEndObjectappendDescconsumesNoContentgetCurrentNamegetTypeIdskipValue

Constructor Detail

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

Method Detail

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

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