public class QueryCache extends HashMap<AtomicQuery,AtomicQuery>
Container class for storing performed query resolutions.
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
QueryCache() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(AtomicQuery query) |
void |
propagateAnswers()
propagates answers among related queries in the cache
|
void |
record(AtomicQuery atomicQuery)
updates the cache by the specified query
|
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesequals, hashCode, toStringpublic boolean contains(AtomicQuery query)
public void propagateAnswers()
public void record(AtomicQuery atomicQuery)
atomicQuery - query to be added/updatedCopyright © 2017 Grakn Labs Ltd. All rights reserved.