|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hbase.regionserver.ScanDeleteTracker
@InterfaceAudience.Private public class ScanDeleteTracker
This class is responsible for the tracking and enforcement of Deletes during the course of a Scan operation. It only has to enforce Delete and DeleteColumn, since the DeleteFamily is handled at a higher level.
This class is utilized through three methods:
add(org.apache.hadoop.hbase.Cell) when encountering a Delete or DeleteColumn
isDeleted(org.apache.hadoop.hbase.Cell) when checking if a Put KeyValue has been deleted
update() when reaching the end of a StoreFile or row for scans
This class is NOT thread-safe as queries are never multi-threaded
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.apache.hadoop.hbase.regionserver.DeleteTracker |
|---|
DeleteTracker.DeleteCompare, DeleteTracker.DeleteResult |
| Field Summary | |
|---|---|
protected byte[] |
deleteBuffer
|
protected int |
deleteLength
|
protected int |
deleteOffset
|
protected long |
deleteTimestamp
|
protected byte |
deleteType
|
protected long |
familyStamp
|
protected SortedSet<Long> |
familyVersionStamps
|
protected boolean |
hasFamilyStamp
|
| Constructor Summary | |
|---|---|
ScanDeleteTracker()
Constructor for ScanDeleteTracker |
|
| Method Summary | |
|---|---|
void |
add(Cell cell)
Add the specified KeyValue to the list of deletes to check against for this row operation. |
DeleteTracker.DeleteResult |
isDeleted(Cell cell)
Check if the specified KeyValue buffer has been deleted by a previously seen delete. |
boolean |
isEmpty()
|
void |
reset()
Called between rows. |
void |
update()
Called at the end of every StoreFile. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected boolean hasFamilyStamp
protected long familyStamp
protected SortedSet<Long> familyVersionStamps
protected byte[] deleteBuffer
protected int deleteOffset
protected int deleteLength
protected byte deleteType
protected long deleteTimestamp
| Constructor Detail |
|---|
public ScanDeleteTracker()
| Method Detail |
|---|
public void add(Cell cell)
This is called when a Delete is encountered.
add in interface DeleteTrackercell - - the delete cellpublic DeleteTracker.DeleteResult isDeleted(Cell cell)
isDeleted in interface DeleteTrackercell - - current cell to check if deleted by a previously seen delete
public boolean isEmpty()
isEmpty in interface DeleteTrackerpublic void reset()
DeleteTrackerThis clears everything as if a new DeleteTracker was instantiated.
reset in interface DeleteTrackerpublic void update()
DeleteTrackerMany optimized implementations of Trackers will require an update at when the end of each StoreFile is reached.
update in interface DeleteTracker
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||