public static final class SchemaBuilder.FieldBuilder<R> extends SchemaBuilder.NamedBuilder<SchemaBuilder.FieldBuilder<R>>
SchemaBuilder.FieldAssembler
.
Usage is to first configure any of the optional parameters and then to call one
of the type methods to complete the field. For example
.namespace("org.apache.example").orderDecending().type()Optional parameters for a field are namespace, doc, order, and aliases.
Modifier and Type | Method and Description |
---|---|
SchemaBuilder.FieldBuilder<R> |
orderAscending()
Set this field to have ascending order.
|
SchemaBuilder.FieldBuilder<R> |
orderDescending()
Set this field to have decending order.
|
SchemaBuilder.FieldBuilder<R> |
orderIgnore()
Set this field to ignore order.
|
protected SchemaBuilder.FieldBuilder<R> |
self()
a self-type for chaining builder subclasses.
|
SchemaBuilder.FieldTypeBuilder<R> |
type()
Final step in configuring this field, finalizing name, namespace, alias,
and order.
|
SchemaBuilder.GenericDefault<R> |
type(Schema type)
Final step in configuring this field, finalizing name, namespace, alias,
and order.
|
SchemaBuilder.GenericDefault<R> |
type(String name)
Final step in configuring this field, finalizing name, namespace, alias,
and order.
|
SchemaBuilder.GenericDefault<R> |
type(String name,
String namespace)
Final step in configuring this field, finalizing name, namespace, alias,
and order.
|
aliases, doc
prop
public SchemaBuilder.FieldBuilder<R> orderAscending()
public SchemaBuilder.FieldBuilder<R> orderDescending()
public SchemaBuilder.FieldBuilder<R> orderIgnore()
public SchemaBuilder.FieldTypeBuilder<R> type()
public SchemaBuilder.GenericDefault<R> type(Schema type)
SchemaBuilder.GenericDefault
.public SchemaBuilder.GenericDefault<R> type(String name)
public SchemaBuilder.GenericDefault<R> type(String name, String namespace)
protected SchemaBuilder.FieldBuilder<R> self()
SchemaBuilder.PropBuilder
self
in class SchemaBuilder.PropBuilder<SchemaBuilder.FieldBuilder<R>>
Copyright © 2009–2017 The Apache Software Foundation. All rights reserved.