Class AbstractMemtable

    • Field Detail

      • currentOperations

        protected final java.util.concurrent.atomic.AtomicLong currentOperations
      • minTimestamp

        protected java.util.concurrent.atomic.AtomicLong minTimestamp
      • minLocalDeletionTime

        protected java.util.concurrent.atomic.AtomicInteger minLocalDeletionTime
    • Constructor Detail

      • AbstractMemtable

        public AbstractMemtable​(TableMetadataRef metadataRef,
                                long minTimestamp)
    • Method Detail

      • metadata

        public TableMetadata metadata()
        Description copied from interface: Memtable
        The table's definition metadata. Note that this tracks the current state of the table and is not necessarily the same as what was used to create the memtable.
        Specified by:
        metadata in interface Memtable
      • getMinTimestamp

        public long getMinTimestamp()
        Returns the minTS if one available, otherwise NO_MIN_TIMESTAMP. EncodingStats uses a synthetic epoch TS at 2015. We don't want to leak that (CASSANDRA-18118) so we return NO_MIN_TIMESTAMP instead.
        Specified by:
        getMinTimestamp in interface UnfilteredSource
        Returns:
        The minTS or NO_MIN_TIMESTAMP if none available
      • updateMin

        protected static void updateMin​(java.util.concurrent.atomic.AtomicLong minTracker,
                                        long newValue)
      • updateMin

        protected static void updateMin​(java.util.concurrent.atomic.AtomicInteger minTracker,
                                        int newValue)