Package org.apache.solr.search
Class QueryContext
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.IdentityHashMap
-
- org.apache.solr.search.QueryContext
-
- All Implemented Interfaces:
Closeable,Serializable,AutoCloseable,Cloneable,Map
public class QueryContext extends IdentityHashMap implements Closeable
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Constructor Summary
Constructors Constructor Description QueryContext(org.apache.lucene.search.IndexSearcher searcher)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCloseHook(Closeable closeable)voidclose()Don't call close explicitly! This will be automatically closed at the end of the requestorg.apache.lucene.search.IndexSearcherindexSearcher()static QueryContextnewContext(org.apache.lucene.search.IndexSearcher searcher)booleanremoveCloseHook(Closeable closeable)SolrIndexSearchersearcher()-
Methods inherited from class java.util.IdentityHashMap
clear, clone, containsKey, containsValue, entrySet, equals, forEach, get, hashCode, isEmpty, keySet, put, putAll, remove, replaceAll, size, values
-
Methods inherited from class java.util.AbstractMap
toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, getOrDefault, merge, putIfAbsent, remove, replace, replace
-
-
-
-
Method Detail
-
newContext
public static QueryContext newContext(org.apache.lucene.search.IndexSearcher searcher)
-
searcher
public SolrIndexSearcher searcher()
-
indexSearcher
public org.apache.lucene.search.IndexSearcher indexSearcher()
-
addCloseHook
public void addCloseHook(Closeable closeable)
-
removeCloseHook
public boolean removeCloseHook(Closeable closeable)
-
close
public void close() throws IOExceptionDon't call close explicitly! This will be automatically closed at the end of the request- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-