Top Fields Constructors Methods
com.fasterxml.jackson.dataformat.avro.ser

pack-priv Class RootContext

extends AvroWriteContext
Class Inheritance
Imports
java.io.IOException, .OutputStream, org.apache.avro.Schema, org.apache.avro.file.DataFileWriter, org.apache.avro.generic.*, org.apache.avro.io.BinaryEncoder, .DatumWriter, com.fasterxml.jackson.databind.JsonMappingException, com.fasterxml.jackson.dataformat.avro.AvroGenerator, .AvroGenerator.Feature

Field Summary

Modifier and TypeField and Description
protected final BinaryEncoder
protected Object
_rootValue

We need to keep reference to the root value here; either GenericContainer or Map (yes, Avro APIs are...

private NonBSGenericDatumWriter<Object>
_writer

Lazily created instance for encoding: reused in case of root value sequences.

Inherited from com.fasterxml.jackson.dataformat.avro.ser.AvroWriteContext:
_currentValue_generator_parent_schema

Constructor Summary

AccessConstructor and Description
public
RootContext(AvroGenerator generator, Schema schema, BinaryEncoder encoder)

Method Summary

Modifier and TypeMethod and Description
protected void
private final NonBSGenericDatumWriter<Object>
public void
public void
public final AvroWriteContext
public final AvroWriteContext
public Object
rawValue()

Implements abstract com.fasterxml.jackson.dataformat.avro.ser.AvroWriteContext.rawValue.

Accessor called to link data being built with resulting object.

public void
public void
public void
Inherited from com.fasterxml.jackson.dataformat.avro.ser.AvroWriteContext:
_createArray_createObjectContext_createRecord_createRecord_recordOrMapFromUnioncanClosecreateRootContextgetCurrentNamegetCurrentValuegetParentnullContextresolveUnionIndexresolveUnionSchemaresolveUnionTypesetCurrentValuetoStringwriteBinarywriteFieldName

Field Detail

_encoderback to summary
protected final BinaryEncoder _encoder
_rootValueback to summary
protected Object _rootValue

We need to keep reference to the root value here; either GenericContainer or Map (yes, Avro APIs are... odd).

_writerback to summary
private NonBSGenericDatumWriter<Object> _writer

Lazily created instance for encoding: reused in case of root value sequences.

Constructor Detail

RootContextback to summary
public RootContext(AvroGenerator generator, Schema schema, BinaryEncoder encoder)

Method Detail

_reportErrorback to summary
protected void _reportError()
_writerback to summary
private final NonBSGenericDatumWriter<Object> _writer()
appendDescback to summary
public void appendDesc(StringBuilder sb)

Implements abstract com.fasterxml.jackson.dataformat.avro.ser.AvroWriteContext.appendDesc.

Annotations
@Override
completeback to summary
public void complete() throws IOException

Overrides com.fasterxml.jackson.dataformat.avro.ser.AvroWriteContext.complete.

Annotations
@SuppressWarnings:resource
@Override
createChildArrayContextback to summary
public final AvroWriteContext createChildArrayContext(Object currValue) throws JsonMappingException

Implements abstract com.fasterxml.jackson.dataformat.avro.ser.AvroWriteContext.createChildArrayContext.

Annotations
@Override
createChildObjectContextback to summary
public final AvroWriteContext createChildObjectContext(Object currValue) throws JsonMappingException

Implements abstract com.fasterxml.jackson.dataformat.avro.ser.AvroWriteContext.createChildObjectContext.

Annotations
@Override
rawValueback to summary
public Object rawValue()

Implements abstract com.fasterxml.jackson.dataformat.avro.ser.AvroWriteContext.rawValue.

Doc from com.fasterxml.jackson.dataformat.avro.ser.AvroWriteContext.rawValue.

Accessor called to link data being built with resulting object.

Annotations
@Override
writeNullback to summary
public void writeNull() throws IOException

Implements abstract com.fasterxml.jackson.dataformat.avro.ser.AvroWriteContext.writeNull.

Annotations
@Override
writeStringback to summary
public void writeString(String value) throws IOException

Implements abstract com.fasterxml.jackson.dataformat.avro.ser.AvroWriteContext.writeString.

Annotations
@Override
writeValueback to summary
public void writeValue(Object value) throws IOException

Implements abstract com.fasterxml.jackson.dataformat.avro.ser.AvroWriteContext.writeValue.

Annotations
@Override