public class ArrayWriteContext extends AvroWriteContext
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.avro.generic.GenericArray<Object> |
_array |
_currentValue, _generator, _parent, _schema| Constructor and Description |
|---|
ArrayWriteContext(AvroWriteContext parent,
AvroGenerator generator,
org.apache.avro.generic.GenericArray<Object> array,
Object currValue) |
| Modifier and Type | Method and Description |
|---|---|
void |
appendDesc(StringBuilder sb) |
AvroWriteContext |
createChildArrayContext(Object currValue) |
AvroWriteContext |
createChildObjectContext(Object currValue) |
Object |
rawValue()
Accessor called to link data being built with resulting object.
|
void |
writeNull() |
void |
writeString(String value) |
void |
writeValue(Object value) |
_createArray, _createObjectContext, _createRecord, _createRecord, _recordOrMapFromUnion, canClose, complete, createRootContext, getCurrentName, getCurrentValue, getParent, nullContext, resolveUnionIndex, resolveUnionSchema, resolveUnionType, setCurrentValue, toString, writeBinary, writeFieldNameprotected final org.apache.avro.generic.GenericArray<Object> _array
public ArrayWriteContext(AvroWriteContext parent, AvroGenerator generator, org.apache.avro.generic.GenericArray<Object> array, Object currValue)
public Object rawValue()
AvroWriteContextrawValue in class AvroWriteContextpublic final AvroWriteContext createChildArrayContext(Object currValue) throws com.fasterxml.jackson.databind.JsonMappingException
createChildArrayContext in class AvroWriteContextcom.fasterxml.jackson.databind.JsonMappingExceptionpublic AvroWriteContext createChildObjectContext(Object currValue) 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 AvroWriteContextpublic void writeNull()
throws com.fasterxml.jackson.databind.JsonMappingException
writeNull in class AvroWriteContextcom.fasterxml.jackson.databind.JsonMappingExceptionpublic void appendDesc(StringBuilder sb)
appendDesc in class AvroWriteContextCopyright © 2021 FasterXML. All rights reserved.