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

Method encodeInvertedIndexKeys

pkg/util/json/encoded.go:708–715  ·  view source on GitHub ↗

EncodeInvertedIndexKeys implements the JSON interface.

(b []byte)

Source from the content-addressed store, hash-verified

706
707// EncodeInvertedIndexKeys implements the JSON interface.
708func (j *jsonEncoded) encodeInvertedIndexKeys(b []byte) ([][]byte, error) {
709 // TODO(justin): this could possibly be optimized.
710 decoded, err := j.decode()
711 if err != nil {
712 return nil, err
713 }
714 return decoded.encodeInvertedIndexKeys(b)
715}
716
717// numInvertedIndexEntries implements the JSON interface.
718func (j *jsonEncoded) numInvertedIndexEntries() (int, error) {

Callers

nothing calls this directly

Calls 2

decodeMethod · 0.95

Tested by

no test coverage detected