public class MetaCodec extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ENCODED_DB_PREFIX |
static com.google.protobuf.ByteString |
KEY_DBs |
static com.google.protobuf.ByteString |
KEY_SCHEMA_VERSION |
static String |
KEY_TABLE |
static String |
KEY_TID |
Constructor and Description |
---|
MetaCodec() |
Modifier and Type | Method and Description |
---|---|
static com.google.protobuf.ByteString |
autoTableIDKey(long tableId) |
static com.google.protobuf.ByteString |
bytesGet(com.google.protobuf.ByteString key,
Snapshot snapshot) |
static Pair<com.google.protobuf.ByteString,com.google.protobuf.ByteString> |
decodeHashDataKey(com.google.protobuf.ByteString rawKey) |
static com.google.protobuf.ByteString |
encodeDatabaseID(long id) |
static void |
encodeHashDataKey(CodecDataOutput cdo,
byte[] key,
byte[] field) |
static void |
encodeHashDataKeyPrefix(CodecDataOutput cdo,
byte[] key) |
static com.google.protobuf.ByteString |
encodeHashMetaKey(CodecDataOutput cdo,
byte[] key) |
static void |
encodeStringDataKey(CodecDataOutput cdo,
byte[] key) |
static com.google.protobuf.ByteString |
hashGet(com.google.protobuf.ByteString key,
com.google.protobuf.ByteString field,
Snapshot snapshot) |
static List<Pair<com.google.protobuf.ByteString,com.google.protobuf.ByteString>> |
hashGetFields(com.google.protobuf.ByteString key,
Snapshot snapshot) |
static com.google.protobuf.ByteString |
tableKey(long tableId) |
public static final String ENCODED_DB_PREFIX
public static final String KEY_TID
public static com.google.protobuf.ByteString KEY_DBs
public static String KEY_TABLE
public static 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 com.google.protobuf.ByteString encodeHashMetaKey(CodecDataOutput cdo, byte[] key)
public static void encodeHashDataKeyPrefix(CodecDataOutput cdo, byte[] key)
public static Pair<com.google.protobuf.ByteString,com.google.protobuf.ByteString> decodeHashDataKey(com.google.protobuf.ByteString rawKey)
public static com.google.protobuf.ByteString autoTableIDKey(long tableId)
public static com.google.protobuf.ByteString tableKey(long tableId)
public static com.google.protobuf.ByteString encodeDatabaseID(long id)
public static com.google.protobuf.ByteString hashGet(com.google.protobuf.ByteString key, com.google.protobuf.ByteString field, Snapshot snapshot)
public static com.google.protobuf.ByteString bytesGet(com.google.protobuf.ByteString key, Snapshot snapshot)
Copyright © 2024 PingCAP. All rights reserved.