public final class ObjectWriteContext extends AvroWriteContext
Modifier and Type | Field and Description |
---|---|
protected String |
_currentName |
protected boolean |
_expectValue |
protected org.apache.avro.Schema.Field |
_nextField
Definition of property that is to be written next, if any;
null if property is to be skipped.
|
protected org.apache.avro.generic.GenericRecord |
_record |
_generator, _parent, _schema
Constructor and Description |
---|
ObjectWriteContext(AvroWriteContext parent,
AvroGenerator generator,
org.apache.avro.generic.GenericRecord record) |
Modifier and Type | Method and Description |
---|---|
protected org.apache.avro.Schema.Field |
_findField() |
protected void |
_reportUnknownField(String name) |
protected void |
_verifyValueWrite() |
void |
appendDesc(StringBuilder sb) |
boolean |
canClose() |
AvroWriteContext |
createChildArrayContext() |
AvroWriteContext |
createChildObjectContext() |
String |
getCurrentName() |
Object |
rawValue()
Accessor called to link data being built with resulting object.
|
boolean |
writeFieldName(String name)
Method that writer is to call before it writes a field name.
|
void |
writeString(String value) |
void |
writeValue(Object value) |
_createArray, _createObjectContext, _createRecord, _recordOrMapFromUnion, complete, createNullContext, createRootContext, getParent, toString
protected final org.apache.avro.generic.GenericRecord _record
protected org.apache.avro.Schema.Field _nextField
protected String _currentName
protected boolean _expectValue
public ObjectWriteContext(AvroWriteContext parent, AvroGenerator generator, org.apache.avro.generic.GenericRecord record)
public Object rawValue()
AvroWriteContext
rawValue
in class AvroWriteContext
public final AvroWriteContext createChildArrayContext()
createChildArrayContext
in class AvroWriteContext
public final AvroWriteContext createChildObjectContext() throws com.fasterxml.jackson.databind.JsonMappingException
createChildObjectContext
in class AvroWriteContext
com.fasterxml.jackson.databind.JsonMappingException
public final boolean writeFieldName(String name)
AvroWriteContext
writeFieldName
in class AvroWriteContext
ObjectWriteContext
,
iff column was recognized)public void writeValue(Object value) throws com.fasterxml.jackson.databind.JsonMappingException
writeValue
in class AvroWriteContext
com.fasterxml.jackson.databind.JsonMappingException
public void writeString(String value)
writeString
in class AvroWriteContext
protected final void _verifyValueWrite()
protected org.apache.avro.Schema.Field _findField()
protected void _reportUnknownField(String name)
public final String getCurrentName()
getCurrentName
in class AvroWriteContext
public boolean canClose()
canClose
in class AvroWriteContext
public final void appendDesc(StringBuilder sb)
appendDesc
in class AvroWriteContext
Copyright © 2016 FasterXML. All rights reserved.