Interface DeleteTracker
- All Superinterfaces:
ShipperListener
- All Known Implementing Classes:
NewVersionBehaviorTracker
,ScanDeleteTracker
,VisibilityNewVersionBehaivorTracker
,VisibilityScanDeleteTracker
This interface is used for the tracking and enforcement of Deletes during the course of a Get or
Scan operation.
This class is utilized through three methods:
add(org.apache.hadoop.hbase.ExtendedCell)
when encountering a DeleteisDeleted(org.apache.hadoop.hbase.ExtendedCell)
when checking if a Put Cell has been deletedupdate()
when reaching the end of a StoreFile
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
Returns codes for delete result. -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(ExtendedCell cell) Add the specified cell to the list of deletes to check against for this row operation.Return the comparator passed to this delete trackerisDeleted
(ExtendedCell cell) Check if the specified cell buffer has been deleted by a previously seen delete.boolean
isEmpty()
Returns true if there are no current delete, false otherwisevoid
reset()
Called between rows.void
update()
Called at the end of every StoreFile.Methods inherited from interface org.apache.hadoop.hbase.regionserver.ShipperListener
beforeShipped
-
Method Details
-
add
Add the specified cell to the list of deletes to check against for this row operation.This is called when a Delete is encountered in a StoreFile.
- Parameters:
cell
- - the delete cell
-
isDeleted
Check if the specified cell buffer has been deleted by a previously seen delete.- Parameters:
cell
- - current cell to check if deleted by a previously seen delete- Returns:
- deleteResult The result tells whether the Cell is deleted and why
-
isEmpty
boolean isEmpty()Returns true if there are no current delete, false otherwise -
update
void update()Called at the end of every StoreFile.Many optimized implementations of Trackers will require an update at when the end of each StoreFile is reached.
-
reset
void reset()Called between rows.This clears everything as if a new DeleteTracker was instantiated.
-
getCellComparator
Return the comparator passed to this delete tracker- Returns:
- the cell comparator
-