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

Method encodeInvertedIndexKeys

pkg/util/json/json.go:704–707  ·  view source on GitHub ↗
(b []byte)

Source from the content-addressed store, hash-verified

702 return [][]byte{encoding.EncodeFalseAscending(b)}, nil
703}
704func (j jsonString) encodeInvertedIndexKeys(b []byte) ([][]byte, error) {
705 b = encoding.AddJSONPathTerminator(b)
706 return [][]byte{encoding.EncodeStringAscending(b, string(j))}, nil
707}
708func (j jsonNumber) encodeInvertedIndexKeys(b []byte) ([][]byte, error) {
709 b = encoding.AddJSONPathTerminator(b)
710 var dec = apd.Decimal(j)

Callers

nothing calls this directly

Calls 2

AddJSONPathTerminatorFunction · 0.92
EncodeStringAscendingFunction · 0.92

Tested by

no test coverage detected