MCPcopy
hub / github.com/dgraph-io/dgraph / rollup

Function rollup

worker/sort_test.go:39–46  ·  view source on GitHub ↗
(t *testing.T, key []byte, pstore *badger.DB, readTs uint64)

Source from the content-addressed store, hash-verified

37}
38
39func rollup(t *testing.T, key []byte, pstore *badger.DB, readTs uint64) {
40 ol, err := readPostingListFromDisk(key, pstore, readTs)
41 require.NoError(t, err)
42 kvs, err := ol.Rollup(nil, readTs+1)
43 require.NoError(t, err)
44 require.NoError(t, writePostingListToDisk(kvs))
45 posting.ResetCache()
46}
47
48func writePostingListToDisk(kvs []*bpb.KV) error {
49 writer := posting.NewTxnWriter(pstore)

Callers 6

TestGetScalarListFunction · 0.85
TestScalarPredicateCountFunction · 0.85
TestSingleStringFunction · 0.85
TestLangExactFunction · 0.85

Calls 4

ResetCacheFunction · 0.92
RollupMethod · 0.80
readPostingListFromDiskFunction · 0.70
writePostingListToDiskFunction · 0.70

Tested by

no test coverage detected