Class DefaultStoreEngine.DefaultCompactionContext

java.lang.Object
org.apache.hadoop.hbase.regionserver.compactions.CompactionContext
org.apache.hadoop.hbase.regionserver.DefaultStoreEngine.DefaultCompactionContext
Enclosing class:
DefaultStoreEngine

  • Constructor Details

  • Method Details

    • select

      public boolean select(List<HStoreFile> filesCompacting, boolean isUserCompaction, boolean mayUseOffPeak, boolean forceMajor) throws IOException
      Description copied from class: CompactionContext
      Called to select files for compaction. Must fill in the request field if successful.
      Specified by:
      select in class CompactionContext
      Parameters:
      filesCompacting - Files currently being compacted by other compactions.
      isUserCompaction - Whether this is a user compaction.
      mayUseOffPeak - Whether the underlying policy may assume it's off-peak hours.
      forceMajor - Whether to force major compaction.
      Returns:
      Whether the selection succeeded. Selection may be empty and lead to no compaction.
      Throws:
      IOException
    • compact

      public List<org.apache.hadoop.fs.Path> compact(ThroughputController throughputController, User user) throws IOException
      Specified by:
      compact in class CompactionContext
      Throws:
      IOException
    • preSelect

      public List<HStoreFile> preSelect(List<HStoreFile> filesCompacting)
      Description copied from class: CompactionContext
      Called before coprocessor preCompactSelection and should filter the candidates for coprocessor; i.e. exclude the files that definitely cannot be compacted at this time.
      Specified by:
      preSelect in class CompactionContext
      Parameters:
      filesCompacting - files currently compacting
      Returns:
      the list of files that can theoretically be compacted.