public final class MapWriteContext extends AvroWriteContext
ObjectWriteContext that needs to be used with
Avro Map datatype.| Modifier and Type | Field and Description |
|---|---|
protected String |
_currentName |
protected Map<String,Object> |
_data |
protected boolean |
_expectValue |
_generator, _parent, _schema| Constructor and Description |
|---|
MapWriteContext(AvroWriteContext parent,
AvroGenerator generator,
org.apache.avro.Schema schema) |
| Modifier and Type | Method and Description |
|---|---|
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, toStringprotected String _currentName
protected boolean _expectValue
public MapWriteContext(AvroWriteContext parent, AvroGenerator generator, org.apache.avro.Schema schema)
public Object rawValue()
AvroWriteContextrawValue in class AvroWriteContextpublic final boolean writeFieldName(String name)
AvroWriteContextwriteFieldName in class AvroWriteContextObjectWriteContext,
iff column was recognized)public final AvroWriteContext createChildArrayContext()
createChildArrayContext in class AvroWriteContextpublic final AvroWriteContext createChildObjectContext() throws com.fasterxml.jackson.databind.JsonMappingException
createChildObjectContext in class AvroWriteContextcom.fasterxml.jackson.databind.JsonMappingExceptionpublic void writeValue(Object value)
writeValue in class AvroWriteContextpublic void writeString(String value)
writeString in class AvroWriteContextprotected final void _verifyValueWrite()
public final String getCurrentName()
getCurrentName in class AvroWriteContextpublic boolean canClose()
canClose in class AvroWriteContextpublic final void appendDesc(StringBuilder sb)
appendDesc in class AvroWriteContextCopyright © 2016 FasterXML. All rights reserved.