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

Method numInvertedIndexEntries

pkg/util/json/encoded.go:718–727  ·  view source on GitHub ↗

numInvertedIndexEntries implements the JSON interface.

()

Source from the content-addressed store, hash-verified

716
717// numInvertedIndexEntries implements the JSON interface.
718func (j *jsonEncoded) numInvertedIndexEntries() (int, error) {
719 if j.isScalar() || j.containerLen == 0 {
720 return 1, nil
721 }
722 decoded, err := j.decode()
723 if err != nil {
724 return 0, err
725 }
726 return decoded.numInvertedIndexEntries()
727}
728
729func (j *jsonEncoded) allPaths() ([]JSON, error) {
730 decoded, err := j.decode()

Callers

nothing calls this directly

Calls 3

isScalarMethod · 0.95
decodeMethod · 0.95

Tested by

no test coverage detected