public interface SolrQueryRequest extends AutoCloseable
Container for a request to execute a query.
SolrQueryRequest
is not thread safe.
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.
|
default 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
|
default String |
getHttpMethod() |
default 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.
|
default String |
getPath() |
default 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.
|
SolrParams getParams()
void setParams(SolrParams params)
Iterable<ContentStream> getContentStreams()
SolrParams getOriginalParams()
Map<Object,Object> getContext()
void close()
close
in interface AutoCloseable
long getStartTime()
RTimerTree getRequestTimer()
SolrIndexSearcher getSearcher()
SolrCore getCore()
IndexSchema getSchema()
void updateSchemaToLatest()
String getParamString()
Map<String,Object> getJSON()
Principal getUserPrincipal()
default String getPath()
default Map<String,String> getPathTemplateValues()
default List<CommandOperation> getCommands(boolean validateInput)
validateInput
- , If true it is validated against the json schema specdefault String getHttpMethod()
default HttpSolrCall getHttpSolrCall()
Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.