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
FieldsModifier and TypeFieldDescriptionThis tag is used for the DELETE cell which has no visibility label.private static final org.slf4j.LoggerFields inherited from class org.apache.hadoop.hbase.regionserver.querymatcher.ScanDeleteTracker
comparator, deleteBuffer, deleteCell, deleteLength, deleteOffset, deleteTimestamp, deleteType, familyStamp, familyVersionStamps, hasFamilyStamp -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(ExtendedCell delCell) Add the specified Cell to the list of deletes to check against for this row operation.private booleanextractDeleteCellVisTags(ExtendedCell delCell, KeyValue.Type type) isDeleted(ExtendedCell cell) Check if the specified Cell buffer has been deleted by a previously seen delete.voidreset()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:ScanDeleteTrackerAdd 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:
addin interfaceDeleteTracker- Overrides:
addin classScanDeleteTracker- Parameters:
delCell- - the delete cell
-
extractDeleteCellVisTags
-
isDeleted
Description copied from class:ScanDeleteTrackerCheck if the specified Cell buffer has been deleted by a previously seen delete.- Specified by:
isDeletedin interfaceDeleteTracker- Overrides:
isDeletedin 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:DeleteTrackerCalled between rows.This clears everything as if a new DeleteTracker was instantiated.
- Specified by:
resetin interfaceDeleteTracker- Overrides:
resetin classScanDeleteTracker
-