Package org.apache.avro
Class SchemaBuilder.FixedBuilder<R>
java.lang.Object
org.apache.avro.SchemaBuilder.PropBuilder<SchemaBuilder.FixedBuilder<R>>
org.apache.avro.SchemaBuilder.NamedBuilder<SchemaBuilder.FixedBuilder<R>>
org.apache.avro.SchemaBuilder.NamespacedBuilder<R,SchemaBuilder.FixedBuilder<R>>
org.apache.avro.SchemaBuilder.FixedBuilder<R>
- Enclosing class:
SchemaBuilder
public static final class SchemaBuilder.FixedBuilder<R>
extends SchemaBuilder.NamespacedBuilder<R,SchemaBuilder.FixedBuilder<R>>
Builds an Avro Fixed type with optional properties, namespace, doc, and
aliases.
Set properties with
SchemaBuilder.PropBuilder.prop(String, String)
, namespace with
SchemaBuilder.NamespacedBuilder.namespace(String)
, doc with SchemaBuilder.NamedBuilder.doc(String)
, and aliases with
SchemaBuilder.NamedBuilder.aliases(String[])
.
The Fixed schema is finalized when its required size is set via
size(int)
.-
Method Summary
Modifier and TypeMethodDescriptionprotected SchemaBuilder.FixedBuilder
<R> self()
a self-type for chaining builder subclasses.size
(int size) Configure this fixed type's size, and end its configuration.Methods inherited from class org.apache.avro.SchemaBuilder.NamespacedBuilder
namespace
Methods inherited from class org.apache.avro.SchemaBuilder.NamedBuilder
aliases, doc
Methods inherited from class org.apache.avro.SchemaBuilder.PropBuilder
prop, prop
-
Method Details
-
self
Description copied from class:SchemaBuilder.PropBuilder
a self-type for chaining builder subclasses. Concrete subclasses must return 'this'- Specified by:
self
in classSchemaBuilder.PropBuilder<SchemaBuilder.FixedBuilder<R>>
-
size
Configure this fixed type's size, and end its configuration.
-