MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / EncodeForwardIndex

Method EncodeForwardIndex

pkg/util/json/encoded.go:750–756  ·  view source on GitHub ↗

EncodeForwardIndex implements the JSON interface.

(buf []byte, dir encoding.Direction)

Source from the content-addressed store, hash-verified

748
749// EncodeForwardIndex implements the JSON interface.
750func (j *jsonEncoded) EncodeForwardIndex(buf []byte, dir encoding.Direction) ([]byte, error) {
751 decoded, err := j.decode()
752 if err != nil {
753 return nil, err
754 }
755 return decoded.EncodeForwardIndex(buf, dir)
756}
757
758// EncodeInvertedIndexKeys implements the JSON interface.
759func (j *jsonEncoded) encodeInvertedIndexKeys(b []byte) ([][]byte, error) {

Callers

nothing calls this directly

Calls 2

decodeMethod · 0.95
EncodeForwardIndexMethod · 0.65

Tested by

no test coverage detected