public abstract class SolrQueryRequestBase extends Object implements SolrQueryRequest
SolrQueryRequest that provides some
convenience methods for accessing parameters, and manages an IndexSearcher
reference.
The close() method must be called on any instance of this
class once it is no longer in use.
| Modifier and Type | Field and Description |
|---|---|
protected Map<Object,Object> |
context |
protected SolrCore |
core |
protected SolrParams |
origParams |
protected SolrParams |
params |
protected RefCounted<SolrIndexSearcher> |
searcherHolder |
protected long |
startTime |
protected Iterable<ContentStream> |
streams |
| Constructor and Description |
|---|
SolrQueryRequestBase(SolrCore core,
SolrParams params) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Frees resources associated with this request, this method must
be called when the object is no longer in use.
|
Iterable<ContentStream> |
getContentStreams()
A Collection of ContentStreams passed to the request
|
Map<Object,Object> |
getContext()
Generic information associated with this request that may be both read and updated.
|
SolrCore |
getCore()
The solr core (coordinator, etc) associated with this request
|
SolrParams |
getOriginalParams()
Returns the original request parameters.
|
SolrParams |
getParams()
returns the current request parameters
|
String |
getParamString()
Returns a string representing all the important parameters.
|
IndexSchema |
getSchema()
The index schema associated with this request
|
SolrIndexSearcher |
getSearcher()
The index searcher associated with this request
|
long |
getStartTime()
The start time of this request in milliseconds
|
void |
setContentStreams(Iterable<ContentStream> s) |
void |
setParams(SolrParams params)
Change the parameters for this request.
|
String |
toString() |
protected final SolrCore core
protected final SolrParams origParams
protected SolrParams params
protected Iterable<ContentStream> streams
protected final long startTime
protected RefCounted<SolrIndexSearcher> searcherHolder
public SolrQueryRequestBase(SolrCore core, SolrParams params)
public Map<Object,Object> getContext()
SolrQueryRequestgetContext in interface SolrQueryRequestpublic SolrParams getParams()
SolrQueryRequestgetParams in interface SolrQueryRequestpublic SolrParams getOriginalParams()
SolrQueryRequestgetOriginalParams in interface SolrQueryRequestpublic void setParams(SolrParams params)
SolrQueryRequestsetParams in interface SolrQueryRequestpublic long getStartTime()
SolrQueryRequestgetStartTime in interface SolrQueryRequestpublic SolrIndexSearcher getSearcher()
SolrQueryRequestgetSearcher in interface SolrQueryRequestpublic SolrCore getCore()
SolrQueryRequestgetCore in interface SolrQueryRequestpublic IndexSchema getSchema()
SolrQueryRequestgetSchema in interface SolrQueryRequestpublic void close()
close in interface SolrQueryRequestpublic Iterable<ContentStream> getContentStreams()
getContentStreams in interface SolrQueryRequestpublic void setContentStreams(Iterable<ContentStream> s)
public String getParamString()
SolrQueryRequestgetParamString in interface SolrQueryRequestCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.