Class CompactionInfo


  • public final class CompactionInfo
    extends java.lang.Object
    • Constructor Detail

      • CompactionInfo

        public CompactionInfo​(TableMetadata metadata,
                              OperationType tasktype,
                              long bytesComplete,
                              long totalBytes,
                              java.util.UUID compactionId,
                              java.util.Collection<SSTableReader> sstables)
    • Method Detail

      • withoutSSTables

        public static CompactionInfo withoutSSTables​(TableMetadata metadata,
                                                     OperationType tasktype,
                                                     long completed,
                                                     long total,
                                                     CompactionInfo.Unit unit,
                                                     java.util.UUID compactionId)
        Special compaction info where we always need to cancel the compaction - for example ViewBuilderTask and AutoSavingCache where we don't know the sstables at construction
      • forProgress

        public CompactionInfo forProgress​(long complete,
                                          long total)
        Returns:
        A copy of this CompactionInfo with updated progress.
      • getKeyspace

        public java.util.Optional<java.lang.String> getKeyspace()
      • getTable

        public java.util.Optional<java.lang.String> getTable()
      • getCompleted

        public long getCompleted()
      • getTotal

        public long getTotal()
      • getTaskId

        public java.util.UUID getTaskId()
      • getSSTables

        public java.util.Set<SSTableReader> getSSTables()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • asMap

        public java.util.Map<java.lang.String,​java.lang.String> asMap()