Class SchemaBuilder.NamespacedBuilder<R,S extends SchemaBuilder.NamespacedBuilder<R,S>>

Direct Known Subclasses:
SchemaBuilder.EnumBuilder, SchemaBuilder.FixedBuilder, SchemaBuilder.RecordBuilder
Enclosing class:
SchemaBuilder

public abstract static class SchemaBuilder.NamespacedBuilder<R,S extends SchemaBuilder.NamespacedBuilder<R,S>> extends SchemaBuilder.NamedBuilder<S>
An abstract type that provides builder methods for configuring the namespace for all Avro types that have namespaces (Fixed, Record, and Enum).
  • Constructor Details

    • NamespacedBuilder

      protected NamespacedBuilder(org.apache.avro.SchemaBuilder.Completion<R> context, org.apache.avro.SchemaBuilder.NameContext names, String name)
  • Method Details

    • namespace

      public final S namespace(String namespace)
      Set the namespace of this type. To clear the namespace, set empty string.

      When the namespace is null or unset, the namespace of the type defaults to the namespace of the enclosing context.