public class DefaultMessageIndexer extends java.lang.Object implements MessageIndexer
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<Tuple,java.lang.Integer> |
indexer |
Constructor and Description |
---|
DefaultMessageIndexer() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear all partial matchings stored in memory
|
void |
delete(Tuple update) |
int |
getCount(Tuple update) |
java.util.Map<Tuple,java.lang.Integer> |
getTuples() |
void |
insert(Tuple update) |
boolean |
isEmpty() |
void |
update(Tuple update,
int delta) |
protected final java.util.Map<Tuple,java.lang.Integer> indexer
public java.util.Map<Tuple,java.lang.Integer> getTuples()
public int getCount(Tuple update)
getCount
in interface MessageIndexer
public void insert(Tuple update)
insert
in interface MessageIndexer
public void delete(Tuple update)
delete
in interface MessageIndexer
public void update(Tuple update, int delta)
update
in interface MessageIndexer
public boolean isEmpty()
isEmpty
in interface MessageIndexer