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,org.noggit.JSONWriter.Writable
public class V2Request extends SolrRequest<V2Response> implements MapWriter
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classV2Request.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 booleanuseBinarystatic 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 V2ResponsecreateResponse(SolrClient client)Create a new SolrResponse to hold the response from the serverStringgetCollection()RequestWriter.ContentWritergetContentWriter(String s)If a request object wants to do a push write, implement this method.SolrParamsgetParams()StringgetRequestType()This method defines the type of this Solr request.ResponseParsergetResponseParser()booleanisForceV2()booleanisPerCollectionRequest()voidwriteMap(MapWriter.EntryWriter ew)-
Methods inherited from class org.apache.solr.client.solrj.SolrRequest
addHeader, addHeaders, getBasePath, getBasicAuthPassword, getBasicAuthUser, getContentStreams, getHeaders, getMethod, getPath, getPreferredNodes, getQueryParams, getStreamingResponseCallback, getUserPrincipal, process, process, requiresCollection, setBasePath, setBasicAuthCredentials, setMethod, setPath, setPreferredNodes, 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:
getParamsin classSolrRequest<V2Response>
-
getContentWriter
public RequestWriter.ContentWriter getContentWriter(String s)
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()
-
getCollection
public String getCollection()
- Overrides:
getCollectionin classSolrRequest<V2Response>
-
createResponse
protected V2Response createResponse(SolrClient client)
Description copied from class:SolrRequestCreate a new SolrResponse to hold the response from the server- Specified by:
createResponsein classSolrRequest<V2Response>- Parameters:
client- theSolrClientthe request will be sent to
-
writeMap
public void writeMap(MapWriter.EntryWriter ew) throws IOException
- Specified by:
writeMapin interfaceMapWriter- Throws:
IOException
-
getResponseParser
public ResponseParser getResponseParser()
- Overrides:
getResponseParserin classSolrRequest<V2Response>- Returns:
- The
ResponseParser
-
getRequestType
public String getRequestType()
Description copied from class:SolrRequestThis method defines the type of this Solr request.- Specified by:
getRequestTypein classSolrRequest<V2Response>
-
-