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.TypeType.NestedType, Type.PrimitiveType, Type.TypeID
 
- 
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SchemaasSchema()Returns a schema which contains the columns inside struct type.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.NestedTypeasNestedType, isNestedType
 - 
Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface org.apache.iceberg.types.TypeasListType, asMapType, asPrimitiveType, isListType, isMapType, isPrimitiveType
 
- 
 
- 
- 
- 
Method Detail- 
ofpublic static Types.StructType of(Types.NestedField... fields) 
 - 
ofpublic static Types.StructType of(java.util.List<Types.NestedField> fields) 
 - 
fieldspublic java.util.List<Types.NestedField> fields() - Specified by:
- fieldsin class- Type.NestedType
 
 - 
fieldpublic Types.NestedField field(java.lang.String name) 
 - 
fieldpublic Types.NestedField field(int id) - Specified by:
- fieldin class- Type.NestedType
 
 - 
caseInsensitiveFieldpublic Types.NestedField caseInsensitiveField(java.lang.String name) 
 - 
fieldTypepublic Type fieldType(java.lang.String name) - Specified by:
- fieldTypein class- Type.NestedType
 
 - 
typeIdpublic Type.TypeID typeId() 
 - 
isStructTypepublic boolean isStructType() 
 - 
asStructTypepublic Types.StructType asStructType() 
 - 
asSchemapublic Schema 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.
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 - 
equalspublic boolean equals(java.lang.Object o) - Overrides:
- equalsin class- java.lang.Object
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 
- 
 
-