Class AbstractUpdateRequest
- java.lang.Object
-
- org.apache.solr.client.solrj.SolrRequest<UpdateResponse>
-
- org.apache.solr.client.solrj.request.AbstractUpdateRequest
-
- All Implemented Interfaces:
Serializable
,IsUpdateRequest
- Direct Known Subclasses:
ContentStreamUpdateRequest
,MultiContentWriterRequest
,StreamingUpdateRequest
,UpdateRequest
public abstract class AbstractUpdateRequest extends SolrRequest<UpdateResponse> implements IsUpdateRequest
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AbstractUpdateRequest.ACTION
-
Nested classes/interfaces inherited from class org.apache.solr.client.solrj.SolrRequest
SolrRequest.METHOD, SolrRequest.SolrClientContext, SolrRequest.SolrRequestType
-
-
Field Summary
Fields Modifier and Type Field Description protected int
commitWithin
protected ModifiableSolrParams
params
-
Fields inherited from class org.apache.solr.client.solrj.SolrRequest
SUPPORTED_METHODS, useBinaryV2, usev2
-
-
Constructor Summary
Constructors Constructor Description AbstractUpdateRequest(SolrRequest.METHOD m, String path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected UpdateResponse
createResponse(SolrClient client)
Create a new SolrResponse to hold the response from the serverAbstractUpdateRequest.ACTION
getAction()
int
getCommitWithin()
ModifiableSolrParams
getParams()
String
getRequestType()
This method defines the type of this Solr request.boolean
isWaitSearcher()
AbstractUpdateRequest
rollback()
AbstractUpdateRequest
setAction(AbstractUpdateRequest.ACTION action, boolean waitFlush, boolean waitSearcher)
Sets appropriate parameters for the given ACTIONAbstractUpdateRequest
setAction(AbstractUpdateRequest.ACTION action, boolean waitFlush, boolean waitSearcher, boolean softCommit)
AbstractUpdateRequest
setAction(AbstractUpdateRequest.ACTION action, boolean waitFlush, boolean waitSearcher, boolean softCommit, int maxSegments)
AbstractUpdateRequest
setAction(AbstractUpdateRequest.ACTION action, boolean waitFlush, boolean waitSearcher, int maxSegments)
AbstractUpdateRequest
setAction(AbstractUpdateRequest.ACTION action, boolean waitFlush, boolean waitSearcher, int maxSegments, boolean expungeDeletes)
AbstractUpdateRequest
setAction(AbstractUpdateRequest.ACTION action, boolean waitFlush, boolean waitSearcher, int maxSegments, boolean softCommit, boolean expungeDeletes)
AbstractUpdateRequest
setAction(AbstractUpdateRequest.ACTION action, boolean waitFlush, boolean waitSearcher, int maxSegments, boolean softCommit, boolean expungeDeletes, boolean openSearcher)
AbstractUpdateRequest
setCommitWithin(int commitWithin)
void
setParam(String param, String value)
void
setParams(ModifiableSolrParams params)
Sets the parameters for this update request, overwriting any previousvoid
setWaitSearcher(boolean waitSearcher)
-
Methods inherited from class org.apache.solr.client.solrj.SolrRequest
addHeader, getBasePath, getBasicAuthPassword, getBasicAuthUser, getCollection, getContentStreams, getContentWriter, getHeaders, getMethod, getPath, getQueryParams, getResponseParser, getStreamingResponseCallback, getUserPrincipal, process, process, setBasePath, setBasicAuthCredentials, setMethod, setPath, setQueryParams, setResponseParser, setStreamingResponseCallback, setUseBinaryV2, setUserPrincipal, setUseV2
-
-
-
-
Field Detail
-
params
protected ModifiableSolrParams params
-
commitWithin
protected int commitWithin
-
-
Constructor Detail
-
AbstractUpdateRequest
public AbstractUpdateRequest(SolrRequest.METHOD m, String path)
-
-
Method Detail
-
setAction
public AbstractUpdateRequest setAction(AbstractUpdateRequest.ACTION action, boolean waitFlush, boolean waitSearcher)
Sets appropriate parameters for the given ACTION
-
setAction
public AbstractUpdateRequest setAction(AbstractUpdateRequest.ACTION action, boolean waitFlush, boolean waitSearcher, boolean softCommit)
-
setAction
public AbstractUpdateRequest setAction(AbstractUpdateRequest.ACTION action, boolean waitFlush, boolean waitSearcher, int maxSegments)
-
setAction
public AbstractUpdateRequest setAction(AbstractUpdateRequest.ACTION action, boolean waitFlush, boolean waitSearcher, boolean softCommit, int maxSegments)
-
setAction
public AbstractUpdateRequest setAction(AbstractUpdateRequest.ACTION action, boolean waitFlush, boolean waitSearcher, int maxSegments, boolean softCommit, boolean expungeDeletes)
-
setAction
public AbstractUpdateRequest setAction(AbstractUpdateRequest.ACTION action, boolean waitFlush, boolean waitSearcher, int maxSegments, boolean expungeDeletes)
-
setAction
public AbstractUpdateRequest setAction(AbstractUpdateRequest.ACTION action, boolean waitFlush, boolean waitSearcher, int maxSegments, boolean softCommit, boolean expungeDeletes, boolean openSearcher)
-
rollback
public AbstractUpdateRequest rollback()
- Since:
- Solr 1.4
-
setParams
public void setParams(ModifiableSolrParams params)
Sets the parameters for this update request, overwriting any previous
-
getParams
public ModifiableSolrParams getParams()
- Specified by:
getParams
in classSolrRequest<UpdateResponse>
-
createResponse
protected UpdateResponse createResponse(SolrClient client)
Description copied from class:SolrRequest
Create a new SolrResponse to hold the response from the server- Specified by:
createResponse
in classSolrRequest<UpdateResponse>
- Parameters:
client
- theSolrClient
the request will be sent to
-
getRequestType
public String getRequestType()
Description copied from class:SolrRequest
This method defines the type of this Solr request.- Specified by:
getRequestType
in classSolrRequest<UpdateResponse>
-
isWaitSearcher
public boolean isWaitSearcher()
-
getAction
public AbstractUpdateRequest.ACTION getAction()
-
setWaitSearcher
public void setWaitSearcher(boolean waitSearcher)
-
getCommitWithin
public int getCommitWithin()
-
setCommitWithin
public AbstractUpdateRequest setCommitWithin(int commitWithin)
-
-