org.apache.hadoop.hbase.security.visibility
Class VisibilityScanDeleteTracker

java.lang.Object
  extended by org.apache.hadoop.hbase.regionserver.ScanDeleteTracker
      extended by 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


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.hadoop.hbase.regionserver.DeleteTracker
DeleteTracker.DeleteCompare, DeleteTracker.DeleteResult
 
Field Summary
 
Fields inherited from class org.apache.hadoop.hbase.regionserver.ScanDeleteTracker
deleteBuffer, deleteLength, deleteOffset, deleteTimestamp, deleteType, familyStamp, familyVersionStamps, hasFamilyStamp
 
Constructor Summary
VisibilityScanDeleteTracker()
           
 
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 org.apache.hadoop.hbase.regionserver.ScanDeleteTracker
isEmpty, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VisibilityScanDeleteTracker

public VisibilityScanDeleteTracker()
Method Detail

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 © 2007–2016 The Apache Software Foundation. All rights reserved.