@PublicEvolving public class CharType extends DataType
A conversion from and to byte[] assumes UTF-8 encoding.
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
DEFAULT_LENGTH |
static int |
EMPTY_LITERAL_LENGTH |
static int |
MAX_LENGTH |
static int |
MIN_LENGTH |
| 限定符和类型 | 方法和说明 |
|---|---|
<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.
|
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 CharType |
ofEmptyLiteral()
The SQL standard defines that character string literals are allowed to be zero-length strings
(i.e., to contain no characters) even though it is not permitted to declare a type that is
zero.
|
copy, getTypeRoot, is, is, isAnyOf, isAnyOf, isNullable, notNull, nullable, toString, withNullabilitypublic static final int EMPTY_LITERAL_LENGTH
public static final int MIN_LENGTH
public static final int MAX_LENGTH
public static final int DEFAULT_LENGTH
public CharType(boolean isNullable,
int length)
public CharType(int length)
public CharType()
public static CharType ofEmptyLiteral()
This method enables this special kind of character string.
Zero-length character strings have no serializable string representation.
public int getLength()
public DataType copy(boolean isNullable)
DataTypepublic String asSerializableString()
DataTypeasSerializableString 在类中 DataTypepublic String asSummaryString()
DataTypeUse DataType.asSerializableString() for a type string that fully serializes this instance.
asSummaryString 在类中 DataTypepublic List<DataType> getChildren()
getChildren 在类中 DataTypepublic <R> R accept(DataTypeVisitor<R> visitor)
Copyright © 2025 The Apache Software Foundation. All rights reserved.