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, isNestedType
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
asListType, asMapType, asPrimitiveType, isListType, isMapType, isPrimitiveType
public 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.NestedType
public Types.NestedField field(java.lang.String name)
public Types.NestedField field(int id)
field
in class Type.NestedType
public Types.NestedField caseInsensitiveField(java.lang.String name)
public Type fieldType(java.lang.String name)
fieldType
in class Type.NestedType
public Type.TypeID typeId()
public boolean isStructType()
public Types.StructType asStructType()
public Schema asSchema()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object