MCPcopy Create free account
hub / github.com/dolthub/doltgresql / numInvertedIndexEntries

Method numInvertedIndexEntries

postgres/parser/json/json.go:870–879  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

868 return 1, nil
869}
870func (j jsonArray) numInvertedIndexEntries() (int, error) {
871 if len(j) == 0 {
872 return 1, nil
873 }
874 keys, err := j.encodeInvertedIndexKeys(nil)
875 if err != nil {
876 return 0, err
877 }
878 return len(keys), nil
879}
880
881func (j jsonObject) numInvertedIndexEntries() (int, error) {
882 if len(j) == 0 {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected