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

Method Done

bitmap/codec.go:153–159  ·  view source on GitHub ↗

Done returns the final output of the encoder. This UidPack MUST BE FREED via a call to FreePack.

()

Source from the content-addressed store, hash-verified

151
152// Done returns the final output of the encoder. This UidPack MUST BE FREED via a call to FreePack.
153func (e *Encoder) Done() *UidPack {
154 e.packBlock()
155 if e.pack != nil && e.Alloc != nil {
156 e.pack.AllocRef = e.Alloc.Ref
157 }
158 return e.pack
159}
160
161// Decoder is used to read a UidPack object back into a list of UIDs.
162type Decoder struct {

Callers 13

EncodeFunction · 0.95
EncodeFromBufferFunction · 0.95
mainFunction · 0.80
makeRequestsFunction · 0.80
runUserFunction · 0.80
runUserFunction · 0.80
runQueryFunction · 0.80
makeRequestFunction · 0.80
handleNQuadsMethod · 0.80
findAndWriteFunction · 0.80
runUserFunction · 0.80
doWorkFunction · 0.80

Calls 1

packBlockMethod · 0.95

Tested by

no test coverage detected