|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.regionserver.TimeRangeTracker
public class TimeRangeTracker
Stores the minimum and maximum timestamp values. Can be used to find if any given time range overlaps with its time range MemStores use this class to track its minimum and maximum timestamps. When writing StoreFiles, this information is stored in meta blocks and used at read time to match against the required TimeRange
Constructor Summary | |
---|---|
TimeRangeTracker()
Default constructor. |
|
TimeRangeTracker(long minimumTimestamp,
long maximumTimestamp)
|
|
TimeRangeTracker(TimeRangeTracker trt)
Copy Constructor |
Method Summary | |
---|---|
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)
|
void |
write(DataOutput out)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TimeRangeTracker()
public TimeRangeTracker(TimeRangeTracker trt)
trt
- source TimeRangeTrackerpublic TimeRangeTracker(long minimumTimestamp, long maximumTimestamp)
Method Detail |
---|
public void includeTimestamp(KeyValue kv)
kv
- the KeyValue to includepublic void includeTimestamp(byte[] key)
key
- public boolean includesTimeRange(TimeRange tr)
tr
- TimeRange
public long getMinimumTimestamp()
public long getMaximumTimestamp()
public void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
IOException
public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |