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

Function EncodeInvertedIndexKeys

pkg/util/json/json.go:689–691  ·  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

687// EncodeInvertedIndexKeys takes in a key prefix and returns a slice of inverted index keys,
688// one per unique path through the receiver.
689func EncodeInvertedIndexKeys(b []byte, json JSON) ([][]byte, error) {
690 return json.encodeInvertedIndexKeys(encoding.EncodeJSONAscending(b))
691}
692func (j jsonNull) encodeInvertedIndexKeys(b []byte) ([][]byte, error) {
693 b = encoding.AddJSONPathTerminator(b)
694 return [][]byte{encoding.EncodeNullAscending(b)}, nil

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…