@Public 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 |
static VarCharType |
STRING_TYPE |
| 构造器和说明 |
|---|
VarCharType() |
VarCharType(boolean isNullable,
int length) |
VarCharType(int length) |
| 限定符和类型 | 方法和说明 |
|---|---|
<R> R |
accept(DataTypeVisitor<R> visitor) |
String |
asSQLString()
Returns a string that summarizes this type as SQL standard string for printing to a console.
|
DataType |
copy(boolean isNullable)
Returns a deep copy of this type with possibly different nullability.
|
boolean |
equals(Object o) |
int |
getLength() |
int |
hashCode() |
static VarCharType |
stringType(boolean isNullable) |
collectFieldIds, copy, equalsIgnoreNullable, getTypeRoot, is, is, isAnyOf, isAnyOf, isNullable, notNull, nullable, serializeJson, toString, withNullabilitypublic static final int MIN_LENGTH
public static final int MAX_LENGTH
public static final int DEFAULT_LENGTH
public static final VarCharType STRING_TYPE
public VarCharType(boolean isNullable,
int length)
public VarCharType(int length)
public VarCharType()
public int getLength()
public DataType copy(boolean isNullable)
DataTypepublic String asSQLString()
DataTypeasSQLString 在类中 DataTypepublic <R> R accept(DataTypeVisitor<R> visitor)
public static VarCharType stringType(boolean isNullable)
Copyright © 2023 The Apache Software Foundation. All rights reserved.