org.apache.hadoop.hbase.security.visibility
Class VisibilityScanDeleteTracker
java.lang.Object
org.apache.hadoop.hbase.regionserver.ScanDeleteTracker
org.apache.hadoop.hbase.security.visibility.VisibilityScanDeleteTracker
- All Implemented Interfaces:
- DeleteTracker
@InterfaceAudience.Private
public class VisibilityScanDeleteTracker
- extends ScanDeleteTracker
Similar to ScanDeletTracker but tracks the visibility expression also before
deciding if a Cell can be considered deleted
Method Summary |
void |
add(Cell delCell)
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. |
void |
reset()
Called between rows. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VisibilityScanDeleteTracker
public VisibilityScanDeleteTracker()
add
public void add(Cell delCell)
- Description copied from class:
ScanDeleteTracker
- Add the specified KeyValue to the list of deletes to check against for
this row operation.
This is called when a Delete is encountered.
- Specified by:
add
in interface DeleteTracker
- Overrides:
add
in class ScanDeleteTracker
- Parameters:
delCell
- - the delete cell
isDeleted
public DeleteTracker.DeleteResult isDeleted(Cell cell)
- Description copied from class:
ScanDeleteTracker
- Check if the specified KeyValue buffer has been deleted by a previously
seen delete.
- Specified by:
isDeleted
in interface DeleteTracker
- Overrides:
isDeleted
in class ScanDeleteTracker
- Parameters:
cell
- - current cell to check if deleted by a previously seen delete
- Returns:
- deleteResult
reset
public void reset()
- Description copied from interface:
DeleteTracker
- Called between rows.
This clears everything as if a new DeleteTracker was instantiated.
- Specified by:
reset
in interface DeleteTracker
- Overrides:
reset
in class ScanDeleteTracker
Copyright © 2015 The Apache Software Foundation. All rights reserved.