Interface Index

All Known Subinterfaces:
MainMemoryIndex, SortedIndex
All Known Implementing Classes:
AVLTree, HashIndex, InvertedList, PersistentSecondarySortedIndex, PrimaryHashIndex, PrimaryIndex

public interface Index
Secondary index for a relation of tuples
Author:
angele
  • Method Details

    • selectMatchingTuples

      TupleEnumerator selectMatchingTuples(long[] values) throws IOException, EDBException
      returns an enumerator for matching tuples
      Parameters:
      values - , values for indexed positions
      Returns:
      enumerator for matching tuples
      Throws:
      IOException
      EDBException
    • selectMatchingTuples

      TupleEnumerator selectMatchingTuples(TupleBuffer values) throws IOException, EDBException
      returns an enumerator for matching tuples
      Parameters:
      values - , values for indexed positions
      Returns:
      enumerator for matching tuples
      Throws:
      IOException
      EDBException
    • selectMatchingTuples

      TupleEnumerator selectMatchingTuples(long[] values, TupleEnumerator it) throws IOException, EDBException
      returns an enumerator for matching tuples reuse tuple enumerator
      Parameters:
      values -
      it -
      Returns:
      Throws:
      EDBException
      IOException
    • containsTuple

      boolean containsTuple(long[] values) throws IOException
      returns true if there exist matching values
      Parameters:
      values - , values for indexed positions
      Returns:
      boolean, true if there exist matching values
      Throws:
      IOException
    • containsTuple

      boolean containsTuple(TupleBuffer values) throws IOException
      returns true if there exist matching values
      Parameters:
      values - , values for indexed positions
      Returns:
      boolean, true if there exist matching values
      Throws:
      IOException
    • getNumberOfMatchingTuples

      long getNumberOfMatchingTuples(long[] values) throws IOException, EDBException
      returns the number of matching tuples
      Parameters:
      values - , values for indexed positions
      Returns:
      number of matching tuples
      Throws:
      EDBException
      IOException
    • getIndexedPositions

      int[] getIndexedPositions()
      Returns the indexed positions
      Returns:
      the indexed positions
    • sizeInBytes

      long sizeInBytes()
      Returns size in bytes used in main memory. Used for cache management
      Returns:
    • size

      long size()
      returns the number of indexed tuples
      Returns: