Package | Description |
---|---|
org.tikv.common.codec | |
org.tikv.common.types |
Modifier and Type | Class and Description |
---|---|
class |
CodecDataOutputLittleEndian |
Modifier and Type | Method and Description |
---|---|
static void |
MetaCodec.encodeHashDataKey(CodecDataOutput cdo,
byte[] key,
byte[] field) |
static void |
MetaCodec.encodeHashDataKeyPrefix(CodecDataOutput cdo,
byte[] key) |
static com.google.protobuf.ByteString |
MetaCodec.encodeHashMetaKey(CodecDataOutput cdo,
byte[] key) |
static void |
MetaCodec.encodeStringDataKey(CodecDataOutput cdo,
byte[] key) |
static void |
Codec.BytesCodec.writeBytes(CodecDataOutput cdo,
byte[] data) |
static void |
Codec.BytesCodec.writeBytesFully(CodecDataOutput cdo,
byte[] data) |
static void |
Codec.BytesCodec.writeBytesRaw(CodecDataOutput cdo,
byte[] data) |
static void |
Codec.BytesCodec.writeCompactBytesFully(CodecDataOutput cdo,
byte[] data) |
static void |
Codec.DateCodec.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 |
Codec.DateCodec.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
|
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
|
static void |
Codec.DecimalCodec.writeDecimal(CodecDataOutput cdo,
BigDecimal val) |
static void |
Codec.DecimalCodec.writeDecimal(CodecDataOutput cdo,
MyDecimal dec,
int precision,
int fraction)
write a decimal value from CodecDataInput
|
static void |
Codec.DecimalCodec.writeDecimalFully(CodecDataOutput cdo,
MyDecimal val,
int precision,
int fraction) |
static void |
Codec.RealCodec.writeDouble(CodecDataOutput cdo,
double val)
Encoding a double value to byte buffer
|
static void |
Codec.RealCodec.writeDoubleFully(CodecDataOutput cdo,
double val) |
static void |
Codec.IntegerCodec.writeDuration(CodecDataOutput cdo,
long value)
Encode Data as duration, the same as go's binary.PutUvarint
|
static void |
Codec.IntegerCodec.writeLong(CodecDataOutput cdo,
long lVal)
Encode long value without type flag at the beginning The signed bit is flipped for memory
comparable purpose
|
static void |
Codec.IntegerCodec.writeLongFully(CodecDataOutput cdo,
long lVal,
boolean comparable)
Encoding a long value to byte buffer with type flag at the beginning If we are encoding a
key, the comparable is must true; otherwise the comparable is false.
|
static void |
Codec.IntegerCodec.writeULong(CodecDataOutput cdo,
long lVal)
Encode long value without type flag at the beginning
|
static void |
Codec.IntegerCodec.writeULongFully(CodecDataOutput cdo,
long lVal,
boolean comparable)
Encoding a unsigned long value to byte buffer with type flag at the beginning
|
Modifier and Type | Method and Description |
---|---|
void |
DataType.encode(CodecDataOutput cdo,
DataType.EncodeType encodeType,
Object value)
encode a Row to CodecDataOutput
|
static void |
DataType.encodeIndex(CodecDataOutput cdo) |
protected void |
SetType.encodeKey(CodecDataOutput cdo,
Object value) |
protected void |
IntegerType.encodeKey(CodecDataOutput cdo,
Object value) |
protected void |
RealType.encodeKey(CodecDataOutput cdo,
Object value) |
protected void |
UninitializedType.encodeKey(CodecDataOutput cdo,
Object value) |
protected void |
TimeType.encodeKey(CodecDataOutput cdo,
Object value) |
protected abstract void |
DataType.encodeKey(CodecDataOutput cdo,
Object value) |
protected void |
DateType.encodeKey(CodecDataOutput cdo,
Object value) |
protected void |
DecimalType.encodeKey(CodecDataOutput cdo,
Object value) |
protected void |
AbstractDateTimeType.encodeKey(CodecDataOutput cdo,
Object value) |
protected void |
JsonType.encodeKey(CodecDataOutput cdo,
Object value) |
protected void |
EnumType.encodeKey(CodecDataOutput cdo,
Object value)
Enum is encoded as unsigned int64 with its 0-based value.
|
protected void |
BytesType.encodeKey(CodecDataOutput cdo,
Object value) |
void |
DataType.encodeKey(CodecDataOutput cdo,
Object value,
int prefixLength)
encode a Key's prefix to CodecDataOutput
|
static void |
DataType.encodeMaxValue(CodecDataOutput cdo) |
static void |
DataType.encodeNull(CodecDataOutput cdo) |
protected void |
SetType.encodeProto(CodecDataOutput cdo,
Object value) |
protected void |
IntegerType.encodeProto(CodecDataOutput cdo,
Object value) |
protected void |
RealType.encodeProto(CodecDataOutput cdo,
Object value) |
protected void |
UninitializedType.encodeProto(CodecDataOutput cdo,
Object value) |
protected void |
TimeType.encodeProto(CodecDataOutput cdo,
Object value) |
protected abstract void |
DataType.encodeProto(CodecDataOutput cdo,
Object value) |
protected void |
DateType.encodeProto(CodecDataOutput cdo,
Object value) |
protected void |
DecimalType.encodeProto(CodecDataOutput cdo,
Object value) |
protected void |
AbstractDateTimeType.encodeProto(CodecDataOutput cdo,
Object value) |
protected void |
JsonType.encodeProto(CodecDataOutput cdo,
Object value) |
protected void |
EnumType.encodeProto(CodecDataOutput cdo,
Object value) |
protected void |
TimestampType.encodeProto(CodecDataOutput cdo,
Object value) |
protected void |
BytesType.encodeProto(CodecDataOutput cdo,
Object value) |
protected void |
SetType.encodeValue(CodecDataOutput cdo,
Object value) |
protected void |
IntegerType.encodeValue(CodecDataOutput cdo,
Object value) |
protected void |
RealType.encodeValue(CodecDataOutput cdo,
Object value) |
protected void |
UninitializedType.encodeValue(CodecDataOutput cdo,
Object value) |
protected void |
TimeType.encodeValue(CodecDataOutput cdo,
Object value) |
protected abstract void |
DataType.encodeValue(CodecDataOutput cdo,
Object value) |
protected void |
DecimalType.encodeValue(CodecDataOutput cdo,
Object value) |
protected void |
AbstractDateTimeType.encodeValue(CodecDataOutput cdo,
Object value) |
protected void |
JsonType.encodeValue(CodecDataOutput cdo,
Object value) |
protected void |
EnumType.encodeValue(CodecDataOutput cdo,
Object value)
Enum is encoded as unsigned int64 with its 0-based value.
|
protected void |
BytesType.encodeValue(CodecDataOutput cdo,
Object value) |
Copyright © 2024 PingCAP. All rights reserved.