@PublicEvolving public final class VarCharType extends DataType
A conversion from and to byte[] assumes UTF-8 encoding.
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
DEFAULT_LENGTH |
static int |
MAX_LENGTH |
static int |
MIN_LENGTH |
| 构造器和说明 |
|---|
VarCharType() |
VarCharType(boolean isNullable,
int length) |
VarCharType(int length) |
| 限定符和类型 | 方法和说明 |
|---|---|
<R> R |
accept(DataTypeVisitor<R> visitor) |
String |
asSerializableString()
Returns a string that fully serializes this instance.
|
DataType |
copy(boolean isNullable)
Returns a deep copy of this type with possibly different nullability.
|
boolean |
equals(Object o) |
List<DataType> |
getChildren() |
int |
getLength() |
int |
hashCode() |
static VarCharType |
stringType() |
asSummaryString, copy, getTypeRoot, is, is, isAnyOf, isAnyOf, isNullable, notNull, nullable, toString, withNullabilitypublic static final int MIN_LENGTH
public static final int DEFAULT_LENGTH
public static final int MAX_LENGTH
public VarCharType(boolean isNullable,
int length)
public VarCharType(int length)
public VarCharType()
public int getLength()
public DataType copy(boolean isNullable)
DataTypepublic String asSerializableString()
DataTypeasSerializableString 在类中 DataTypepublic List<DataType> getChildren()
getChildren 在类中 DataTypepublic <R> R accept(DataTypeVisitor<R> visitor)
public static VarCharType stringType()
Copyright © 2025 The Apache Software Foundation. All rights reserved.