public class IntegerType extends DataType
DataType.EncodeType| 限定符和类型 | 字段和说明 |
|---|---|
static IntegerType |
BIGINT |
static IntegerType |
BOOLEAN |
static IntegerType |
INT |
static IntegerType |
MEDIUMINT |
static IntegerType |
ROW_ID_TYPE |
static IntegerType |
SMALLINT |
static MySQLType[] |
subTypes |
static IntegerType |
TINYINT |
static IntegerType |
YEAR |
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 |
IntegerType(MySQLType tp) |
protected |
IntegerType(MySQLType type,
int flag,
int len,
int decimal) |
protected |
IntegerType(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() |
boolean |
isSameCatalog(DataType other) |
boolean |
isUnsignedLong() |
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, isPushDownSupported, isSet, isTimestamp, isUniqueKey, isUnsigned, isZeroFill, signedLowerBound, signedUpperBound, toString, toTypeHolder, unsignedUpperBoundpublic static final IntegerType TINYINT
public static final IntegerType SMALLINT
public static final IntegerType MEDIUMINT
public static final IntegerType INT
public static final IntegerType BIGINT
public static final IntegerType BOOLEAN
public static final IntegerType YEAR
public static final IntegerType ROW_ID_TYPE
public static final MySQLType[] subTypes
protected IntegerType(MySQLType type, int flag, int len, int decimal)
protected IntegerType(MySQLType tp)
protected IntegerType(TiColumnInfo.InternalTypeHolder holder)
protected Object doConvertToTiDBType(Object value) throws ConvertNotSupportException, ConvertOverflowException
public boolean isSameCatalog(DataType other)
isSameCatalog 在类中 DataTypeprotected 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 boolean isUnsignedLong()
public Object getOriginDefaultValueNonNull(String value, long version)
getOriginDefaultValueNonNull 在类中 DataTypevalue - a int value represents in stringCopyright © 2023 PingCAP. All rights reserved.