public static class Types.StructType extends Type.NestedType
Type.NestedType, Type.PrimitiveType, Type.TypeID| Modifier and Type | Method and Description |
|---|---|
Schema |
asSchema()
Returns a schema which contains the columns inside struct type.
|
Types.StructType |
asStructType() |
Types.NestedField |
caseInsensitiveField(java.lang.String name) |
boolean |
equals(java.lang.Object o) |
Types.NestedField |
field(int id) |
Types.NestedField |
field(java.lang.String name) |
java.util.List<Types.NestedField> |
fields() |
Type |
fieldType(java.lang.String name) |
int |
hashCode() |
boolean |
isStructType() |
static Types.StructType |
of(java.util.List<Types.NestedField> fields) |
static Types.StructType |
of(Types.NestedField... fields) |
java.lang.String |
toString() |
Type.TypeID |
typeId() |
asNestedType, isNestedTypeclone, finalize, getClass, notify, notifyAll, wait, wait, waitasListType, asMapType, asPrimitiveType, isListType, isMapType, isPrimitiveTypepublic static Types.StructType of(Types.NestedField... fields)
public static Types.StructType of(java.util.List<Types.NestedField> fields)
public java.util.List<Types.NestedField> fields()
fields in class Type.NestedTypepublic Types.NestedField field(java.lang.String name)
public Types.NestedField field(int id)
field in class Type.NestedTypepublic Types.NestedField caseInsensitiveField(java.lang.String name)
public Type fieldType(java.lang.String name)
fieldType in class Type.NestedTypepublic Type.TypeID typeId()
public boolean isStructType()
public Types.StructType asStructType()
public Schema asSchema()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object