Interface MainMemoryIndex

All Superinterfaces:
Index
All Known Implementing Classes:
AVLTree, HashIndex, InvertedList, PrimaryHashIndex, PrimaryIndex

public interface MainMemoryIndex extends Index
Author:
angele
  • Method Details

    • containsTuple

      boolean containsTuple(int i) throws IOException
      contains method for main memory indices
      Parameters:
      i -
      Returns:
      Throws:
      IOException
    • addTuple

      boolean addTuple(int i) throws IOException
      additional add method for main memory indices
      Parameters:
      i -
      Returns:
      Throws:
      IOException
    • removeTuple

      boolean removeTuple(int i)
      additional remove method for main memory indices
      Parameters:
      i -
      Returns:
    • elements

      TupleEnumerator elements()
      iterator for all elements
      Returns:
    • getTupleAddress

      int getTupleAddress(int tuple)
      get the address of a tuple
      Parameters:
      tuple -
      Returns:
    • getTupleAddress

      int getTupleAddress(long[] tuple)
      get the address of a tuple
      Parameters:
      tuple -
      Returns: