EncodeInvertedIndexKey returns the inverted index key for the input lexeme.
(inKey []byte, lexeme string)
| 466 | |
| 467 | // EncodeInvertedIndexKey returns the inverted index key for the input lexeme. |
| 468 | func EncodeInvertedIndexKey(inKey []byte, lexeme string) []byte { |
| 469 | outKey := make([]byte, len(inKey), len(inKey)+len(lexeme)) |
| 470 | copy(outKey, inKey) |
| 471 | return encoding.EncodeStringAscending(outKey, lexeme) |
| 472 | } |
no test coverage detected
searching dependent graphs…