@Public 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 |
asSQLString()
Returns a string that summarizes this type as SQL standard string for printing to a console.
|
static RowType.Builder |
builder() |
static RowType.Builder |
builder(boolean isNullable,
AtomicInteger fieldId) |
void |
collectFieldIds(Set<Integer> fieldIds) |
DataType |
copy(boolean isNullable)
Returns a deep copy of this type with possibly different nullability.
|
static int |
currentHighestFieldId(List<DataField> fields) |
boolean |
equals(Object o) |
InternalRow.FieldGetter[] |
fieldGetters() |
int |
getFieldCount() |
int |
getFieldIndex(String fieldName) |
List<String> |
getFieldNames() |
List<DataField> |
getFields() |
List<DataType> |
getFieldTypes() |
DataType |
getTypeAt(int i) |
int |
hashCode() |
static RowType |
of(DataType... types) |
static RowType |
of(DataType[] types,
String[] names) |
void |
serializeJson(org.apache.paimon.shade.jackson2.com.fasterxml.jackson.core.JsonGenerator generator) |
copy, equalsIgnoreNullable, 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 asSQLString()
DataTypeasSQLString 在类中 DataTypepublic void serializeJson(org.apache.paimon.shade.jackson2.com.fasterxml.jackson.core.JsonGenerator generator)
throws IOException
serializeJson 在类中 DataTypeIOExceptionpublic <R> R accept(DataTypeVisitor<R> visitor)
public void collectFieldIds(Set<Integer> fieldIds)
collectFieldIds 在类中 DataTypepublic static RowType.Builder builder()
public static RowType.Builder builder(boolean isNullable, AtomicInteger fieldId)
public InternalRow.FieldGetter[] fieldGetters()
Copyright © 2023 The Apache Software Foundation. All rights reserved.