Class SSTableAddedNotification
- java.lang.Object
-
- org.apache.cassandra.notifications.SSTableAddedNotification
-
- All Implemented Interfaces:
INotification
public class SSTableAddedNotification extends java.lang.Object implements INotification
Notification sent after SSTables are added to theirColumnFamilyStore.
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.Iterable<SSTableReader>addedThe added SSTables
-
Constructor Summary
Constructors Constructor Description SSTableAddedNotification(java.lang.Iterable<SSTableReader> added, Memtable memtable)Creates a newSSTableAddedNotificationfor the specified SSTables and optional memtable.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<Memtable>memtable()Returns the memtable from which the tables come when they have been added due to a memtable flush.
-
-
-
Field Detail
-
added
public final java.lang.Iterable<SSTableReader> added
The added SSTables
-
-
Constructor Detail
-
SSTableAddedNotification
public SSTableAddedNotification(java.lang.Iterable<SSTableReader> added, @Nullable Memtable memtable)
Creates a newSSTableAddedNotificationfor the specified SSTables and optional memtable.- Parameters:
added- the added SSTablesmemtable- the memtable from which the tables come when they have been added due to a memtable flush, ornullif they don't come from a flush
-
-
Method Detail
-
memtable
public java.util.Optional<Memtable> memtable()
Returns the memtable from which the tables come when they have been added due to a memtable flush. If not, an empty Optional should be returned.- Returns:
- the origin memtable in case of a flush,
Optional.empty()otherwise
-
-