CutIndexKeyNew cuts encoded index key into colIDs to bytes slices. The returned value b is the remaining bytes of the key which would be empty if it is unique index or handle data if it is non-unique index.
(key kv.Key, length int)
| 762 | // The returned value b is the remaining bytes of the key which would be empty if it is unique index or handle data |
| 763 | // if it is non-unique index. |
| 764 | func CutIndexKeyNew(key kv.Key, length int) (values [][]byte, b []byte, err error) { |
| 765 | values = make([][]byte, length) |
| 766 | b, err = CutIndexKeyTo(key, values) |
| 767 | return |
| 768 | } |
| 769 | |
| 770 | // CutCommonHandle cuts encoded common handle key into colIDs to bytes slices. |
| 771 | // The returned value b is the remaining bytes of the key which would be empty if it is unique index or handle data |