public abstract static class Schema.Field
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Schema.Field.Builder
A
Schema.Field builder. |
| Constructor and Description |
|---|
Field() |
| Modifier and Type | Method and Description |
|---|---|
abstract Schema.Field |
arrayItemSchema()
If
type() is FieldType.ARRAY, a reference to the array item type. |
static Schema.Field.Builder |
builder() |
abstract java.lang.String |
name()
The name of the field.
|
abstract Schema.SchemaReference |
schemaReference()
If
type() is FieldType.OBJECT, a reference to the schema type that the field
refers to. |
abstract FieldType |
type()
The type classification of the field.
|
public abstract java.lang.String name()
public abstract FieldType type()
@Nullable public abstract Schema.SchemaReference schemaReference()
type() is FieldType.OBJECT, a reference to the schema type that the field
refers to.@Nullable public abstract Schema.Field arrayItemSchema()
type() is FieldType.ARRAY, a reference to the array item type.public static Schema.Field.Builder builder()