Class IndexedRowTree

Object
RowTree
IndexedRowTree

public class IndexedRowTree extends RowTree
A RowTree with an index from rowId to its RowTree.Node.
  • Constructor Details

    • IndexedRowTree

      public IndexedRowTree(int size)
    • IndexedRowTree

      public IndexedRowTree()
  • Method Details

    • create

      public static IndexedRowTree create(Forest forest)
    • createNode

      protected RowTree.Node createNode(long rowId, int flags)
      Description copied from class: RowTree
      Called always to create a new node for insertion in this tree. Intended to be overridden with additional checks and maintaining state.
      Overrides:
      createNode in class RowTree
    • forgetNode

      protected void forgetNode(RowTree.Node node)
      Description copied from class: RowTree
      Called always when a node is removed (with its sub-nodes). Not called for sub-nodes explicitly. Intended to be overridden with additional checks and maintaining state.
      Overrides:
      forgetNode in class RowTree
    • getNodeWithRowId

      public RowTree.Node getNodeWithRowId(long rowId)
      Quickly retrieves a node with the given row ID.
      Parameters:
      rowId - row ID
      Returns:
      node or null if no such node
    • hasRow

      public boolean hasRow(long value)