Package | Description |
---|---|
org.tikv.common.codec | |
org.tikv.common.types |
Modifier and Type | Method and Description |
---|---|
static ExtendedDateTime |
Codec.DateTimeCodec.createExtendedDateTime(org.joda.time.DateTimeZone tz,
int year,
int month,
int day,
int hour,
int minute,
int second,
int microsec) |
static ExtendedDateTime |
Codec.DateTimeCodec.fromPackedLong(long packed,
org.joda.time.DateTimeZone tz)
Read datetime from packed Long which contains all parts of a datetime namely, year, month,
day and hour, min and sec, millisec.
|
static ExtendedDateTime |
Codec.DateTimeCodec.readFromUInt(CodecDataInput cdi,
org.joda.time.DateTimeZone tz)
Read datetime from packed Long as unsigned fixed-len integer
|
static ExtendedDateTime |
Codec.DateTimeCodec.readFromUVarInt(CodecDataInput cdi,
org.joda.time.DateTimeZone tz)
Read datetime from packed Long encoded as unsigned var-len integer converting into specified
timezone
|
Modifier and Type | Method and Description |
---|---|
static long |
Codec.DateTimeCodec.toPackedLong(ExtendedDateTime extendedDateTime,
org.joda.time.DateTimeZone tz)
Encode a DateTime to a packed long converting to specific timezone
|
static void |
Codec.DateTimeCodec.writeDateTimeFully(CodecDataOutput cdo,
ExtendedDateTime extendeddateTime,
org.joda.time.DateTimeZone tz)
Encode DateTime as packed long converting into specified timezone All timezone conversion
should be done beforehand
|
static void |
Codec.DateTimeCodec.writeDateTimeProto(CodecDataOutput cdo,
ExtendedDateTime extendedDateTime,
org.joda.time.DateTimeZone tz)
Encode DateTime as packed long converting into specified timezone All timezone conversion
should be done beforehand The encoded value has no data type flag
|
Modifier and Type | Method and Description |
---|---|
static ExtendedDateTime |
Converter.convertToDateTime(Object val)
Convert an object to Datetime.
|
Copyright © 2024 PingCAP. All rights reserved.