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

Method numInvertedIndexEntries

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

Source from the content-addressed store, hash-verified

803}
804
805func (j jsonObject) numInvertedIndexEntries() (int, error) {
806 if len(j) == 0 {
807 return 1, nil
808 }
809 count := 0
810 for _, kv := range j {
811 n, err := kv.v.numInvertedIndexEntries()
812 if err != nil {
813 return 0, err
814 }
815 count += n
816 }
817 return count, nil
818}
819
820// AllPaths returns a slice of new JSON documents, each a path to a leaf
821// 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