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

Method encodeInvertedIndexKeys

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

Source from the content-addressed store, hash-verified

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)
711 return [][]byte{encoding.EncodeDecimalAscending(b, &dec)}, nil
712}
713func (j jsonArray) encodeInvertedIndexKeys(b []byte) ([][]byte, error) {
714 // Checking for an empty array.
715 if len(j) == 0 {

Callers

nothing calls this directly

Calls 2

AddJSONPathTerminatorFunction · 0.92
EncodeDecimalAscendingFunction · 0.92

Tested by

no test coverage detected