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

Method EncodeForwardIndex

pkg/util/json/json.go:97–97  ·  view source on GitHub ↗

EncodeForwardIndex implements forward indexing for JSONB values. The encoding depends on the direction of the encoding specified, using `dir`, and is appended to `buf` and returned.

(buf []byte, dir encoding.Direction)

Source from the content-addressed store, hash-verified

95 // The encoding depends on the direction of the encoding
96 // specified, using `dir`, and is appended to `buf` and returned.
97 EncodeForwardIndex(buf []byte, dir encoding.Direction) ([]byte, error)
98
99 // encodeInvertedIndexKeys takes in a key prefix and returns a slice of
100 // inverted index keys, one per path through the receiver.

Callers 3

EncodeForwardIndexMethod · 0.65
EncodeForwardIndexMethod · 0.65
EncodeForwardIndexMethod · 0.65

Implementers 4

jsonNullpkg/util/json/json.go
jsonFalsepkg/util/json/json.go
jsonTruepkg/util/json/json.go
jsonEncodedpkg/util/json/encoded.go

Calls

no outgoing calls

Tested by

no test coverage detected