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, values
toString
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, getOrDefault, merge, putIfAbsent, remove, replace, replace
public 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 Closeable
close
in interface AutoCloseable
IOException
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.