@PublicEvolving public final class RowType extends DataType
| 限定符和类型 | 类和说明 |
|---|---|
static class |
RowType.Builder
Builder of
RowType. |
| 构造器和说明 |
|---|
RowType(boolean isNullable,
List<DataField> fields) |
RowType(List<DataField> fields) |
| 限定符和类型 | 方法和说明 |
|---|---|
<R> R |
accept(DataTypeVisitor<R> visitor) |
String |
asSerializableString()
Returns a string that fully serializes this instance.
|
String |
asSummaryString()
Returns a string that summarizes this type for printing to a console.
|
static RowType.Builder |
builder() |
static RowType.Builder |
builder(boolean isNullable) |
DataType |
copy(boolean isNullable)
Returns a deep copy of this type with possibly different nullability.
|
boolean |
equals(Object o) |
List<DataType> |
getChildren() |
int |
getFieldCount() |
int |
getFieldIndex(String fieldName) |
List<String> |
getFieldNames() |
List<DataField> |
getFields() |
List<DataType> |
getFieldTypes() |
DataType |
getTypeAt(int i) |
int |
hashCode() |
static RowType |
of(boolean isNullable,
DataType... types) |
static RowType |
of(boolean nullable,
DataType[] types,
String[] names) |
static RowType |
of(DataType... types) |
static RowType |
of(DataType[] types,
String[] names) |
copy, getTypeRoot, is, is, isAnyOf, isAnyOf, isNullable, notNull, nullable, toString, withNullabilitypublic DataType getTypeAt(int i)
public int getFieldCount()
public int getFieldIndex(String fieldName)
public DataType copy(boolean isNullable)
DataTypepublic String asSummaryString()
DataTypeUse DataType.asSerializableString() for a type string that fully serializes this instance.
asSummaryString 在类中 DataTypepublic String asSerializableString()
DataTypeasSerializableString 在类中 DataTypepublic List<DataType> getChildren()
getChildren 在类中 DataTypepublic <R> R accept(DataTypeVisitor<R> visitor)
public static RowType.Builder builder()
public static RowType.Builder builder(boolean isNullable)
Copyright © 2025 The Apache Software Foundation. All rights reserved.