public abstract class EVMBasedQueryResultMultimap<Match extends IPatternMatch,KeyType,ValueType> extends QueryResultMultimap<KeyType,ValueType>
QueryResultMultimap
implementation uses the EVM to provide a query-based multimap.
The contents of the multimap will be updated when the activations are fired in the EVM.NOT_ALLOW_MODIFICATIONS
Modifier | Constructor and Description |
---|---|
protected |
EVMBasedQueryResultMultimap(ExecutionSchema schema)
Creates a multimap on top of the given execution schema.
|
protected |
EVMBasedQueryResultMultimap(ViatraQueryEngine engine)
Creates a new multimap on the given engine.
|
Modifier and Type | Method and Description |
---|---|
<Matcher extends ViatraQueryMatcher<Match>> |
addMatcherToMultimapResults(IQuerySpecification<Matcher> querySpecification)
Adds the given query into the results of the multimap.
|
protected abstract KeyType |
getKeyFromMatch(Match match)
Processes the given match and returns the key to be used in the multimap.
|
protected abstract ValueType |
getValueFromMatch(Match match)
Processes the given match and returns the value to be used in the mulitmap.
|
asMap, clear, containsEntry, containsKey, containsValue, entries, get, getCache, getCacheEntries, internalCacheContainsEntry, internalCachePut, internalCacheRemove, internalCacheSize, isEmpty, keys, keySet, put, putAll, putAll, remove, removeAll, replaceValues, setCache, size, values
addCallbackOnQueryResultUpdate, checkModificationThroughQueryResultSetter, getListeners, getLogger, getSetter, internalClear, internalPut, internalRemove, modifyThroughQueryResultSetter, notifyListeners, removeCallbackOnQueryResultUpdate, setListeners, setLogger, setQueryResultSetter, setSetter
protected EVMBasedQueryResultMultimap(ExecutionSchema schema)
schema
- protected EVMBasedQueryResultMultimap(ViatraQueryEngine engine)
public <Matcher extends ViatraQueryMatcher<Match>> void addMatcherToMultimapResults(IQuerySpecification<Matcher> querySpecification)
querySpecification
- protected abstract KeyType getKeyFromMatch(Match match)
match
-