| Constructor and Description |
|---|
Index() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(List<S> key,
T obj)
Add an object to the index.
|
void |
clear()
Remove all nodes from the index.
|
Iterator<T> |
iterator() |
<U> Collection<Pair<T,U>> |
join(Index<S,U> index,
int shared)
Return a join of this index to the given index, joining on the first
shared variables. |
Collection<T> |
match(List<S> key)
Return all matches to the key.
|
boolean |
remove(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.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic boolean add(List<S> key, T obj)
key - null key positions are counted as wild-cards.obj - public void clear()
public <U> Collection<Pair<T,U>> join(Index<S,U> index, int shared)
shared variables.public Collection<T> match(List<S> key)
public boolean remove(List<S> key, T obj)
public int size()
Copyright © 2019. All rights reserved.