Class V2Request
- All Implemented Interfaces:
Serializable,MapSerializable,MapWriter,NavigableObject,org.noggit.JSONWriter.Writable
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.apache.solr.client.solrj.SolrRequest
SolrRequest.ApiVersion, SolrRequest.METHOD, SolrRequest.SolrClientContext, SolrRequest.SolrRequestTypeNested classes/interfaces inherited from interface org.apache.solr.common.MapWriter
MapWriter.EntryWriter -
Field Summary
FieldsFields inherited from class org.apache.solr.client.solrj.SolrRequest
SUPPORTED_METHODS -
Method Summary
Modifier and TypeMethodDescriptionprotected V2ResponsecreateResponse(NamedList<Object> namedList) Create a new SolrResponse to hold the response from the server.Indicates which API version this request will makeIf a request object wants to do a push write, implement this method.The parameters for this request; never null.booleanbooleanbooleanDetermines whether this request should use or ignore any specified collections (esp.voidWrites this object's entries out toew.Methods inherited from class org.apache.solr.client.solrj.SolrRequest
addHeader, addHeaders, getBasicAuthPassword, getBasicAuthUser, getContentStreams, getHeaders, getMethod, getPath, getPreferredNodes, getQueryParams, getRequestType, getStreamingResponseCallback, getUserPrincipal, process, process, processWithBaseUrl, setBasicAuthCredentials, setMethod, setPath, setPreferredNodes, setQueryParams, setRequestType, setResponseParser, setStreamingResponseCallback, setUserPrincipalMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.solr.common.NavigableObject
_forEachEntry, _forEachEntry, _forEachEntry, _get, _get, _getStr, _getStr, _size
-
Field Details
-
v2Calls
-
useBinary
public final boolean useBinary
-
-
Method Details
-
isForceV2
public boolean isForceV2() -
getParams
Description copied from class:SolrRequestThe parameters for this request; never null. The runtime type may be mutable but modifications may not affect thisSolrRequestinstance, as it may return a new instance here every time. If the subclass specifies the response type asModifiableSolrParams, then one can expect it to change this request. If the subclass has a setter then one can expect this method to return the value set.- Specified by:
getParamsin classSolrRequest<V2Response>
-
getContentWriter
Description copied from class:SolrRequestIf a request object wants to do a push write, implement this method.- Overrides:
getContentWriterin classSolrRequest<V2Response>- Parameters:
s- This is the type that the RequestWriter would like to get. But, it is OK to send any format
-
isPerCollectionRequest
public boolean isPerCollectionRequest() -
requiresCollection
public boolean requiresCollection()Description copied from class:SolrRequestDetermines whether this request should use or ignore any specified collections (esp.SolrClient.defaultCollection)Many Solr requests target a particular core or collection. But not all of them - many Solr APIs (e.g. security or other admin APIs) are agnostic of collections entirely. This method gives these requests a way to opt out of using
SolrClient.defaultCollectionor other specified collections.- Overrides:
requiresCollectionin classSolrRequest<V2Response>
-
getCollection
- Overrides:
getCollectionin classSolrRequest<V2Response>
-
getApiVersion
Description copied from class:SolrRequestIndicates which API version this request will makeDefaults implementation returns 'V1'.
- Overrides:
getApiVersionin classSolrRequest<V2Response>
-
createResponse
Description copied from class:SolrRequestCreate a new SolrResponse to hold the response from the server. If the response extendsSolrResponse, then there's no need to use the arguments, asSolrResponse.setResponse(NamedList)will be called right after this method.- Specified by:
createResponsein classSolrRequest<V2Response>- Parameters:
namedList- fromSolrClient.request(SolrRequest, String).
-
writeMap
Description copied from interface:MapWriterWrites this object's entries out toew.- Specified by:
writeMapin interfaceMapWriter- Throws:
IOException
-
getResponseParser
- Overrides:
getResponseParserin classSolrRequest<V2Response>- Returns:
- The
ResponseParser
-