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

public Class StructDefaults

extends Object
Class Inheritance
Imports
java.io.IOException, java.util.List, com.fasterxml.jackson.core.JsonToken

Default-providing AvroFieldReader implementations for structured types. Built solely based on JSON default values, for now, so only two variants needed. In future may need to tie to Avro type hierarchy more closely.

Nested and Inner Type Summary

Modifier and TypeClass and Description
protected static class
protected static class

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static AvroFieldReader
public static AvroFieldReader
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

StructDefaultsback to summary
public StructDefaults()

Method Detail

createArrayDefaultsback to summary
public static AvroFieldReader createArrayDefaults(String name, List<AvroFieldReader> fieldReaders) throws IOException
createObjectDefaultsback to summary
public static AvroFieldReader createObjectDefaults(String name, List<AvroFieldReader> fieldReaders) throws IOException
com.fasterxml.jackson.dataformat.avro.deser back to summary

protected Class StructDefaults.ArrayDefaults

extends ArrayReader
Class Inheritance

Field Summary

Modifier and TypeField and Description
protected final AvroFieldReader[]
Inherited from com.fasterxml.jackson.dataformat.avro.deser.ArrayReader:
_count_currentName_elementTypeId_parser_stateSTATE_DONESTATE_ELEMENTSSTATE_ENDSTATE_START

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public ArrayReader
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 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.ArrayReader:
appendDescconstructconstructgetCurrentNamegetRemainingElementsgetTypeIdnextFieldName

Field Detail

_valueReadersback to summary
protected final AvroFieldReader[] _valueReaders

Constructor Detail

ArrayDefaultsback to summary
public ArrayDefaults(AvroReadContext parent, AvroParserImpl parser, AvroFieldReader[] valueReaders) throws IOException

Method Detail

newReaderback to summary
public ArrayReader 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
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
com.fasterxml.jackson.dataformat.avro.deser back to summary

protected Class StructDefaults.ObjectDefaults

extends MapReader
Class Inheritance

Field Summary

Modifier and TypeField and Description
protected final AvroFieldReader[]
Inherited from com.fasterxml.jackson.dataformat.avro.deser.MapReader:
_currentName_keyTypeId_parser_state_valueTypeIdSTATE_DONESTATE_ENDSTATE_NAMESTATE_STARTSTATE_VALUE

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

Implements abstract com.fasterxml.jackson.dataformat.avro.deser.MapReader.newReader.

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

public JsonToken
public void
skipValue(AvroParserImpl parser)

Implements abstract com.fasterxml.jackson.dataformat.avro.deser.MapReader.skipValue.

Alternative to nextToken which will simply skip the full value.

Inherited from com.fasterxml.jackson.dataformat.avro.deser.MapReader:
appendDescconstructconstructgetCurrentNamegetTypeIdnextFieldName

Field Detail

_fieldReadersback to summary
protected final AvroFieldReader[] _fieldReaders

Constructor Detail

ObjectDefaultsback to summary
public ObjectDefaults(AvroReadContext parent, AvroParserImpl parser, AvroFieldReader[] fieldReaders) throws IOException

Method Detail

getRemainingElementsback to summary
public long getRemainingElements()

Implements abstract com.fasterxml.jackson.dataformat.avro.deser.MapReader.getRemainingElements.

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

Implements abstract com.fasterxml.jackson.dataformat.avro.deser.MapReader.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
nextTokenback to summary
public JsonToken nextToken() throws IOException

Implements abstract com.fasterxml.jackson.dataformat.avro.deser.MapReader.nextToken.

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

Implements abstract com.fasterxml.jackson.dataformat.avro.deser.MapReader.skipValue.

Doc from com.fasterxml.jackson.dataformat.avro.deser.AvroStructureReader.skipValue.

Alternative to nextToken which will simply skip the full value.

Annotations
@Override