Interface IBTreeVisitor


public interface IBTreeVisitor
The visitor visits all records where compare returns 0.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    compare​(long record)
    Compare the record against an internally held key.
    boolean
    visit​(long record)
    Visit a given record and return whether to continue or not.
  • Method Details

    • compare

      int compare(long record) throws IndexException
      Compare the record against an internally held key. The comparison must be compatible with the one used for the btree. Used for visiting.
      Parameters:
      record -
      Returns:
      -1 if record < key, 0 if record == key, 1 if record > key
      Throws:
      IndexException
    • visit

      boolean visit(long record) throws IndexException
      Visit a given record and return whether to continue or not.
      Returns:
      true to continue the visit, false to abort it.
      Throws:
      IndexException