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

Method numInvertedIndexEntries

postgres/parser/json/encoded.go:732–741  ·  view source on GitHub ↗

numInvertedIndexEntries implements the JSON interface.

()

Source from the content-addressed store, hash-verified

730
731// numInvertedIndexEntries implements the JSON interface.
732func (j *jsonEncoded) numInvertedIndexEntries() (int, error) {
733 if j.isScalar() || j.containerLen == 0 {
734 return 1, nil
735 }
736 decoded, err := j.decode()
737 if err != nil {
738 return 0, err
739 }
740 return decoded.numInvertedIndexEntries()
741}
742
743func (j *jsonEncoded) allPaths() ([]JSON, error) {
744 decoded, err := j.decode()

Callers

nothing calls this directly

Calls 3

isScalarMethod · 0.95
decodeMethod · 0.95

Tested by

no test coverage detected