Class ExponentialCompactionWindowFactory.Window
java.lang.Object
org.apache.hadoop.hbase.regionserver.compactions.CompactionWindow
org.apache.hadoop.hbase.regionserver.compactions.ExponentialCompactionWindowFactory.Window
- Enclosing class:
- ExponentialCompactionWindowFactory
-
Field Summary
Modifier and TypeFieldDescriptionprivate final long
A timestamp t is within the window iff t / size == divPosition.private final long
Will not promote to next tier for window before it.private final long
How big a range of timestamps fit inside the window in milliseconds. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
compareToTimestamp
(long timestamp) Compares the window to a timestamp.long
Exclusive upper boundMove to the new window of the same tier or of the next tier, which represents an earlier time span.long
Inclusive lower boundMethods inherited from class org.apache.hadoop.hbase.regionserver.compactions.CompactionWindow
toString
-
Field Details
-
maxTierAgeCutoff
Will not promote to next tier for window before it. -
windowMillis
How big a range of timestamps fit inside the window in milliseconds. -
divPosition
A timestamp t is within the window iff t / size == divPosition.
-
-
Constructor Details
-
Window
-
-
Method Details
-
compareToTimestamp
Description copied from class:CompactionWindow
Compares the window to a timestamp.- Specified by:
compareToTimestamp
in classCompactionWindow
- 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
Description copied from class:CompactionWindow
Move to the new window of the same tier or of the next tier, which represents an earlier time span.- Specified by:
nextEarlierWindow
in classCompactionWindow
- Returns:
- The next earlier window
-
startMillis
Description copied from class:CompactionWindow
Inclusive lower bound- Specified by:
startMillis
in classCompactionWindow
-
endMillis
Description copied from class:CompactionWindow
Exclusive upper bound- Specified by:
endMillis
in classCompactionWindow
-