public class TypedKey extends Key
| 限定符和类型 | 方法和说明 |
|---|---|
DataType |
getType() |
Object |
getValue() |
TypedKey |
next()
Next TypedKey be truncated with prefixLength
|
TypedKey |
nextPrefix()
nextPrefix key will be key with next available rid.
|
String |
toString() |
static TypedKey |
toTypedKey(Object val,
DataType type) |
static TypedKey |
toTypedKey(Object val,
DataType type,
int prefixLength)
Map a typed value into TypedKey, only encoding first prefixLength bytes
When prefixLength is DataType.UNSPECIFIED_LEN, encode full length of value
|
public static TypedKey toTypedKey(Object val, DataType type, int prefixLength)
When prefixLength is DataType.UNSPECIFIED_LEN, encode full length of value
val - valuetype - type of valueprefixLength - described abovepublic DataType getType()
public Object getValue()
public TypedKey nextPrefix()
KeynextPrefix 在类中 Keypublic TypedKey next()
Copyright © 2023 PingCAP. All rights reserved.