Interface CompactionRequest

All Known Implementing Classes:
CompactionRequestImpl, DateTieredCompactionRequest

@LimitedPrivate("Coprocesssor") public interface CompactionRequest
Coprocessors use this interface to get details about compaction.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns unmodifiable collection of StoreFiles in compaction
    int
    Returns priority of compaction request
    long
    Returns compaction request creation time in milliseconds
    long
    Returns total size of all StoreFiles in compaction
    boolean
    Returns true if major compaction or all files are compacted
    boolean
    Returns true if major compaction
    boolean
    Returns true if compaction is Off-peak
  • Method Details

    • getFiles

      Returns unmodifiable collection of StoreFiles in compaction
    • getSize

      long getSize()
      Returns total size of all StoreFiles in compaction
    • isAllFiles

      boolean isAllFiles()
      Returns true if major compaction or all files are compacted
    • isMajor

      boolean isMajor()
      Returns true if major compaction
    • getPriority

      Returns priority of compaction request
    • isOffPeak

      boolean isOffPeak()
      Returns true if compaction is Off-peak
    • getSelectionTime

      Returns compaction request creation time in milliseconds