Constructor and Description |
---|
DateCodec() |
Modifier and Type | Method and Description |
---|---|
static org.joda.time.LocalDate |
readFromUInt(CodecDataInput cdi)
Read date from packed Long as unsigned fixed-len integer
|
static org.joda.time.LocalDate |
readFromUVarInt(CodecDataInput cdi)
Read date from packed Long encoded as unsigned var-len integer converting into specified
timezone
|
static void |
writeDateFully(CodecDataOutput cdo,
Date date,
org.joda.time.DateTimeZone tz)
Encode Date as packed long converting into specified timezone All timezone conversion should
be done beforehand
|
static void |
writeDateProto(CodecDataOutput cdo,
Date date,
org.joda.time.DateTimeZone tz)
Encode Date as packed long converting into specified timezone All timezone conversion should
be done beforehand The encoded value has no data type flag
|
public static void writeDateFully(CodecDataOutput cdo, Date date, org.joda.time.DateTimeZone tz)
cdo
- encoding outputdate
- value to encodetz
- timezone used to converting local timepublic static void writeDateProto(CodecDataOutput cdo, Date date, org.joda.time.DateTimeZone tz)
cdo
- encoding outputdate
- value to encodetz
- timezone used to converting local timepublic static org.joda.time.LocalDate readFromUVarInt(CodecDataInput cdi)
cdi
- codec buffer inputfromPackedLong(long)
public static org.joda.time.LocalDate readFromUInt(CodecDataInput cdi)
cdi
- codec buffer inputfromPackedLong(long)
Copyright © 2024 PingCAP. All rights reserved.