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

Method encodeInvertedIndexKeys

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

Source from the content-addressed store, hash-verified

1239}
1240
1241func (j jsonNumber) encodeInvertedIndexKeys(b []byte) ([][]byte, error) {
1242 b = encoding.AddJSONPathTerminator(b)
1243 var dec = apd.Decimal(j)
1244 return [][]byte{encoding.EncodeDecimalAscending(b, &dec)}, nil
1245}
1246
1247func (j jsonNumber) encodeContainingInvertedIndexSpans(
1248 b []byte, isRoot, isObjectValue bool,

Callers

nothing calls this directly

Calls 3

AddJSONPathTerminatorFunction · 0.92
EncodeDecimalAscendingFunction · 0.92
DecimalMethod · 0.65

Tested by

no test coverage detected