public class DateTimeType extends AbstractDateTimeType
DataType.EncodeType| 限定符和类型 | 字段和说明 |
|---|---|
static DateTimeType |
DATETIME |
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 Long |
decodeNotNull(int flag,
CodecDataInput cdi)
Decode timestamp from packed long value In TiDB / MySQL, timestamp type is converted to UTC and
stored
|
protected Timestamp |
decodeNotNullForBatchWrite(int flag,
CodecDataInput cdi) |
protected Object |
doConvertToTiDBType(Object value) |
String |
getName() |
org.joda.time.DateTime |
getOriginDefaultValueNonNull(String value,
long version)
get origin default value
|
org.joda.time.DateTimeZone |
getTimezone() |
encodeKey, encodeProto, encodeValue, getProtoExprTypeconvertToTiDBType, decode, decodeChunkColumn, decodeForBatchWrite, 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, isSameCatalog, isSet, isTimestamp, isUniqueKey, isUnsigned, isZeroFill, signedLowerBound, signedUpperBound, toString, toTypeHolder, unsignedUpperBoundpublic static final DateTimeType DATETIME
public static final MySQLType[] subTypes
public org.joda.time.DateTimeZone getTimezone()
getTimezone 在类中 AbstractDateTimeTypeprotected Object doConvertToTiDBType(Object value) throws ConvertNotSupportException, ConvertOverflowException
protected Long decodeNotNull(int flag, CodecDataInput cdi)
decodeNotNull 在类中 DataTypeprotected Timestamp decodeNotNullForBatchWrite(int flag, CodecDataInput cdi)
decodeNotNullForBatchWrite 在类中 DataTypepublic org.joda.time.DateTime getOriginDefaultValueNonNull(String value, long version)
DataTypegetOriginDefaultValueNonNull 在类中 DataTypevalue - a int value represents in stringCopyright © 2023 PingCAP. All rights reserved.