Package org.apache.solr.search
Class QueryContext
java.lang.Object
java.util.AbstractMap
java.util.IdentityHashMap
org.apache.solr.search.QueryContext
- All Implemented Interfaces:
Closeable,Serializable,AutoCloseable,Cloneable,Map
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCloseHook(Closeable closeable) voidclose()Don't call close explicitly! This will be automatically closed at the end of the requestorg.apache.lucene.search.IndexSearcherstatic QueryContextnewContext(org.apache.lucene.search.IndexSearcher searcher) booleanremoveCloseHook(Closeable closeable) searcher()Methods inherited from class java.util.IdentityHashMap
clear, clone, containsKey, containsValue, entrySet, equals, forEach, get, hashCode, isEmpty, keySet, put, putAll, remove, remove, replace, replaceAll, size, valuesMethods inherited from class java.util.AbstractMap
toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, getOrDefault, merge, putIfAbsent, replace
-
Constructor Details
-
QueryContext
public QueryContext(org.apache.lucene.search.IndexSearcher searcher)
-
-
Method Details
-
newContext
-
searcher
-
indexSearcher
public org.apache.lucene.search.IndexSearcher indexSearcher() -
addCloseHook
-
removeCloseHook
-
close
Don'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
-