@InterfaceAudience.Private public class TimeRangeTracker extends java.lang.Object
| Constructor and Description |
|---|
TimeRangeTracker()
Default constructor.
|
TimeRangeTracker(long minimumTimestamp,
long maximumTimestamp) |
TimeRangeTracker(TimeRangeTracker trt)
Copy Constructor
|
| Modifier and Type | Method and Description |
|---|---|
long |
getMaximumTimestamp() |
long |
getMinimumTimestamp() |
boolean |
includesTimeRange(TimeRange tr)
Check if the range has any overlap with TimeRange
|
void |
includeTimestamp(Cell cell)
Update the current TimestampRange to include the timestamp from Cell
If the Key is of type DeleteColumn or DeleteFamily, it includes the
entire time range from 0 to timestamp of the key.
|
void |
readFields(java.io.DataInput in) |
java.lang.String |
toString() |
void |
write(java.io.DataOutput out) |
public TimeRangeTracker()
public TimeRangeTracker(TimeRangeTracker trt)
trt - source TimeRangeTrackerpublic TimeRangeTracker(long minimumTimestamp,
long maximumTimestamp)
public void includeTimestamp(Cell cell)
cell - the Cell to includepublic boolean includesTimeRange(TimeRange tr)
tr - TimeRangepublic long getMinimumTimestamp()
public long getMaximumTimestamp()
public void write(java.io.DataOutput out)
throws java.io.IOException
java.io.IOExceptionpublic void readFields(java.io.DataInput in)
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Object