MCPcopy Index your code
hub / github.com/dgraph-io/dgraph / NewDecoder

Function NewDecoder

codec/codec.go:146–152  ·  view source on GitHub ↗

NewDecoder returns a decoder for the given UidPack and properly initializes it.

(pack *pb.UidPack)

Source from the content-addressed store, hash-verified

144
145// NewDecoder returns a decoder for the given UidPack and properly initializes it.
146func NewDecoder(pack *pb.UidPack) *Decoder {
147 decoder := &Decoder{
148 Pack: pack,
149 }
150 decoder.Seek(0, SeekStart)
151 return decoder
152}
153
154func (d *Decoder) UnpackBlock() []uint64 {
155 if len(d.uids) > 0 {

Callers 4

ApplyFilterPackedFunction · 0.92
IntersectWithLinPackedFunction · 0.92
DifferencePackedFunction · 0.92
MergeSortedPackedFunction · 0.92

Calls 1

SeekMethod · 0.95

Tested by

no test coverage detected