public class MetaCodec extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
ENCODED_DB_PREFIX |
static String |
INC_ID_PREFIX |
static org.tikv.shade.com.google.protobuf.ByteString |
KEY_DBs |
static org.tikv.shade.com.google.protobuf.ByteString |
KEY_SCHEMA_VERSION |
static String |
KEY_TABLE |
protected static org.slf4j.Logger |
logger |
static String |
RANDOM_ID_PREFIX |
| 构造器和说明 |
|---|
MetaCodec() |
| 限定符和类型 | 方法和说明 |
|---|---|
static org.tikv.shade.com.google.protobuf.ByteString |
autoRandomTableIDKey(long tableId) |
static org.tikv.shade.com.google.protobuf.ByteString |
autoTableIDKey(long tableId) |
static org.tikv.shade.com.google.protobuf.ByteString |
bytesGet(org.tikv.shade.com.google.protobuf.ByteString key,
Snapshot snapshot) |
static org.tikv.common.util.Pair<org.tikv.shade.com.google.protobuf.ByteString,org.tikv.shade.com.google.protobuf.ByteString> |
decodeHashDataKey(org.tikv.shade.com.google.protobuf.ByteString rawKey) |
static org.tikv.shade.com.google.protobuf.ByteString |
encodeDatabaseID(long id) |
static void |
encodeHashDataKey(CodecDataOutput cdo,
byte[] key,
byte[] field) |
static void |
encodeHashDataKeyPrefix(CodecDataOutput cdo,
byte[] key) |
static org.tikv.shade.com.google.protobuf.ByteString |
encodeHashMetaKey(CodecDataOutput cdo,
byte[] key) |
static void |
encodeStringDataKey(CodecDataOutput cdo,
byte[] key) |
static org.tikv.shade.com.google.protobuf.ByteString |
hashGet(org.tikv.shade.com.google.protobuf.ByteString key,
org.tikv.shade.com.google.protobuf.ByteString field,
Snapshot snapshot) |
static List<org.tikv.common.util.Pair<org.tikv.shade.com.google.protobuf.ByteString,org.tikv.shade.com.google.protobuf.ByteString>> |
hashGetFields(org.tikv.shade.com.google.protobuf.ByteString key,
Snapshot snapshot) |
static org.tikv.shade.com.google.protobuf.ByteString |
tableKey(long tableId) |
protected static final org.slf4j.Logger logger
public static org.tikv.shade.com.google.protobuf.ByteString KEY_DBs
public static String KEY_TABLE
public static org.tikv.shade.com.google.protobuf.ByteString KEY_SCHEMA_VERSION
public static void encodeStringDataKey(CodecDataOutput cdo, byte[] key)
public static void encodeHashDataKey(CodecDataOutput cdo, byte[] key, byte[] field)
public static org.tikv.shade.com.google.protobuf.ByteString encodeHashMetaKey(CodecDataOutput cdo, byte[] key)
public static void encodeHashDataKeyPrefix(CodecDataOutput cdo, byte[] key)
public static org.tikv.common.util.Pair<org.tikv.shade.com.google.protobuf.ByteString,org.tikv.shade.com.google.protobuf.ByteString> decodeHashDataKey(org.tikv.shade.com.google.protobuf.ByteString rawKey)
public static org.tikv.shade.com.google.protobuf.ByteString autoTableIDKey(long tableId)
public static org.tikv.shade.com.google.protobuf.ByteString autoRandomTableIDKey(long tableId)
public static org.tikv.shade.com.google.protobuf.ByteString tableKey(long tableId)
public static org.tikv.shade.com.google.protobuf.ByteString encodeDatabaseID(long id)
public static org.tikv.shade.com.google.protobuf.ByteString hashGet(org.tikv.shade.com.google.protobuf.ByteString key,
org.tikv.shade.com.google.protobuf.ByteString field,
Snapshot snapshot)
public static org.tikv.shade.com.google.protobuf.ByteString bytesGet(org.tikv.shade.com.google.protobuf.ByteString key,
Snapshot snapshot)
Copyright © 2023 PingCAP. All rights reserved.