src/java/org/apache/cassandra/db/ColumnFamilyStore.java
/**
     * @return a ViewFragment containing the sstables and memtables that may need to be merged
     * for rows between @param startWith and @param stopAt, inclusive, according to the interval tree
     */
@return a ViewFragment containing the sstables and memtables that may need to be merged
for rows between @param startWith and @param stopAt, inclusive, according to the interval tree
@return a ViewFragment containing the sstables and memtables that may need to be merged for rows between @param startWith and @param stopAt inclusive according to the interval tree
public ViewFragment markReferenced(RowPosition startWith, RowPosition stopAt)
    {
        DataTracker.View view;
        List<SSTableReader> sstables;
        while (true)
        {
            view = data.getView();
            Comparable stopInTree = stopAt.isMinimum() ? view.intervalTree.max() : stopAt;
            sstables = view.intervalTree.search(new Interval(startWith, stopInTree));
            if (SSTableReader.acquireReferences(sstables))
                break;
        }
        return new ViewFragment(sstables, Iterables.concat(Collections.singleton(view.memtable), view.memtablesPendingFlush));
    }
public ViewFragment markReferenced ( RowPosition startWith , RowPosition stopAt ) { DataTracker . View view ; List < SSTableReader > sstables ; while ( true ) { view = data . getView ( ) ; Comparable stopInTree = stopAt . isMinimum ( ) ? view . intervalTree . max ( ) : stopAt ; sstables = view . intervalTree . search ( new Interval ( startWith , stopInTree ) ) ; if ( SSTableReader . acquireReferences ( sstables ) ) break ; } return new ViewFragment ( sstables , Iterables . concat ( Collections . singleton ( view . memtable ) , view . memtablesPendingFlush ) ) ; }
@return a ViewFragment containing the sstables and memtables that may need to be merged
 for rows between @param startWith and @param stopAt, inclusive, according to the interval tree
@return a ViewFragment containing the sstables and memtables that may need to be merged for rows between @param startWith and @param stopAt inclusive according to the interval tree
// startAt == minimum is ok, but stopAt == minimum is confusing because all IntervalTree deals with // is Comparable, so it won't know to special-case that. // retry w/ new view