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:
Serializable
,Type
- Enclosing class:
- Types
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.iceberg.types.Type
Type.NestedType, Type.PrimitiveType, Type.TypeID
-
Method Summary
Modifier and TypeMethodDescriptionasSchema()
Returns a schema which contains the columns inside struct type.caseInsensitiveField
(String name) boolean
field
(int id) fields()
int
hashCode()
boolean
static Types.StructType
of
(List<Types.NestedField> fields) static Types.StructType
of
(Types.NestedField... fields) toString()
typeId()
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 Details
-
of
-
of
-
fields
- Specified by:
fields
in classType.NestedType
-
field
-
field
- Specified by:
field
in classType.NestedType
-
caseInsensitiveField
-
fieldType
- Specified by:
fieldType
in classType.NestedType
-
typeId
-
isStructType
public boolean isStructType() -
asStructType
-
asSchema
Returns a schema which contains the columns inside struct type. This method can be used to avoid expensive conversion of StructType containing large number of columns to Schema during manifest evaluation.- Returns:
- the schema containing columns of struct type.
-
toString
-
equals
-
hashCode
public int hashCode()
-