public class EnumType extends DataType
DataType.EncodeType| 限定符和类型 | 字段和说明 |
|---|---|
static EnumType |
ENUM |
static MySQLType[] |
subTypes |
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 |
EnumType(TiColumnInfo.InternalTypeHolder holder) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected Object |
decodeNotNull(int flag,
CodecDataInput cdi) |
protected Object |
doConvertToTiDBType(Object value) |
protected void |
encodeKey(CodecDataOutput cdo,
Object value)
Enum is encoded as unsigned int64 with its 0-based value.
|
protected void |
encodeProto(CodecDataOutput cdo,
Object value) |
protected void |
encodeValue(CodecDataOutput cdo,
Object value)
Enum is encoded as unsigned int64 with its 0-based value.
|
String |
getName() |
Object |
getOriginDefaultValueNonNull(String value,
long version)
get origin default value
|
ExprType |
getProtoExprType() |
boolean |
isPushDownSupported() |
convertToTiDBType, decode, decodeChunkColumn, decodeForBatchWrite, decodeNotNullForBatchWrite, encode, encodeIndex, encodeKey, encodeMaxValue, encodeNull, equals, getCharset, getCollationCode, getDecimal, getDefaultLength, getElems, getFlag, getLength, getOriginDefaultValue, getSize, getType, getTypeCode, hashCode, isAutoIncrement, isBinary, isBlob, isDecimalUnSpecified, isEnum, isLengthUnSpecified, isLengthUnSpecified, isMultiKey, isNextNull, isNoDefault, isNotNull, isNum, isOnUpdateNow, isPrefixIndexSupported, isPrimaryKey, isSameCatalog, isSet, isTimestamp, isUniqueKey, isUnsigned, isZeroFill, signedLowerBound, signedUpperBound, toString, toTypeHolder, unsignedUpperBoundprotected EnumType(TiColumnInfo.InternalTypeHolder holder)
protected Object doConvertToTiDBType(Object value) throws ConvertNotSupportException, ConvertOverflowException
protected Object decodeNotNull(int flag, CodecDataInput cdi)
decodeNotNull 在类中 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 stringpublic boolean isPushDownSupported()
isPushDownSupported 在类中 DataTypeCopyright © 2023 PingCAP. All rights reserved.