org.deri.iris.storage.simple
Class SimpleIndex

java.lang.Object
  extended by org.deri.iris.storage.simple.SimpleIndex
All Implemented Interfaces:
IIndex

public class SimpleIndex
extends Object
implements IIndex

A simple, in-memory, hash-based index.


Method Summary
 List<ITuple> get(List<ITerm> key)
          Return all tuples matching the given key.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

get

public List<ITuple> get(List<ITerm> key)
Description copied from interface: IIndex
Return all tuples matching the given key.

Specified by:
get in interface IIndex
Parameters:
key - The collection (possibly empty) of terms in the key.
Returns:
The list of matching tuples. TODO This might change to returning Iterator to allow for very large data sets.

toString

public String toString()
Overrides:
toString in class Object