Class VariantObjectBuilder
java.lang.Object
io.confluent.kafka.schemaregistry.type.VariantBuilder
io.confluent.kafka.schemaregistry.type.VariantObjectBuilder
Builder for creating Variant object, used by VariantBuilder.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected longThe number of values appended to this object.Fields inherited from class io.confluent.kafka.schemaregistry.type.VariantBuilder
arrayBuilder, metadata, objectBuilder, writeBuffer, writePos -
Method Summary
Modifier and TypeMethodDescriptionvoidAppends an object key to this object.protected voidonAppend()protected voidMethods inherited from class io.confluent.kafka.schemaregistry.type.VariantBuilder
appendBinary, appendBoolean, appendByte, appendDate, appendDecimal, appendDouble, appendEncodedValue, appendFloat, appendInt, appendLong, appendNull, appendNullIfEmpty, appendShort, appendString, appendTime, appendTimestampNanosNtz, appendTimestampNanosTz, appendTimestampNtz, appendTimestampTz, appendUUID, build, checkAppendWhileNested, checkMultipleNested, encodedValue, endArray, endObject, endObjectIfExists, getMinIntegerSize, startArray, startObject, startOrContinueObject, startOrContinuePartialObject
-
Field Details
-
numValues
protected long numValuesThe number of values appended to this object.
-
-
Method Details
-
appendKey
Appends an object key to this object. This method must be called before appending any value.- Parameters:
key- the key to append
-
onAppend
protected void onAppend()- Overrides:
onAppendin classVariantBuilder
-
onStartNested
protected void onStartNested()- Overrides:
onStartNestedin classVariantBuilder
-