MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / EncodeInvertedIndexKeys

Function EncodeInvertedIndexKeys

pkg/util/json/json.go:1063–1065  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

1061// EncodeInvertedIndexKeys takes in a key prefix and returns a slice of inverted index keys,
1062// one per unique path through the receiver.
1063func EncodeInvertedIndexKeys(b []byte, json JSON) ([][]byte, error) {
1064 return json.encodeInvertedIndexKeys(encoding.EncodeJSONAscending(b))
1065}
1066
1067// EncodeContainingInvertedIndexSpans takes in a key prefix and returns the
1068// spans that must be scanned in the inverted index to evaluate a contains (@>)

Callers

nothing calls this directly

Calls 2

EncodeJSONAscendingFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…