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

Method numInvertedIndexEntries

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

Source from the content-addressed store, hash-verified

792 return 1, nil
793}
794func (j jsonArray) numInvertedIndexEntries() (int, error) {
795 if len(j) == 0 {
796 return 1, nil
797 }
798 keys, err := j.encodeInvertedIndexKeys(nil)
799 if err != nil {
800 return 0, err
801 }
802 return len(keys), nil
803}
804
805func (j jsonObject) numInvertedIndexEntries() (int, error) {
806 if len(j) == 0 {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected