public class Tracker
extends java.lang.Object
View
of data store for a table.Modifier and Type | Field and Description |
---|---|
ColumnFamilyStore |
cfstore |
boolean |
loadsstables |
Constructor and Description |
---|
Tracker(Memtable memtable,
boolean loadsstables) |
Modifier and Type | Method and Description |
---|---|
void |
addInitialSSTables(java.lang.Iterable<SSTableReader> sstables) |
void |
addInitialSSTablesWithoutUpdatingSize(java.lang.Iterable<SSTableReader> sstables) |
void |
addSSTables(java.lang.Iterable<SSTableReader> sstables) |
void |
dropSSTables() |
java.lang.Throwable |
dropSSTables(com.google.common.base.Predicate<SSTableReader> remove,
OperationType operationType,
java.lang.Throwable accumulate)
removes all sstables that are not busy compacting.
|
java.lang.Throwable |
dropSSTables(java.lang.Throwable accumulate) |
java.lang.Throwable |
dropSSTablesIfInvalid(java.lang.Throwable accumulate) |
java.util.Set<SSTableReader> |
getCompacting() |
Memtable |
getMemtableFor(OpOrder.Group opGroup,
CommitLogPosition commitLogPosition)
get the Memtable that the ordered writeOp should be directed to
|
java.lang.Iterable<SSTableReader> |
getUncompacting() |
java.lang.Iterable<SSTableReader> |
getUncompacting(java.lang.Iterable<SSTableReader> candidates) |
View |
getView() |
boolean |
isDummy() |
void |
markFlushing(Memtable memtable) |
void |
maybeIncrementallyBackup(java.lang.Iterable<SSTableReader> sstables) |
void |
notifyDeleting(SSTableReader deleting) |
void |
notifyDiscarded(Memtable discarded) |
void |
notifyRenewed(Memtable renewed) |
void |
notifySSTableMetadataChanged(SSTableReader levelChanged,
StatsMetadata oldMetadata) |
void |
notifySSTableRepairedStatusChanged(java.util.Collection<SSTableReader> repairStatusesChanged) |
void |
notifySwitched(Memtable previous) |
void |
notifyTruncated(long truncatedAt) |
void |
removeUnreadableSSTables(java.io.File directory)
Removes every SSTable in the directory from the Tracker's view.
|
void |
removeUnsafe(java.util.Set<SSTableReader> toRemove) |
void |
replaceFlushed(Memtable memtable,
java.lang.Iterable<SSTableReader> sstables) |
void |
reset(Memtable memtable)
(Re)initializes the tracker, purging all references.
|
void |
subscribe(INotificationConsumer consumer) |
Memtable |
switchMemtable(boolean truncating,
Memtable newMemtable)
Switch the current memtable.
|
LifecycleTransaction |
tryModify(java.lang.Iterable<SSTableReader> sstables,
OperationType operationType) |
LifecycleTransaction |
tryModify(SSTableReader sstable,
OperationType operationType) |
void |
unsubscribe(INotificationConsumer consumer) |
void |
updateInitialSSTableSize(java.lang.Iterable<SSTableReader> sstables) |
public final ColumnFamilyStore cfstore
public final boolean loadsstables
public Tracker(Memtable memtable, boolean loadsstables)
memtable
- Initial Memtable. Can be null.loadsstables
- true to indicate to load SSTables (TODO: remove as this is only accessed from 2i)public LifecycleTransaction tryModify(SSTableReader sstable, OperationType operationType)
public LifecycleTransaction tryModify(java.lang.Iterable<SSTableReader> sstables, OperationType operationType)
public void addInitialSSTables(java.lang.Iterable<SSTableReader> sstables)
public void addInitialSSTablesWithoutUpdatingSize(java.lang.Iterable<SSTableReader> sstables)
public void updateInitialSSTableSize(java.lang.Iterable<SSTableReader> sstables)
public void addSSTables(java.lang.Iterable<SSTableReader> sstables)
public void reset(Memtable memtable)
public java.lang.Throwable dropSSTablesIfInvalid(java.lang.Throwable accumulate)
public void dropSSTables()
public java.lang.Throwable dropSSTables(java.lang.Throwable accumulate)
public java.lang.Throwable dropSSTables(com.google.common.base.Predicate<SSTableReader> remove, OperationType operationType, java.lang.Throwable accumulate)
public void removeUnreadableSSTables(java.io.File directory)
directory
- the unreadable directory, possibly with SSTables in it, but not necessarily.public Memtable getMemtableFor(OpOrder.Group opGroup, CommitLogPosition commitLogPosition)
public Memtable switchMemtable(boolean truncating, Memtable newMemtable)
public void markFlushing(Memtable memtable)
public void replaceFlushed(Memtable memtable, java.lang.Iterable<SSTableReader> sstables)
public java.util.Set<SSTableReader> getCompacting()
public java.lang.Iterable<SSTableReader> getUncompacting()
public java.lang.Iterable<SSTableReader> getUncompacting(java.lang.Iterable<SSTableReader> candidates)
public void maybeIncrementallyBackup(java.lang.Iterable<SSTableReader> sstables)
public void notifySSTableRepairedStatusChanged(java.util.Collection<SSTableReader> repairStatusesChanged)
public void notifySSTableMetadataChanged(SSTableReader levelChanged, StatsMetadata oldMetadata)
public void notifyDeleting(SSTableReader deleting)
public void notifyTruncated(long truncatedAt)
public void notifyRenewed(Memtable renewed)
public void notifySwitched(Memtable previous)
public void notifyDiscarded(Memtable discarded)
public boolean isDummy()
public void subscribe(INotificationConsumer consumer)
public void unsubscribe(INotificationConsumer consumer)
public View getView()
public void removeUnsafe(java.util.Set<SSTableReader> toRemove)
Copyright © 2009-2021 The Apache Software Foundation