Class VisibilityNewVersionBehaivorTracker
java.lang.Object
org.apache.hadoop.hbase.regionserver.querymatcher.NewVersionBehaviorTracker
org.apache.hadoop.hbase.security.visibility.VisibilityNewVersionBehaivorTracker
- All Implemented Interfaces:
ColumnTracker,DeleteTracker,ShipperListener
Similar to MvccSensitiveTracker but tracks the visibility expression also before deciding if a
Cell can be considered deleted
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classprivate classNested classes/interfaces inherited from class org.apache.hadoop.hbase.regionserver.querymatcher.NewVersionBehaviorTracker
NewVersionBehaviorTracker.DeleteVersionsNodeNested classes/interfaces inherited from interface org.apache.hadoop.hbase.regionserver.querymatcher.DeleteTracker
DeleteTracker.DeleteResult -
Field Summary
FieldsFields inherited from class org.apache.hadoop.hbase.regionserver.querymatcher.NewVersionBehaviorTracker
delColMap, delFamMap, maxVersions -
Constructor Summary
ConstructorsConstructorDescriptionVisibilityNewVersionBehaivorTracker(NavigableSet<byte[]> columns, CellComparator cellComparator, int minVersion, int maxVersion, int resultMaxVersions, long oldestUnexpiredTS) -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(ExtendedCell cell) Add the specified cell to the list of deletes to check against for this row operation.isDeleted(ExtendedCell cell) This method is not idempotent, we will save some info to judge VERSION_MASKED.protected voidprivate booleanMethods inherited from class org.apache.hadoop.hbase.regionserver.querymatcher.NewVersionBehaviorTracker
beforeShipped, checkColumn, checkVersions, done, getCellComparator, getColumnHint, getNextRowOrNextColumn, isDone, isEmpty, prepare, reset, updateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.hbase.regionserver.querymatcher.ColumnTracker
doneWithColumn
-
Field Details
-
LOG
-
-
Constructor Details
-
Method Details
-
add
Description copied from interface:DeleteTrackerAdd 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.
- Specified by:
addin interfaceDeleteTracker- Overrides:
addin classNewVersionBehaviorTracker- Parameters:
cell- - the delete cell
-
tagMatched
private boolean tagMatched(ExtendedCell put, VisibilityNewVersionBehaivorTracker.TagInfo delInfo) throws IOException - Throws:
IOException
-
isDeleted
Description copied from class:NewVersionBehaviorTrackerThis method is not idempotent, we will save some info to judge VERSION_MASKED.- Specified by:
isDeletedin interfaceDeleteTracker- Overrides:
isDeletedin classNewVersionBehaviorTracker- Parameters:
cell- - current cell to check if deleted by a previously seen delete- Returns:
- We don't distinguish DeleteColumn and DeleteFamily. We only return code for column.
-
resetInternal
- Overrides:
resetInternalin classNewVersionBehaviorTracker
-