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

Method encodeInvertedIndexKeys

postgres/parser/json/encoded.go:722–729  ·  view source on GitHub ↗

EncodeInvertedIndexKeys implements the JSON interface.

(b []byte)

Source from the content-addressed store, hash-verified

720
721// EncodeInvertedIndexKeys implements the JSON interface.
722func (j *jsonEncoded) encodeInvertedIndexKeys(b []byte) ([][]byte, error) {
723 // TODO(justin): this could possibly be optimized.
724 decoded, err := j.decode()
725 if err != nil {
726 return nil, err
727 }
728 return decoded.encodeInvertedIndexKeys(b)
729}
730
731// numInvertedIndexEntries implements the JSON interface.
732func (j *jsonEncoded) numInvertedIndexEntries() (int, error) {

Callers

nothing calls this directly

Calls 2

decodeMethod · 0.95

Tested by

no test coverage detected