| Constructor and Description |
|---|
QueryIndex(QueryContext<K,V> queryContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Query<K,V> query)
Adds the given item to this index
|
boolean |
add(V[] tuple,
long expirationTime)
Note: the provided tuple is modified in the process of indexing
Note: thread-safe without synchronization; we only read from this index,
although we may write to solution indices
|
void |
clear()
Removes all data at once.
|
boolean |
isEmpty() |
boolean |
remove(Query<K,V> query)
Removes the given item from this index
|
boolean |
remove(V[] tuple)
Removes all matching tuples from solution indices.
|
public QueryIndex(QueryContext<K,V> queryContext)
public void clear()
Indexpublic void add(Query<K,V> query)
Indexpublic boolean remove(Query<K,V> query)
Indexpublic boolean add(V[] tuple, long expirationTime)
tuple - the tuple to indexexpirationTime - the expiration time of the tuple, in milliseconds since the Unix epochpublic boolean remove(V[] tuple)
tuple - a tuple in which any element may be null, representing a wildcardCopyright © 2016. All Rights Reserved.