public class BytesType extends DataType
DataType.EncodeType| 限定符和类型 | 字段和说明 |
|---|---|
static BytesType |
BLOB |
static BytesType |
LONG_TEXT |
static BytesType |
MEDIUM_TEXT |
static MySQLType[] |
subTypes |
static BytesType |
TEXT |
static BytesType |
TINY_BLOB |
AutoIncrementFlag, BinaryFlag, BlobFlag, collation, COLUMN_VERSION_FLAG, decimal, EnumFlag, flag, length, MultipleKeyFlag, NoDefaultValueFlag, NotNullFlag, NumFlag, OnUpdateNowFlag, PriKeyFlag, SetFlag, TimestampFlag, tp, UniqueKeyFlag, UnsignedFlag, UNSPECIFIED_LEN, ZerofillFlag| 限定符 | 构造器和说明 |
|---|---|
protected |
BytesType(MySQLType tp) |
protected |
BytesType(TiColumnInfo.InternalTypeHolder holder) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected Object |
decodeNotNull(int flag,
CodecDataInput cdi) |
protected Object |
doConvertToTiDBType(Object value) |
protected void |
encodeKey(CodecDataOutput cdo,
Object value) |
protected void |
encodeProto(CodecDataOutput cdo,
Object value) |
protected void |
encodeValue(CodecDataOutput cdo,
Object value) |
String |
getName() |
Object |
getOriginDefaultValueNonNull(String value,
long version)
get origin default value
|
ExprType |
getProtoExprType() |
long |
getSize()
Size of data type
|
protected boolean |
isPrefixIndexSupported()
Indicates whether a data type supports prefix index
|
boolean |
isPushDownSupported() |
convertToTiDBType, decode, decodeChunkColumn, decodeForBatchWrite, decodeNotNullForBatchWrite, encode, encodeIndex, encodeKey, encodeMaxValue, encodeNull, equals, getCharset, getCollationCode, getDecimal, getDefaultLength, getElems, getFlag, getLength, getOriginDefaultValue, getType, getTypeCode, hashCode, isAutoIncrement, isBinary, isBlob, isDecimalUnSpecified, isEnum, isLengthUnSpecified, isLengthUnSpecified, isMultiKey, isNextNull, isNoDefault, isNotNull, isNum, isOnUpdateNow, isPrimaryKey, isSameCatalog, isSet, isTimestamp, isUniqueKey, isUnsigned, isZeroFill, signedLowerBound, signedUpperBound, toString, toTypeHolder, unsignedUpperBoundpublic static final BytesType BLOB
public static final BytesType LONG_TEXT
public static final BytesType MEDIUM_TEXT
public static final BytesType TEXT
public static final BytesType TINY_BLOB
public static final MySQLType[] subTypes
protected BytesType(MySQLType tp)
protected BytesType(TiColumnInfo.InternalTypeHolder holder)
public boolean isPushDownSupported()
isPushDownSupported 在类中 DataTypeprotected Object decodeNotNull(int flag, CodecDataInput cdi)
decodeNotNull 在类中 DataTypeprotected Object doConvertToTiDBType(Object value) throws ConvertNotSupportException, ConvertOverflowException
protected boolean isPrefixIndexSupported()
DataTypeisPrefixIndexSupported 在类中 DataTypeprotected void encodeKey(CodecDataOutput cdo, Object value)
protected void encodeValue(CodecDataOutput cdo, Object value)
encodeValue 在类中 DataTypeprotected void encodeProto(CodecDataOutput cdo, Object value)
encodeProto 在类中 DataTypepublic ExprType getProtoExprType()
getProtoExprType 在类中 DataTypepublic Object getOriginDefaultValueNonNull(String value, long version)
getOriginDefaultValueNonNull 在类中 DataTypevalue - a int value represents in stringCopyright © 2023 PingCAP. All rights reserved.