@InterfaceAudience.Private public class TimeRangeTracker extends Object implements org.apache.hadoop.io.Writable
| 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(byte[] key)
Update the current TimestampRange to include the timestamp from Key.
|
void |
includeTimestamp(KeyValue kv)
Update the current TimestampRange to include the timestamp from KeyValue
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(KeyValue kv)
kv - the KeyValue to includepublic void includeTimestamp(byte[] key)
key - public boolean includesTimeRange(TimeRange tr)
tr - TimeRangepublic long getMinimumTimestamp()
public long getMaximumTimestamp()
public void write(DataOutput out) throws IOException
write in interface org.apache.hadoop.io.WritableIOExceptionpublic void readFields(DataInput in) throws IOException
readFields in interface org.apache.hadoop.io.WritableIOExceptionCopyright © 2014 The Apache Software Foundation. All rights reserved.