Interface DeleteTracker

All Superinterfaces:
ShipperListener
All Known Implementing Classes:
NewVersionBehaviorTracker, ScanDeleteTracker, VisibilityNewVersionBehaivorTracker, VisibilityScanDeleteTracker

@Private public interface DeleteTracker extends ShipperListener
This interface is used for the tracking and enforcement of Deletes during the course of a Get or Scan operation.

This class is utilized through three methods:

  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static enum 
    Returns codes for delete result.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Add the specified cell to the list of deletes to check against for this row operation.
    Return the comparator passed to this delete tracker
    Check if the specified cell buffer has been deleted by a previously seen delete.
    boolean
    Returns true if there are no current delete, false otherwise
    void
    Called between rows.
    void
    Called at the end of every StoreFile.

    Methods inherited from interface org.apache.hadoop.hbase.regionserver.ShipperListener

    beforeShipped
  • Method Details

    • add

      void add(ExtendedCell cell)
      Add 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.

      Parameters:
      cell - - the delete cell
    • isDeleted

      Check if the specified cell buffer has been deleted by a previously seen delete.
      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
    • isEmpty

      boolean isEmpty()
      Returns true if there are no current delete, false otherwise
    • update

      void update()
      Called at the end of every StoreFile.

      Many optimized implementations of Trackers will require an update at when the end of each StoreFile is reached.

    • reset

      void reset()
      Called between rows.

      This clears everything as if a new DeleteTracker was instantiated.

    • getCellComparator

      Return the comparator passed to this delete tracker
      Returns:
      the cell comparator