Package org.apache.iceberg.types
Class Types.StructType
- java.lang.Object
-
- org.apache.iceberg.types.Type.NestedType
-
- org.apache.iceberg.types.Types.StructType
-
- All Implemented Interfaces:
java.io.Serializable,Type
- Enclosing class:
- Types
public static class Types.StructType extends Type.NestedType
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.iceberg.types.Type
Type.NestedType, Type.PrimitiveType, Type.TypeID
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Types.StructTypeasStructType()Types.NestedFieldcaseInsensitiveField(java.lang.String name)booleanequals(java.lang.Object o)Types.NestedFieldfield(int id)Types.NestedFieldfield(java.lang.String name)java.util.List<Types.NestedField>fields()TypefieldType(java.lang.String name)inthashCode()booleanisStructType()static Types.StructTypeof(java.util.List<Types.NestedField> fields)static Types.StructTypeof(Types.NestedField... fields)java.lang.StringtoString()Type.TypeIDtypeId()-
Methods inherited from class org.apache.iceberg.types.Type.NestedType
asNestedType, isNestedType
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.iceberg.types.Type
asListType, asMapType, asPrimitiveType, isListType, isMapType, isPrimitiveType
-
-
-
-
Method Detail
-
of
public static Types.StructType of(Types.NestedField... fields)
-
of
public static Types.StructType of(java.util.List<Types.NestedField> fields)
-
fields
public java.util.List<Types.NestedField> fields()
- Specified by:
fieldsin classType.NestedType
-
field
public Types.NestedField field(java.lang.String name)
-
field
public Types.NestedField field(int id)
- Specified by:
fieldin classType.NestedType
-
caseInsensitiveField
public Types.NestedField caseInsensitiveField(java.lang.String name)
-
fieldType
public Type fieldType(java.lang.String name)
- Specified by:
fieldTypein classType.NestedType
-
typeId
public Type.TypeID typeId()
-
isStructType
public boolean isStructType()
-
asStructType
public Types.StructType asStructType()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-