public class V2Request extends SolrRequest<V2Response> implements MapWriter
Modifier and Type | Class and Description |
---|---|
static class |
V2Request.Builder |
SolrRequest.METHOD
MapWriter.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, setUseV2
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
_forEachEntry, _forEachEntry, _forEachEntry, _get, _get, _getStr, _getStr, _size
public 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)
SolrRequest
getContentWriter
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)
SolrRequest
createResponse
in class SolrRequest<V2Response>
client
- the SolrClient
the request will be sent topublic void writeMap(MapWriter.EntryWriter ew) throws IOException
writeMap
in interface MapWriter
IOException
public ResponseParser getResponseParser()
getResponseParser
in class SolrRequest<V2Response>
ResponseParser
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.