public class V2Request extends SolrRequest<V2Response> implements MapWriter
| Modifier and Type | Class and Description |
|---|---|
static class |
V2Request.Builder |
SolrRequest.METHODMapWriter.EntryWriter| Modifier and Type | Field and Description |
|---|---|
boolean |
useBinary |
static ThreadLocal<AtomicLong> |
v2Calls |
SUPPORTED_METHODS, useBinaryV2, usev2| Modifier and Type | Method and Description |
|---|---|
protected V2Response |
createResponse(SolrClient client)
Create a new SolrResponse to hold the response from the server
|
String |
getCollection() |
RequestWriter.ContentWriter |
getContentWriter(String s)
If a request object wants to do a push write, implement this method.
|
SolrParams |
getParams() |
ResponseParser |
getResponseParser() |
boolean |
isForceV2() |
boolean |
isPerCollectionRequest() |
void |
writeMap(MapWriter.EntryWriter ew) |
addHeader, getBasePath, getBasicAuthPassword, getBasicAuthUser, getContentStreams, getHeaders, getMethod, getPath, getQueryParams, getStreamingResponseCallback, getUserPrincipal, process, process, setBasePath, setBasicAuthCredentials, setMethod, setPath, setQueryParams, setResponseParser, setStreamingResponseCallback, setUseBinaryV2, setUserPrincipal, setUseV2clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait_forEachEntry, _forEachEntry, _forEachEntry, _get, _get, _getStr, _getStrpublic static final ThreadLocal<AtomicLong> v2Calls
public final boolean useBinary
public boolean isForceV2()
public SolrParams getParams()
getParams in class SolrRequest<V2Response>public RequestWriter.ContentWriter getContentWriter(String s)
SolrRequestgetContentWriter in class SolrRequest<V2Response>s - This is the type that the RequestWriter would like to get. But, it is OK to send any formatpublic boolean isPerCollectionRequest()
public String getCollection()
getCollection in class SolrRequest<V2Response>protected V2Response createResponse(SolrClient client)
SolrRequestcreateResponse in class SolrRequest<V2Response>client - the SolrClient the request will be sent topublic void writeMap(MapWriter.EntryWriter ew) throws IOException
writeMap in interface MapWriterIOExceptionpublic ResponseParser getResponseParser()
getResponseParser in class SolrRequest<V2Response>ResponseParserCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.