Class VariantObjectBuilder

java.lang.Object
io.confluent.kafka.schemaregistry.type.VariantBuilder
io.confluent.kafka.schemaregistry.type.VariantObjectBuilder

public class VariantObjectBuilder extends VariantBuilder
Builder for creating Variant object, used by VariantBuilder.
  • Field Details

    • numValues

      protected long numValues
      The number of values appended to this object.
  • Method Details

    • appendKey

      public void appendKey(String key)
      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:
      onAppend in class VariantBuilder
    • onStartNested

      protected void onStartNested()
      Overrides:
      onStartNested in class VariantBuilder