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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Types.NestedField.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Types.NestedField
asOptional()
Types.NestedField
asRequired()
java.lang.String
doc()
boolean
equals(java.lang.Object o)
int
fieldId()
static Types.NestedField.Builder
from(Types.NestedField field)
int
hashCode()
java.lang.Object
initialDefault()
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.Builder
optional(java.lang.String name)
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)
static Types.NestedField.Builder
required(java.lang.String name)
java.lang.String
toString()
Type
type()
Types.NestedField
withFieldId(int newId)
Deprecated.will be removed in 2.0.0; useTypes.NestedField.Builder.withId(int)
insteadjava.lang.Object
writeDefault()
-
-
-
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)
-
from
public static Types.NestedField.Builder from(Types.NestedField field)
-
required
public static Types.NestedField.Builder required(java.lang.String name)
-
optional
public static Types.NestedField.Builder optional(java.lang.String name)
-
isOptional
public boolean isOptional()
-
asOptional
public Types.NestedField asOptional()
-
isRequired
public boolean isRequired()
-
asRequired
public Types.NestedField asRequired()
-
withFieldId
@Deprecated public Types.NestedField withFieldId(int newId)
Deprecated.will be removed in 2.0.0; useTypes.NestedField.Builder.withId(int)
instead
-
fieldId
public int fieldId()
-
name
public java.lang.String name()
-
type
public Type type()
-
doc
public java.lang.String doc()
-
initialDefault
public java.lang.Object initialDefault()
-
writeDefault
public java.lang.Object writeDefault()
-
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
-
-