public class QueryContext extends IdentityHashMap implements Closeable
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
QueryContext(IndexSearcher searcher) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCloseHook(Closeable closeable)
implementations obtained via inheritance
public Object get(Object key) {
return map.get(key);
}
public Object put(Object key, Object val) {
if (map == null) {
map = new IdentityHashMap();
}
return map.put(key, val);
}
|
void |
close()
Don't call close explicitly! This will be automatically closed at the end of the request
|
IndexSearcher |
indexSearcher() |
static QueryContext |
newContext(IndexSearcher searcher) |
boolean |
removeCloseHook(Closeable closeable) |
SolrIndexSearcher |
searcher() |
clear, clone, containsKey, containsValue, entrySet, equals, forEach, get, hashCode, isEmpty, keySet, put, putAll, remove, replaceAll, size, valuestoStringfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, getOrDefault, merge, putIfAbsent, remove, replace, replacepublic QueryContext(IndexSearcher searcher)
public static QueryContext newContext(IndexSearcher searcher)
public SolrIndexSearcher searcher()
public IndexSearcher indexSearcher()
public void addCloseHook(Closeable closeable)
public boolean removeCloseHook(Closeable closeable)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.