EncodeInvertedIndexKeys takes in a key prefix and returns a slice of inverted index keys, one per unique path through the receiver.
(b []byte, json JSON)
| 737 | // EncodeInvertedIndexKeys takes in a key prefix and returns a slice of inverted index keys, |
| 738 | // one per unique path through the receiver. |
| 739 | func EncodeInvertedIndexKeys(b []byte, json JSON) ([][]byte, error) { |
| 740 | return json.encodeInvertedIndexKeys(encoding.EncodeJSONAscending(b)) |
| 741 | } |
| 742 | func (j jsonNull) encodeInvertedIndexKeys(b []byte) ([][]byte, error) { |
| 743 | b = encoding.AddJSONPathTerminator(b) |
| 744 | return [][]byte{encoding.EncodeNullAscending(b)}, nil |
nothing calls this directly
no test coverage detected