|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.clarkparsia.pellet.rules.rete.Index<S,T>
public class Index<S,T>
Title: Index
Description: An indexing structure that associates an object with a list of objects as the key.
Copyright: Copyright (c) 2007
Company: Clark & Parsia, LLC.
Constructor Summary | |
---|---|
Index()
|
Method Summary | ||
---|---|---|
boolean |
add(java.util.List<S> key,
T obj)
Add an object to the index. |
|
void |
clear()
Remove all nodes from the index. |
|
java.util.Iterator<T> |
iterator()
|
|
|
join(Index<S,U> index,
int shared)
Return a join of this index to the given index, joining on the first shared variables. |
|
java.util.Collection<T> |
match(java.util.List<S> key)
Return all matches to the key. |
|
boolean |
remove(java.util.List<S> key,
T obj)
Remove the element of the index stored under the key 'key'. |
|
int |
size()
Return the number of objects added to the index. |
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Index()
Method Detail |
---|
public boolean add(java.util.List<S> key, T obj)
key
- null key positions are counted as wild-cards.obj
-
public void clear()
public java.util.Iterator<T> iterator()
iterator
in interface java.lang.Iterable<T>
public <U> java.util.Collection<Pair<T,U>> join(Index<S,U> index, int shared)
shared
variables.
public java.util.Collection<T> match(java.util.List<S> key)
public boolean remove(java.util.List<S> key, T obj)
public int size()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |