Package org.apache.gravitino.rel.types
Class Types.StructType.Field
java.lang.Object
org.apache.gravitino.rel.types.Types.StructType.Field
- Enclosing class:
- Types.StructType
A field of a struct type.
-
Method Summary
Modifier and TypeMethodDescriptioncomment()booleaninthashCode()name()static Types.StructType.FieldnotNullField(String name, Type type) static Types.StructType.FieldnotNullField(String name, Type type, String comment) booleannullable()static Types.StructType.FieldnullableField(String name, Type type) static Types.StructType.FieldnullableField(String name, Type type, String comment) static Types.StructType.Fieldtype()
-
Method Details
-
notNullField
- Parameters:
name- The name of the field.type- The type of the field.- Returns:
- A NOT NULL
Types.StructType.Fieldwith the given name, type and empty comment.
-
notNullField
- Parameters:
name- The name of the field.type- The type of the field.comment- The comment of the field.- Returns:
- A NOT NULL
Types.StructType.Fieldwith the given name, type and comment.
-
nullableField
- Parameters:
name- The name of the field.type- The type of the field.- Returns:
- A nullable
Types.StructType.Fieldwith the given name, type and empty comment.
-
nullableField
- Parameters:
name- The name of the field.type- The type of the field.comment- The comment of the field.- Returns:
- A nullable
Types.StructType.Fieldwith the given name, type and comment.
-
of
- Parameters:
name- The name of the field.type- The type of the field.nullable- Whether the field is nullable.comment- The comment of the field.- Returns:
- A nullable
Types.StructType.Fieldwith the given name, type and comment.
-
name
- Returns:
- The name of the field.
-
type
- Returns:
- The type of the field.
-
nullable
public boolean nullable()- Returns:
- Whether the field is nullable.
-
comment
- Returns:
- The comment of the field. May be null if not set.
-
equals
-
hashCode
public int hashCode() -
simpleString
- Returns:
- The simple string representation of the field.
-