Class CompactionWindow

java.lang.Object
org.apache.hadoop.hbase.regionserver.compactions.CompactionWindow
Direct Known Subclasses:
ExponentialCompactionWindowFactory.Window

@Private public abstract class CompactionWindow extends Object
Base class for compaction window implementation.
  • Constructor Details

  • Method Details

    • compareToTimestamp

      public abstract int compareToTimestamp(long timestamp)
      Compares the window to a timestamp.
      Parameters:
      timestamp - the timestamp to compare.
      Returns:
      a negative integer, zero, or a positive integer as the window lies before, covering, or after than the timestamp.
    • nextEarlierWindow

      Move to the new window of the same tier or of the next tier, which represents an earlier time span.
      Returns:
      The next earlier window
    • startMillis

      public abstract long startMillis()
      Inclusive lower bound
    • endMillis

      public abstract long endMillis()
      Exclusive upper bound
    • toString

      public String toString()
      Overrides:
      toString in class Object