}
++<<<<<<< HEAD
+ @SuppressWarnings("unchecked")
+ public void performFromCache(ReadGraphImpl graph, Object provider, Object procedure) {
++=======
+ public Object performFromCache(ReadGraphImpl graph, Object provider, Object procedure) {
++>>>>>>> refs/heads/db-threads
AsyncProcedure<T> proc = (AsyncProcedure<T>)procedure;
recompute(graph, (QueryProcessor)provider);
}
+ @SuppressWarnings("unchecked")
@Override
- public void performFromCache(ReadGraphImpl graph, Object provider, Object procedure) {
- performFromCache(graph, (QueryProcessor)provider, (Procedure)procedure);
+ public Object performFromCache(ReadGraphImpl graph, Object provider, Object procedure) {
+ return performFromCache(graph, (QueryProcessor)provider, (Procedure)procedure);
}
abstract public void recompute(ReadGraphImpl graph, QueryProcessor provider);
}
@Override
- public Set<CacheEntry> getParents(AsyncRead request) {
+ public Set<CacheEntry> getParents(AsyncRead<?> request) {
HashSet<CacheEntry> result = new HashSet<CacheEntry>();
- CacheEntryBase entry = session.queryProvider2.asyncReadMap.get(request);
+ CacheEntryBase entry = session.queryProvider2.cache.asyncReadMap.get(request);
if(entry != null) {
for(CacheEntry parent : entry.getParents(session.queryProvider2)) result.add(parent);
}
}
@Override
- public Set<CacheEntry> getParents(AsyncMultiRead request) {
+ public Set<CacheEntry> getParents(AsyncMultiRead<?> request) {
HashSet<CacheEntry> result = new HashSet<CacheEntry>();
- CacheEntryBase entry = session.queryProvider2.asyncMultiReadMap.get(request);
+ CacheEntryBase entry = session.queryProvider2.cache.asyncMultiReadMap.get(request);
if(entry != null) {
for(CacheEntry parent : entry.getParents(session.queryProvider2)) result.add(parent);
}
}
@Override
- public Set<CacheEntry> getParents(Read request) {
+ public Set<CacheEntry> getParents(Read<?> request) {
HashSet<CacheEntry> result = new HashSet<CacheEntry>();
- CacheEntryBase entry = session.queryProvider2.readMap.get(request);
+ CacheEntryBase entry = session.queryProvider2.cache.readMap.get(request);
if(entry != null) {
for(CacheEntry parent : entry.getParents(session.queryProvider2)) result.add(parent);
}
}
@Override
- public Set<CacheEntry> getParents(MultiRead request) {
+ public Set<CacheEntry> getParents(MultiRead<?> request) {
HashSet<CacheEntry> result = new HashSet<CacheEntry>();
- CacheEntryBase entry = session.queryProvider2.multiReadMap.get(request);
+ CacheEntryBase entry = session.queryProvider2.cache.multiReadMap.get(request);
if(entry != null) {
for(CacheEntry parent : entry.getParents(session.queryProvider2)) result.add(parent);
}