Class SSTableAddedNotification

    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.Iterable<SSTableReader> added
      The added SSTables
    • Constructor Summary

      Constructors 
      Constructor Description
      SSTableAddedNotification​(java.lang.Iterable<SSTableReader> added, Memtable memtable)
      Creates a new SSTableAddedNotification for 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 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 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