MCPcopy Create free account
hub / github.com/bytedance/terarkdb / Set

Method Set

table/iterator_wrapper.h:37–47  ·  view source on GitHub ↗

Set the underlying Iterator to _iter and return previous underlying Iterator.

Source from the content-addressed store, hash-verified

35 // Set the underlying Iterator to _iter and return
36 // previous underlying Iterator.
37 InternalIteratorBase<TValue>* Set(InternalIteratorBase<TValue>* _iter) {
38 InternalIteratorBase<TValue>* old_iter = iter_;
39
40 iter_ = _iter;
41 if (iter_ == nullptr) {
42 valid_ = false;
43 } else {
44 Update();
45 }
46 return old_iter;
47 }
48
49 void SetValid(bool valid) { valid_ = valid; }
50

Callers 8

InitMethod · 0.45
MergingIteratorMethod · 0.45
AddMethod · 0.45
AddTestInfoFunction · 0.45
GetCurrentExecutableNameFunction · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by 4

AddTestInfoFunction · 0.36
GetCurrentExecutableNameFunction · 0.36
mainFunction · 0.36