@Public public class CharType extends DataType
A conversion from and to byte[]
assumes UTF-8 encoding.
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_LENGTH |
static int |
MAX_LENGTH |
static int |
MIN_LENGTH |
Constructor and Description |
---|
CharType() |
CharType(boolean isNullable,
int length) |
CharType(int length) |
Modifier and Type | Method and Description |
---|---|
<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() |
collectFieldIds, copy, equalsIgnoreNullable, getTypeRoot, is, is, isAnyOf, isAnyOf, isNullable, notNull, nullable, serializeJson, toString, withNullability
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 int getLength()
public DataType copy(boolean isNullable)
DataType
public String asSQLString()
DataType
asSQLString
in class DataType
public <R> R accept(DataTypeVisitor<R> visitor)
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.