Class LinkedTupleLists

java.lang.Object
com.semedy.reasoner.edb.ramstore.LinkedTupleLists

public class LinkedTupleLists extends Object
Manages a set of tuple lists. A list is characterized by an int value
  • Constructor Details

  • Method Details

    • size

      public int size()
    • sizeInBytes

      public int sizeInBytes()
      number of bytes used in main memory. Used for cache management
      Returns:
    • clear

      public void clear()
    • removeTuple

      public int removeTuple(int tuple, int list)
      Remove a tuple from a list. The return value is the new handle for the list
      Parameters:
      tuple -
      list -
      Returns:
    • getTuple

      public int getTuple(long[] tuple, int list)
      Get the tuple address in the list.
      Parameters:
      tuple -
      list -
      Returns:
    • getTuple

      public int getTuple(TupleBuffer tuple, int list)
    • addTuple

      public int addTuple(int tuple, int list)
    • newList

      public int newList(int tuple)
    • getEntry

      public int getEntry(int index)
    • nextEntry

      public int nextEntry(int index)
    • getFirstElement

      public int getFirstElement(int list)
    • searchEntry

      public int searchEntry(int tuple, int list)
    • searchEntry

      public int searchEntry(long[] tuple, int list)
    • searchEntry

      public int searchEntry(TupleBuffer tuple, int list)
    • containsTuple

      public int containsTuple(long[] tuple, int list)
    • elements

      public TupleEnumerator elements(int list)
      Enumerate the elements in list
      Parameters:
      list -
      Returns:
    • isEmpty

      public boolean isEmpty()