org.apache.hadoop.hbase.regionserver.compactions
Class CompactionWindow

java.lang.Object
  extended by org.apache.hadoop.hbase.regionserver.compactions.CompactionWindow

@InterfaceAudience.Private
public abstract class CompactionWindow
extends Object

Base class for compaction window implementation.


Constructor Summary
CompactionWindow()
           
 
Method Summary
abstract  int compareToTimestamp(long timestamp)
          Compares the window to a timestamp.
abstract  long endMillis()
          Exclusive upper bound
abstract  CompactionWindow nextEarlierWindow()
          Move to the new window of the same tier or of the next tier, which represents an earlier time span.
abstract  long startMillis()
          Inclusive lower bound
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CompactionWindow

public CompactionWindow()
Method Detail

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

public abstract CompactionWindow 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


Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.