EncodeRowKey encodes the table id and record handle into a kv.Key
(tableID int64, encodedHandle []byte)
| 104 | |
| 105 | // EncodeRowKey encodes the table id and record handle into a kv.Key |
| 106 | func EncodeRowKey(tableID int64, encodedHandle []byte) kv.Key { |
| 107 | buf := make([]byte, 0, prefixLen+len(encodedHandle)) |
| 108 | buf = appendTableRecordPrefix(buf, tableID) |
| 109 | buf = append(buf, encodedHandle...) |
| 110 | return buf |
| 111 | } |
| 112 | |
| 113 | // EncodeRowKeyWithHandle encodes the table id, row handle into a kv.Key |
| 114 | func EncodeRowKeyWithHandle(tableID int64, handle kv.Handle) kv.Key { |