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

Method numInvertedIndexEntries

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

Source from the content-addressed store, hash-verified

879}
880
881func (j jsonObject) numInvertedIndexEntries() (int, error) {
882 if len(j) == 0 {
883 return 1, nil
884 }
885 count := 0
886 for _, kv := range j {
887 n, err := kv.v.numInvertedIndexEntries()
888 if err != nil {
889 return 0, err
890 }
891 count += n
892 }
893 return count, nil
894}
895
896// AllPaths returns a slice of new JSON documents, each a path to a leaf
897// through the input. Note that leaves include the empty object and array

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected