public class DelegatingSolrQueryRequest extends Object implements SolrQueryRequest
SolrQueryRequest implementation that defers to a delegate in all cases.
Used primarily in cases where developers want to customize one or more SolrQueryRequest methods while deferring the remainder to an existing instances.
| Constructor and Description |
|---|
DelegatingSolrQueryRequest(SolrQueryRequest delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
This method should be called when all uses of this request are
finished, so that resources can be freed.
|
CloudDescriptor |
getCloudDescriptor() |
List<CommandOperation> |
getCommands(boolean validateInput)
Only for v2 API
if the request contains a command payload, it's parsed and returned as a list of
CommandOperation objects
|
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
|
CoreContainer |
getCoreContainer() |
String |
getHttpMethod() |
HttpSolrCall |
getHttpSolrCall() |
Map<String,Object> |
getJSON()
Returns any associated JSON (or null if none) in deserialized generic form.
|
SolrParams |
getOriginalParams()
Returns the original request parameters.
|
SolrParams |
getParams()
returns the current request parameters
|
String |
getParamString()
Returns a string representing all the important parameters.
|
String |
getPath() |
Map<String,String> |
getPathTemplateValues()
Only for V2 API.
|
RTimerTree |
getRequestTimer()
The timer for this request, created when the request started being processed
|
IndexSchema |
getSchema()
The schema snapshot from core.getLatestSchema() at request creation.
|
SolrIndexSearcher |
getSearcher()
The index searcher associated with this request
|
long |
getStartTime()
The start time of this request in milliseconds.
|
Principal |
getUserPrincipal() |
void |
setJSON(Map<String,Object> json) |
void |
setParams(SolrParams params)
Change the parameters for this request.
|
void |
updateSchemaToLatest()
Replaces the current schema snapshot with the latest from the core.
|
public DelegatingSolrQueryRequest(SolrQueryRequest delegate)
public SolrParams getParams()
SolrQueryRequestgetParams in interface SolrQueryRequestpublic void setParams(SolrParams params)
SolrQueryRequestsetParams in interface SolrQueryRequestpublic Iterable<ContentStream> getContentStreams()
SolrQueryRequestgetContentStreams in interface SolrQueryRequestpublic SolrParams getOriginalParams()
SolrQueryRequestgetOriginalParams in interface SolrQueryRequestpublic Map<Object,Object> getContext()
SolrQueryRequestgetContext in interface SolrQueryRequestpublic void close()
SolrQueryRequestclose in interface AutoCloseableclose in interface SolrQueryRequestpublic long getStartTime()
SolrQueryRequestgetStartTime in interface SolrQueryRequestpublic RTimerTree getRequestTimer()
SolrQueryRequestgetRequestTimer in interface SolrQueryRequestpublic SolrIndexSearcher getSearcher()
SolrQueryRequestgetSearcher in interface SolrQueryRequestpublic SolrCore getCore()
SolrQueryRequestgetCore in interface SolrQueryRequestpublic IndexSchema getSchema()
SolrQueryRequestgetSchema in interface SolrQueryRequestpublic void updateSchemaToLatest()
SolrQueryRequestupdateSchemaToLatest in interface SolrQueryRequestpublic String getParamString()
SolrQueryRequestgetParamString in interface SolrQueryRequestpublic Map<String,Object> getJSON()
SolrQueryRequestgetJSON in interface SolrQueryRequestpublic void setJSON(Map<String,Object> json)
setJSON in interface SolrQueryRequestpublic Principal getUserPrincipal()
getUserPrincipal in interface SolrQueryRequestpublic String getPath()
getPath in interface SolrQueryRequestpublic Map<String,String> getPathTemplateValues()
SolrQueryRequestgetPathTemplateValues in interface SolrQueryRequestpublic List<CommandOperation> getCommands(boolean validateInput)
SolrQueryRequestgetCommands in interface SolrQueryRequestvalidateInput - , If true it is validated against the json schema specpublic String getHttpMethod()
getHttpMethod in interface SolrQueryRequestpublic HttpSolrCall getHttpSolrCall()
getHttpSolrCall in interface SolrQueryRequestpublic CoreContainer getCoreContainer()
getCoreContainer in interface SolrQueryRequestpublic CloudDescriptor getCloudDescriptor()
getCloudDescriptor in interface SolrQueryRequestCopyright © 2000-2024 Apache Software Foundation. All Rights Reserved.