Class V2Request
- java.lang.Object
-
- org.apache.solr.client.solrj.SolrRequest<V2Response>
-
- org.apache.solr.client.solrj.request.V2Request
-
- All Implemented Interfaces:
Serializable
,MapSerializable
,MapWriter
,NavigableObject
public class V2Request extends SolrRequest<V2Response> implements MapWriter
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
V2Request.Builder
-
Nested classes/interfaces inherited from class org.apache.solr.client.solrj.SolrRequest
SolrRequest.METHOD, SolrRequest.SolrClientContext, SolrRequest.SolrRequestType
-
Nested classes/interfaces inherited from interface org.apache.solr.common.MapWriter
MapWriter.EntryWriter
-
-
Field Summary
Fields Modifier and Type Field Description boolean
useBinary
static ThreadLocal<AtomicLong>
v2Calls
-
Fields inherited from class org.apache.solr.client.solrj.SolrRequest
SUPPORTED_METHODS, useBinaryV2, usev2
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected V2Response
createResponse(SolrClient client)
Create a new SolrResponse to hold the response from the serverString
getCollection()
RequestWriter.ContentWriter
getContentWriter(String s)
If a request object wants to do a push write, implement this method.SolrParams
getParams()
String
getRequestType()
This method defines the type of this Solr request.ResponseParser
getResponseParser()
boolean
isForceV2()
boolean
isPerCollectionRequest()
void
writeMap(MapWriter.EntryWriter ew)
-
Methods inherited from class org.apache.solr.client.solrj.SolrRequest
addHeader, getBasePath, getBasicAuthPassword, getBasicAuthUser, getContentStreams, getHeaders, getMethod, getPath, getQueryParams, getStreamingResponseCallback, getUserPrincipal, process, process, setBasePath, setBasicAuthCredentials, setMethod, setPath, setQueryParams, setResponseParser, setStreamingResponseCallback, setUseBinaryV2, setUserPrincipal, setUseV2
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.solr.common.NavigableObject
_forEachEntry, _forEachEntry, _forEachEntry, _get, _get, _getStr, _getStr, _size
-
-
-
-
Field Detail
-
v2Calls
public static final ThreadLocal<AtomicLong> v2Calls
-
useBinary
public final boolean useBinary
-
-
Method Detail
-
isForceV2
public boolean isForceV2()
-
getParams
public SolrParams getParams()
- Specified by:
getParams
in classSolrRequest<V2Response>
-
getContentWriter
public RequestWriter.ContentWriter getContentWriter(String s)
Description copied from class:SolrRequest
If a request object wants to do a push write, implement this method.- Overrides:
getContentWriter
in 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()
-
getCollection
public String getCollection()
- Overrides:
getCollection
in classSolrRequest<V2Response>
-
createResponse
protected V2Response createResponse(SolrClient client)
Description copied from class:SolrRequest
Create a new SolrResponse to hold the response from the server- Specified by:
createResponse
in classSolrRequest<V2Response>
- Parameters:
client
- theSolrClient
the request will be sent to
-
writeMap
public void writeMap(MapWriter.EntryWriter ew) throws IOException
- Specified by:
writeMap
in interfaceMapWriter
- Throws:
IOException
-
getResponseParser
public ResponseParser getResponseParser()
- Overrides:
getResponseParser
in classSolrRequest<V2Response>
- Returns:
- The
ResponseParser
-
getRequestType
public String getRequestType()
Description copied from class:SolrRequest
This method defines the type of this Solr request.- Specified by:
getRequestType
in classSolrRequest<V2Response>
-
-