MCPcopy Create free account
hub / github.com/dolthub/doltgresql / EncodeInvertedIndexKeys

Function EncodeInvertedIndexKeys

postgres/parser/json/json.go:739–741  ·  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

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

Callers

nothing calls this directly

Calls 2

EncodeJSONAscendingFunction · 0.92

Tested by

no test coverage detected