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

public final Class ObjectWriteContext

extends KeyValueContext
Class Inheritance
Imports
org.apache.avro.Schema, org.apache.avro.generic.GenericRecord, com.fasterxml.jackson.core.JsonGenerator, com.fasterxml.jackson.databind.JsonMappingException, com.fasterxml.jackson.dataformat.avro.AvroGenerator

Field Summary

Modifier and TypeField and Description
protected Schema.Field
_nextField

Definition of property that is to be written next, if any; null if property is to be skipped.

protected final GenericRecord
Inherited from com.fasterxml.jackson.dataformat.avro.ser.KeyValueContext:
_currentName_expectValue

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected Schema.Field
protected void
protected final void
public final AvroWriteContext
public 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 final boolean
writeFieldName(String name)

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

Method that writer is to call before it writes a field name.

public void
public void
public void
Inherited from com.fasterxml.jackson.dataformat.avro.ser.KeyValueContext:
appendDesccanClosegetCurrentName

Field Detail

_nextFieldback to summary
protected Schema.Field _nextField

Definition of property that is to be written next, if any; null if property is to be skipped.

_recordback to summary
protected final GenericRecord _record

Constructor Detail

ObjectWriteContextback to summary
public ObjectWriteContext(AvroWriteContext parent, AvroGenerator generator, GenericRecord record, Object currValue)

Method Detail

_findFieldback to summary
protected Schema.Field _findField()
_reportUnknownFieldback to summary
protected void _reportUnknownField(String name)
_verifyValueWriteback to summary
protected final void _verifyValueWrite()
createChildArrayContextback to summary
public final AvroWriteContext createChildArrayContext(Object currValue)

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

Annotations
@Override
createChildObjectContextback to summary
public 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
writeFieldNameback to summary
public final boolean writeFieldName(String name)

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

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

Method that writer is to call before it writes a field name.

Returns:boolean

True if writing succeeded (for ObjectWriteContext, iff column was recognized)

Annotations
@Override
writeNullback to summary
public void writeNull()

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

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

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

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

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

Annotations
@Override