Class CompactionWindow
java.lang.Object
org.apache.hadoop.hbase.regionserver.compactions.CompactionWindow
- Direct Known Subclasses:
ExponentialCompactionWindowFactory.Window
Base class for compaction window implementation.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract int
compareToTimestamp
(long timestamp) Compares the window to a timestamp.abstract long
Exclusive upper boundabstract CompactionWindow
Move to the new window of the same tier or of the next tier, which represents an earlier time span.abstract long
Inclusive lower boundtoString()
-
Constructor Details
-
CompactionWindow
public CompactionWindow()
-
-
Method Details
-
compareToTimestamp
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
Inclusive lower bound -
endMillis
Exclusive upper bound -
toString
-