Package org.apache.iceberg.types
Class Types.NestedField
- java.lang.Object
-
- org.apache.iceberg.types.Types.NestedField
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- Types
public static class Types.NestedField extends java.lang.Object implements java.io.Serializable
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Types.NestedField
asOptional()
Types.NestedField
asRequired()
java.lang.String
doc()
boolean
equals(java.lang.Object o)
int
fieldId()
int
hashCode()
boolean
isOptional()
boolean
isRequired()
java.lang.String
name()
static Types.NestedField
of(int id, boolean isOptional, java.lang.String name, Type type)
static Types.NestedField
of(int id, boolean isOptional, java.lang.String name, Type type, java.lang.String doc)
static Types.NestedField
optional(int id, java.lang.String name, Type type)
static Types.NestedField
optional(int id, java.lang.String name, Type type, java.lang.String doc)
static Types.NestedField
required(int id, java.lang.String name, Type type)
static Types.NestedField
required(int id, java.lang.String name, Type type, java.lang.String doc)
java.lang.String
toString()
Type
type()
-
-
-
Method Detail
-
optional
public static Types.NestedField optional(int id, java.lang.String name, Type type)
-
optional
public static Types.NestedField optional(int id, java.lang.String name, Type type, java.lang.String doc)
-
required
public static Types.NestedField required(int id, java.lang.String name, Type type)
-
required
public static Types.NestedField required(int id, java.lang.String name, Type type, java.lang.String doc)
-
of
public static Types.NestedField of(int id, boolean isOptional, java.lang.String name, Type type)
-
of
public static Types.NestedField of(int id, boolean isOptional, java.lang.String name, Type type, java.lang.String doc)
-
isOptional
public boolean isOptional()
-
asOptional
public Types.NestedField asOptional()
-
isRequired
public boolean isRequired()
-
asRequired
public Types.NestedField asRequired()
-
fieldId
public int fieldId()
-
name
public java.lang.String name()
-
type
public Type type()
-
doc
public java.lang.String doc()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-