org.deri.iris.storage
Interface IIndex

All Known Implementing Classes:
SimpleIndex

public interface IIndex

Represents an index on something, usually a relation. This index interface can be used when sort order is not relevant.


Method Summary
 List<ITuple> get(List<ITerm> key)
          Return all tuples matching the given key.
 

Method Detail

get

List<ITuple> get(List<ITerm> key)
Return all tuples matching the given key.

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.