Class SSTableAddedNotification

java.lang.Object
org.apache.cassandra.notifications.SSTableAddedNotification
All Implemented Interfaces:
INotification

public class SSTableAddedNotification extends Object implements INotification
Notification sent after SSTables are added to their ColumnFamilyStore.
  • Field Details

  • Constructor Details

    • SSTableAddedNotification

      public SSTableAddedNotification(Iterable<SSTableReader> added, @Nullable Memtable memtable)
      Creates a new SSTableAddedNotification for the specified SSTables and optional memtable.
      Parameters:
      added - the added SSTables
      memtable - the memtable from which the tables come when they have been added due to a memtable flush, or null if they don't come from a flush
  • Method Details

    • memtable

      public 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