public static class Types.StructType.Field
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
comment() |
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
java.lang.String |
name() |
static Types.StructType.Field |
notNullField(java.lang.String name,
Type type) |
static Types.StructType.Field |
notNullField(java.lang.String name,
Type type,
java.lang.String comment) |
boolean |
nullable() |
static Types.StructType.Field |
nullableField(java.lang.String name,
Type type) |
static Types.StructType.Field |
nullableField(java.lang.String name,
Type type,
java.lang.String comment) |
static Types.StructType.Field |
of(java.lang.String name,
Type type,
boolean nullable,
java.lang.String comment) |
java.lang.String |
simpleString() |
Type |
type() |
public static Types.StructType.Field notNullField(java.lang.String name, Type type)
name - The name of the field.type - The type of the field.Types.StructType.Field with the given name, type and empty comment.public static Types.StructType.Field notNullField(java.lang.String name, Type type, java.lang.String comment)
name - The name of the field.type - The type of the field.comment - The comment of the field.Types.StructType.Field with the given name, type and comment.public static Types.StructType.Field nullableField(java.lang.String name, Type type)
name - The name of the field.type - The type of the field.Types.StructType.Field with the given name, type and empty comment.public static Types.StructType.Field nullableField(java.lang.String name, Type type, java.lang.String comment)
name - The name of the field.type - The type of the field.comment - The comment of the field.Types.StructType.Field with the given name, type and comment.public static Types.StructType.Field of(java.lang.String name, Type type, boolean nullable, java.lang.String comment)
name - The name of the field.type - The type of the field.nullable - Whether the field is nullable.comment - The comment of the field.Types.StructType.Field with the given name, type and comment.public java.lang.String name()
public Type type()
public boolean nullable()
public java.lang.String comment()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String simpleString()