Skip to content

Commit

Permalink
Add virtual InternalIterator::AddDeltaIter() to be overrided by Mergi…
Browse files Browse the repository at this point in the history
…ngIterator

for enhancement #51
  • Loading branch information
rockeet committed Aug 16, 2023
1 parent de40d71 commit 253b092
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions table/internal_iterator.h
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,9 @@ class InternalIteratorBase : public Cleanable {
// used by MergingIterator and LevelIterator for now.
virtual bool IsDeleteRangeSentinelKey() const { return false; }

// MergingIterator will override this method
virtual bool AddDeltaIter(InternalIteratorBase*) { return false; }

protected:
void SeekForPrevImpl(const Slice& target, const CompareInterface* cmp) {
Seek(target);
Expand Down

0 comments on commit 253b092

Please sign in to comment.