org.deri.iris.storage.simple
Class SimpleIndex
java.lang.Object
org.deri.iris.storage.simple.SimpleIndex
- All Implemented Interfaces:
- IIndex
public class SimpleIndex
- extends Object
- implements IIndex
A simple, in-memory, hash-based index.
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