|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.solr.request.SolrQueryRequestBase
public abstract class SolrQueryRequestBase
Base implementation of 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.
| Field Summary | |
|---|---|
protected Map<Object,Object> |
context
|
protected SolrCore |
core
|
protected SolrParams |
origParams
|
protected SolrParams |
params
|
static String |
QUERY_NAME
Deprecated. Use org.apache.solr.common.params.CommonParams |
static String |
QUERYTYPE_NAME
Deprecated. Use org.apache.solr.common.params.CommonParams |
static String |
ROWS_NAME
Deprecated. Use org.apache.solr.common.params.CommonParams |
protected RefCounted<SolrIndexSearcher> |
searcherHolder
|
static String |
START_NAME
Deprecated. Use org.apache.solr.common.params.CommonParams |
protected long |
startTime
|
protected Iterable<ContentStream> |
streams
|
static String |
XSL_NAME
Deprecated. Use org.apache.solr.common.params.CommonParams |
| Constructor Summary | |
|---|---|
SolrQueryRequestBase(SolrCore core,
SolrParams params)
|
|
| Method Summary | |
|---|---|
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 |
int |
getIntParam(String name)
Deprecated. use getParams().required().getInt( name ) instead |
int |
getIntParam(String name,
int defval)
Deprecated. use getParams().required().getInt( name ) instead |
int |
getLimit()
Deprecated. Use getParams() and CommonParams.ROWS instead. |
SolrParams |
getOriginalParams()
Returns the original request parameters. |
String |
getParam(String name)
Deprecated. Use getParams() instead. |
SolrParams |
getParams()
returns the current request parameters |
String[] |
getParams(String name)
Deprecated. Use getParams() instead. |
String |
getParamString()
Returns a string representing all the important parameters. |
String |
getQueryString()
Deprecated. Use getParams() and CommonParams.Q instead. |
String |
getQueryType()
Deprecated. Use getParams() and CommonParams.QT instead. |
IndexSchema |
getSchema()
The index schema associated with this request |
SolrIndexSearcher |
getSearcher()
The index searcher associated with this request |
int |
getStart()
Deprecated. Use getParams() and CommonParams.START instead. |
long |
getStartTime()
The start time of this request in milliseconds |
String |
getStrParam(String name)
Deprecated. use getParams().required().getParam( name ) instead |
String |
getStrParam(String name,
String defval)
Deprecated. use getParams().required().getParam( name ) instead |
void |
setContentStreams(Iterable<ContentStream> s)
|
void |
setParams(SolrParams params)
Change the parameters for this request. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
@Deprecated public static final String QUERY_NAME
@Deprecated public static final String START_NAME
@Deprecated public static final String ROWS_NAME
@Deprecated public static final String XSL_NAME
@Deprecated public static final String QUERYTYPE_NAME
protected final SolrCore core
protected final SolrParams origParams
protected SolrParams params
protected Map<Object,Object> context
protected Iterable<ContentStream> streams
protected final long startTime
protected RefCounted<SolrIndexSearcher> searcherHolder
| Constructor Detail |
|---|
public SolrQueryRequestBase(SolrCore core,
SolrParams params)
| Method Detail |
|---|
public Map<Object,Object> getContext()
SolrQueryRequest
getContext in interface SolrQueryRequestpublic SolrParams getParams()
SolrQueryRequest
getParams in interface SolrQueryRequestpublic SolrParams getOriginalParams()
SolrQueryRequest
getOriginalParams in interface SolrQueryRequestpublic void setParams(SolrParams params)
SolrQueryRequest
setParams in interface SolrQueryRequest@Deprecated public String getParam(String name)
getParams() instead.
SolrQueryRequest
getParam in interface SolrQueryRequest@Deprecated public String[] getParams(String name)
getParams() instead.
SolrQueryRequest
getParams in interface SolrQueryRequest@Deprecated public int getIntParam(String name)
@Deprecated
public int getIntParam(String name,
int defval)
@Deprecated public String getStrParam(String name)
@Deprecated
public String getStrParam(String name,
String defval)
@Deprecated public String getQueryString()
getParams() and CommonParams.Q instead.
SolrQueryRequest
getQueryString in interface SolrQueryRequest@Deprecated public String getQueryType()
getParams() and CommonParams.QT instead.
SolrQueryRequest
getQueryType in interface SolrQueryRequest@Deprecated public int getStart()
getParams() and CommonParams.START instead.
getStart in interface SolrQueryRequest@Deprecated public int getLimit()
getParams() and CommonParams.ROWS instead.
getLimit in interface SolrQueryRequestpublic long getStartTime()
SolrQueryRequest
getStartTime in interface SolrQueryRequestpublic SolrIndexSearcher getSearcher()
SolrQueryRequest
getSearcher in interface SolrQueryRequestpublic SolrCore getCore()
SolrQueryRequest
getCore in interface SolrQueryRequestpublic IndexSchema getSchema()
SolrQueryRequest
getSchema in interface SolrQueryRequestpublic void close()
close in interface SolrQueryRequestpublic Iterable<ContentStream> getContentStreams()
getContentStreams in interface SolrQueryRequestpublic void setContentStreams(Iterable<ContentStream> s)
public String getParamString()
SolrQueryRequest
getParamString in interface SolrQueryRequestpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||