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

Method numInvertedIndexEntries

pkg/util/json/json.go:1768–1777  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1766 return 1, nil
1767}
1768func (j jsonArray) numInvertedIndexEntries() (int, error) {
1769 if len(j) == 0 {
1770 return 1, nil
1771 }
1772 keys, err := j.encodeInvertedIndexKeys(nil)
1773 if err != nil {
1774 return 0, err
1775 }
1776 return len(keys), nil
1777}
1778
1779func (j jsonObject) numInvertedIndexEntries() (int, error) {
1780 if len(j) == 0 {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected