Package org.apache.avro
Class SchemaBuilder.ArrayBuilder<R>
java.lang.Object
org.apache.avro.SchemaBuilder.PropBuilder<SchemaBuilder.ArrayBuilder<R>>
org.apache.avro.SchemaBuilder.ArrayBuilder<R>
- Enclosing class:
SchemaBuilder
public static final class SchemaBuilder.ArrayBuilder<R>
extends SchemaBuilder.PropBuilder<SchemaBuilder.ArrayBuilder<R>>
Builds an Avro Array type with optional properties.
Set properties with
SchemaBuilder.PropBuilder.prop(String, String)
.
The Array schema's properties are finalized when items()
or
items(Schema)
is called.-
Constructor Summary
ConstructorDescriptionArrayBuilder
(org.apache.avro.SchemaBuilder.Completion<R> context, org.apache.avro.SchemaBuilder.NameContext names) -
Method Summary
Modifier and TypeMethodDescriptionitems()
Return a type builder for configuring the array's nested items schema.Complete configuration of this array, setting the schema of the array items to the schema provided.protected SchemaBuilder.ArrayBuilder
<R> self()
a self-type for chaining builder subclasses.Methods inherited from class org.apache.avro.SchemaBuilder.PropBuilder
prop, prop
-
Constructor Details
-
ArrayBuilder
public ArrayBuilder(org.apache.avro.SchemaBuilder.Completion<R> context, org.apache.avro.SchemaBuilder.NameContext names)
-
-
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.ArrayBuilder<R>>
-
items
Return a type builder for configuring the array's nested items schema. This builder will return control to the array's enclosing context when complete. -
items
Complete configuration of this array, setting the schema of the array items to the schema provided. Returns control to the enclosing context.
-