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

Method encodeInvertedIndexKeys

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

Source from the content-addressed store, hash-verified

1221}
1222
1223func (j jsonString) encodeInvertedIndexKeys(b []byte) ([][]byte, error) {
1224 b = encoding.AddJSONPathTerminator(b)
1225 return [][]byte{encoding.EncodeStringAscending(b, string(j))}, nil
1226}
1227
1228func (j jsonString) encodeContainingInvertedIndexSpans(
1229 b []byte, isRoot, isObjectValue bool,

Callers

nothing calls this directly

Calls 2

AddJSONPathTerminatorFunction · 0.92
EncodeStringAscendingFunction · 0.92

Tested by

no test coverage detected