public class View
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.util.List<Memtable> |
flushingMemtables
contains all memtables that are no longer referenced for writing and are queued for / in the process of being
flushed.
|
java.util.List<Memtable> |
liveMemtables
ordinarily a list of size 1, but when preparing to flush will contain both the memtable we will flush
and the new replacement memtable, until all outstanding write operations on the old table complete.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Iterable<SSTableReader> |
allKnownSSTables() |
java.lang.Iterable<Memtable> |
getAllMemtables() |
Memtable |
getCurrentMemtable() |
java.lang.Iterable<SSTableReader> |
getUncompacting(java.lang.Iterable<SSTableReader> candidates) |
boolean |
isEmpty() |
java.util.Set<SSTableReader> |
liveSSTables() |
java.lang.Iterable<SSTableReader> |
liveSSTablesInBounds(PartitionPosition left,
PartitionPosition right)
Returns the sstables that have any partition between
left and right , when both bounds are taken inclusively. |
java.lang.Iterable<SSTableReader> |
select(SSTableSet sstableSet) |
static com.google.common.base.Function<View,java.lang.Iterable<SSTableReader>> |
select(SSTableSet sstableSet,
DecoratedKey key) |
static com.google.common.base.Function<View,java.lang.Iterable<SSTableReader>> |
select(SSTableSet sstableSet,
com.google.common.base.Predicate<SSTableReader> filter) |
static com.google.common.base.Function<View,java.lang.Iterable<SSTableReader>> |
selectFunction(SSTableSet sstableSet) |
static com.google.common.base.Function<View,java.lang.Iterable<SSTableReader>> |
selectLive(AbstractBounds<PartitionPosition> rowBounds) |
java.lang.Iterable<SSTableReader> |
sstables(SSTableSet sstableSet,
com.google.common.base.Predicate<SSTableReader> filter) |
static java.util.List<SSTableReader> |
sstablesInBounds(PartitionPosition left,
PartitionPosition right,
SSTableIntervalTree intervalTree) |
java.lang.String |
toString() |
public final java.util.List<Memtable> liveMemtables
public final java.util.List<Memtable> flushingMemtables
public Memtable getCurrentMemtable()
public java.lang.Iterable<Memtable> getAllMemtables()
public java.util.Set<SSTableReader> liveSSTables()
public java.lang.Iterable<SSTableReader> sstables(SSTableSet sstableSet, com.google.common.base.Predicate<SSTableReader> filter)
public java.lang.Iterable<SSTableReader> allKnownSSTables()
public java.lang.Iterable<SSTableReader> select(SSTableSet sstableSet)
public java.lang.Iterable<SSTableReader> getUncompacting(java.lang.Iterable<SSTableReader> candidates)
public boolean isEmpty()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Iterable<SSTableReader> liveSSTablesInBounds(PartitionPosition left, PartitionPosition right)
left
and right
, when both bounds are taken inclusively.
The interval formed by left
and right
shouldn't wrap.public static java.util.List<SSTableReader> sstablesInBounds(PartitionPosition left, PartitionPosition right, SSTableIntervalTree intervalTree)
public static com.google.common.base.Function<View,java.lang.Iterable<SSTableReader>> selectFunction(SSTableSet sstableSet)
public static com.google.common.base.Function<View,java.lang.Iterable<SSTableReader>> select(SSTableSet sstableSet, com.google.common.base.Predicate<SSTableReader> filter)
public static com.google.common.base.Function<View,java.lang.Iterable<SSTableReader>> select(SSTableSet sstableSet, DecoratedKey key)
public static com.google.common.base.Function<View,java.lang.Iterable<SSTableReader>> selectLive(AbstractBounds<PartitionPosition> rowBounds)
Copyright © 2017 The Apache Software Foundation