EncodeTableIndexPrefix encodes index prefix with tableID and idxID.
(tableID, idxID int64)
| 1103 | |
| 1104 | // EncodeTableIndexPrefix encodes index prefix with tableID and idxID. |
| 1105 | func EncodeTableIndexPrefix(tableID, idxID int64) kv.Key { |
| 1106 | key := make([]byte, 0, prefixLen+idLen) |
| 1107 | key = appendTableIndexPrefix(key, tableID) |
| 1108 | key = codec.EncodeInt(key, idxID) |
| 1109 | return key |
| 1110 | } |
| 1111 | |
| 1112 | // EncodeTablePrefix encodes the table prefix to generate a key |
| 1113 | func EncodeTablePrefix(tableID int64) kv.Key { |