@InterfaceAudience.Private public class TimeRangeTracker extends 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(DataInput in) |
String |
toString() |
void |
write(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(DataOutput out) throws IOException
IOException
public void readFields(DataInput in) throws IOException
IOException