Class ObjectWriteContext
java.lang.Object
tools.jackson.core.TokenStreamContext
tools.jackson.dataformat.avro.ser.AvroWriteContext
tools.jackson.dataformat.avro.ser.ObjectWriteContext
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected booleanprotected org.apache.avro.Schema.FieldDefinition of property that is to be written next, if any; null if property is to be skipped.protected final org.apache.avro.generic.GenericRecordFields inherited from class tools.jackson.dataformat.avro.ser.AvroWriteContext
_currentValue, _generator, _parent, _schemaFields inherited from class tools.jackson.core.TokenStreamContext
_index, _nestingDepth, _type, TYPE_ARRAY, TYPE_OBJECT, TYPE_ROOT -
Constructor Summary
ConstructorsConstructorDescriptionObjectWriteContext(AvroWriteContext parent, AvroGenerator generator, org.apache.avro.generic.GenericRecord record, Object currValue) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.avro.Schema.Fieldprotected void_reportUnknownField(String name) protected final voidfinal voidbooleancanClose()final AvroWriteContextcreateChildArrayContext(Object currValue) createChildObjectContext(Object currValue) final StringrawValue()Accessor called to link data being built with resulting object.final booleanMethod that writer is to call before it writes an Object property name.voidvoidwriteString(String value) voidwriteValue(Object value) Methods inherited from class tools.jackson.dataformat.avro.ser.AvroWriteContext
_createArray, _createObjectContext, _createRecord, _createRecord, _recordOrMapFromUnion, assignCurrentValue, complete, createRootContext, currentValue, getParent, nullContext, resolveUnionIndex, resolveUnionSchema, resolveUnionType, toString, writeBinaryMethods inherited from class tools.jackson.core.TokenStreamContext
getCurrentIndex, getEntryCount, getNestingDepth, hasCurrentIndex, hasCurrentName, hasPathSegment, inArray, inObject, inRoot, pathAsPointer, pathAsPointer, startLocation, typeDesc
-
Field Details
-
_record
protected final org.apache.avro.generic.GenericRecord _record -
_nextField
protected org.apache.avro.Schema.Field _nextFieldDefinition of property that is to be written next, if any; null if property is to be skipped. -
_currentName
-
_expectValue
protected boolean _expectValue
-
-
Constructor Details
-
ObjectWriteContext
public ObjectWriteContext(AvroWriteContext parent, AvroGenerator generator, org.apache.avro.generic.GenericRecord record, Object currValue)
-
-
Method Details
-
rawValue
Description copied from class:AvroWriteContextAccessor called to link data being built with resulting object.- Specified by:
rawValuein classAvroWriteContext
-
createChildArrayContext
- Specified by:
createChildArrayContextin classAvroWriteContext
-
createChildObjectContext
- Specified by:
createChildObjectContextin classAvroWriteContext
-
writeName
Description copied from class:AvroWriteContextMethod that writer is to call before it writes an Object property name.- Overrides:
writeNamein classAvroWriteContext- Returns:
- True if writing succeeded (for
ObjectWriteContext, iff column was recognized)
-
writeValue
- Specified by:
writeValuein classAvroWriteContext
-
writeString
- Specified by:
writeStringin classAvroWriteContext
-
writeNull
public void writeNull()- Specified by:
writeNullin classAvroWriteContext
-
_verifyValueWrite
protected final void _verifyValueWrite() -
_findField
protected org.apache.avro.Schema.Field _findField() -
_reportUnknownField
-
currentName
- Overrides:
currentNamein classAvroWriteContext
-
canClose
public boolean canClose()- Overrides:
canClosein classAvroWriteContext
-
appendDesc
- Specified by:
appendDescin classAvroWriteContext
-