private final class ExponentialCompactionWindowFactory.Window extends CompactionWindow
| Modifier and Type | Field and Description | 
|---|---|
| private long | divPositionA timestamp t is within the window iff t / size == divPosition. | 
| private long | maxTierAgeCutoffWill not promote to next tier for window before it. | 
| private long | windowMillisHow big a range of timestamps fit inside the window in milliseconds. | 
| Constructor and Description | 
|---|
| Window(long baseWindowMillis,
      long divPosition,
      long maxTierAgeCutoff) | 
| Modifier and Type | Method and Description | 
|---|---|
| int | compareToTimestamp(long timestamp)Compares the window to a timestamp. | 
| long | endMillis()Exclusive upper bound | 
| ExponentialCompactionWindowFactory.Window | nextEarlierWindow()Move to the new window of the same tier or of the next tier, which represents an earlier time
 span. | 
| long | startMillis()Inclusive lower bound | 
toStringprivate final long maxTierAgeCutoff
private final long windowMillis
private final long divPosition
public Window(long baseWindowMillis, long divPosition, long maxTierAgeCutoff)
public int compareToTimestamp(long timestamp)
CompactionWindowcompareToTimestamp in class CompactionWindowtimestamp - the timestamp to compare.public ExponentialCompactionWindowFactory.Window nextEarlierWindow()
CompactionWindownextEarlierWindow in class CompactionWindowpublic long startMillis()
CompactionWindowstartMillis in class CompactionWindowpublic long endMillis()
CompactionWindowendMillis in class CompactionWindowCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.