Class VisibilityScanDeleteTracker
java.lang.Object
org.apache.hadoop.hbase.regionserver.querymatcher.ScanDeleteTracker
org.apache.hadoop.hbase.security.visibility.VisibilityScanDeleteTracker
- All Implemented Interfaces:
DeleteTracker
,ShipperListener
Similar to ScanDeletTracker but tracks the visibility expression also before deciding if a Cell
can be considered deleted
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.hadoop.hbase.regionserver.querymatcher.DeleteTracker
DeleteTracker.DeleteResult
-
Field Summary
Modifier and TypeFieldDescriptionThis tag is used for the DELETE cell which has no visibility label.private static final org.slf4j.Logger
Fields inherited from class org.apache.hadoop.hbase.regionserver.querymatcher.ScanDeleteTracker
comparator, deleteBuffer, deleteCell, deleteLength, deleteOffset, deleteTimestamp, deleteType, familyStamp, familyVersionStamps, hasFamilyStamp
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Add the specified Cell to the list of deletes to check against for this row operation.private boolean
extractDeleteCellVisTags
(Cell delCell, KeyValue.Type type) Check if the specified Cell buffer has been deleted by a previously seen delete.void
reset()
Called between rows.Methods inherited from class org.apache.hadoop.hbase.regionserver.querymatcher.ScanDeleteTracker
beforeShipped, getCellComparator, isEmpty, update
-
Field Details
-
LOG
-
EMPTY_TAG
This tag is used for the DELETE cell which has no visibility label. -
visibilityTagsDeleteFamily
-
visibilityTagsDeleteFamilyVersion
-
visibilityTagsDeleteColumns
-
visiblityTagsDeleteColumnVersion
-
-
Constructor Details
-
VisibilityScanDeleteTracker
-
-
Method Details
-
add
Description copied from class:ScanDeleteTracker
Add the specified Cell to the list of deletes to check against for this row operation.This is called when a Delete is encountered.
- Specified by:
add
in interfaceDeleteTracker
- Overrides:
add
in classScanDeleteTracker
- Parameters:
delCell
- - the delete cell
-
extractDeleteCellVisTags
-
isDeleted
Description copied from class:ScanDeleteTracker
Check if the specified Cell buffer has been deleted by a previously seen delete.- Specified by:
isDeleted
in interfaceDeleteTracker
- Overrides:
isDeleted
in classScanDeleteTracker
- 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
-
reset
Description copied from interface:DeleteTracker
Called between rows.This clears everything as if a new DeleteTracker was instantiated.
- Specified by:
reset
in interfaceDeleteTracker
- Overrides:
reset
in classScanDeleteTracker
-