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

pack-priv abstract Class KeyValueContext

extends AvroWriteContext
Class Inheritance
Known Direct Subclasses
com.fasterxml.jackson.dataformat.avro.ser.MapWriteContext, com.fasterxml.jackson.dataformat.avro.ser.ObjectWriteContext
Imports
org.apache.avro.Schema, com.fasterxml.jackson.dataformat.avro.AvroGenerator

Shared base class for both Record- and Map-backed types.

Field Summary

Modifier and TypeField and Description
protected String
protected boolean
Inherited from com.fasterxml.jackson.dataformat.avro.ser.AvroWriteContext:
_currentValue_generator_parent_schema

Constructor Summary

AccessConstructor and Description
protected
KeyValueContext(AvroWriteContext parent, AvroGenerator generator, Schema schema, Object currValue)

Method Summary

Modifier and TypeMethod and Description
public final void
public boolean
public final String
getCurrentName()

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

Method for accessing name associated with the current location.

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

Field Detail

_currentNameback to summary
protected String _currentName
_expectValueback to summary
protected boolean _expectValue

Constructor Detail

KeyValueContextback to summary
protected KeyValueContext(AvroWriteContext parent, AvroGenerator generator, Schema schema, Object currValue)

Method Detail

appendDescback to summary
public final void appendDesc(StringBuilder sb)

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

Annotations
@Override
canCloseback to summary
public boolean canClose()

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

Annotations
@Override
getCurrentNameback to summary
public final String getCurrentName()

Overrides com.fasterxml.jackson.dataformat.avro.ser.AvroWriteContext.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