public static final class SchemaBuilder.ArrayBuilder<R> extends SchemaBuilder.PropBuilder<SchemaBuilder.ArrayBuilder<R>>
SchemaBuilder.PropBuilder.prop(String, String)
.
The Array schema's properties are finalized when items()
or
items(Schema)
is called.Constructor and Description |
---|
ArrayBuilder(org.apache.avro.SchemaBuilder.Completion<R> context,
org.apache.avro.SchemaBuilder.NameContext names) |
Modifier and Type | Method and Description |
---|---|
SchemaBuilder.TypeBuilder<R> |
items()
Return a type builder for configuring the array's nested items schema.
|
R |
items(Schema itemsSchema)
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.
|
prop, prop
public ArrayBuilder(org.apache.avro.SchemaBuilder.Completion<R> context, org.apache.avro.SchemaBuilder.NameContext names)
protected SchemaBuilder.ArrayBuilder<R> self()
SchemaBuilder.PropBuilder
self
in class SchemaBuilder.PropBuilder<SchemaBuilder.ArrayBuilder<R>>
public SchemaBuilder.TypeBuilder<R> items()
Copyright © 2009–2021 The Apache Software Foundation. All rights reserved.