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 SummaryNested classes/interfaces inherited from interface org.apache.iceberg.types.TypeType.NestedType, Type.PrimitiveType, Type.TypeID
- 
Method SummaryModifier and TypeMethodDescriptionasSchema()Returns a schema which contains the columns inside struct type.caseInsensitiveField(String name) booleanfield(int id) fields()inthashCode()booleanstatic Types.StructTypeof(List<Types.NestedField> fields) static Types.StructTypeof(Types.NestedField... fields) toString()typeId()Methods inherited from class org.apache.iceberg.types.Type.NestedTypeasNestedType, isNestedTypeMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.iceberg.types.TypeasListType, asMapType, asPrimitiveType, asVariantType, isListType, isMapType, isPrimitiveType, isVariantType
- 
Method Details- 
of
- 
of
- 
fields- Specified by:
- fieldsin class- Type.NestedType
 
- 
field
- 
field- Specified by:
- fieldin class- Type.NestedType
 
- 
caseInsensitiveField
- 
fieldType- Specified by:
- fieldTypein class- Type.NestedType
 
- 
typeId
- 
isStructTypepublic boolean isStructType()
- 
asStructType
- 
asSchemaReturns 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
- 
hashCodepublic int hashCode()
 
-