Package org.elasticsearch.index.reindex
Class AbstractBulkIndexByScrollRequest<Self extends AbstractBulkIndexByScrollRequest<Self>>
java.lang.Object
org.elasticsearch.transport.TransportMessage
org.elasticsearch.transport.TransportRequest
org.elasticsearch.action.ActionRequest
org.elasticsearch.index.reindex.AbstractBulkByScrollRequest<Self>
org.elasticsearch.index.reindex.AbstractBulkIndexByScrollRequest<Self>
- All Implemented Interfaces:
Writeable
,org.elasticsearch.core.RefCounted
,TaskAwareRequest
- Direct Known Subclasses:
ReindexRequest
,UpdateByQueryRequest
public abstract class AbstractBulkIndexByScrollRequest<Self extends AbstractBulkIndexByScrollRequest<Self>>
extends AbstractBulkByScrollRequest<Self>
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.transport.TransportRequest
TransportRequest.Empty
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Field Summary
Fields inherited from class org.elasticsearch.index.reindex.AbstractBulkByScrollRequest
AUTO_SLICES, AUTO_SLICES_VALUE, DEFAULT_SCROLL_SIZE, DEFAULT_SCROLL_TIMEOUT, MAX_DOCS_ALL_MATCHES
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractBulkIndexByScrollRequest
(SearchRequest searchRequest, boolean setDefaults) Constructor for actual use. -
Method Summary
Modifier and TypeMethodDescriptionprotected Self
doForSlice
(Self request, TaskId slicingTask, int totalSlices) Setup a clone of this request with the information needed to process a slice of it.Script to modify the documents before they are processed.protected void
Append a short description of the search request to a StringBuilder.Script to modify the documents before they are processed.void
writeTo
(StreamOutput out) Write this into the StreamOutput.Methods inherited from class org.elasticsearch.index.reindex.AbstractBulkByScrollRequest
createTask, forSlice, getDescription, getMaxDocs, getMaxRetries, getRequestsPerSecond, getRetryBackoffInitialTime, getScrollTime, getSearchRequest, getShouldStoreResult, getSlices, getTimeout, getWaitForActiveShards, isAbortOnVersionConflict, isRefresh, self, setAbortOnVersionConflict, setConflicts, setMaxDocs, setMaxRetries, setRefresh, setRequestsPerSecond, setRetryBackoffInitialTime, setScroll, setShouldStoreResult, setSlices, setTimeout, setTimeout, setWaitForActiveShards, setWaitForActiveShards, validate
Methods inherited from class org.elasticsearch.transport.TransportRequest
getParentTask, setParentTask, toString
Methods inherited from class org.elasticsearch.transport.TransportMessage
decRef, hasReferences, incRef, remoteAddress, remoteAddress, tryIncRef
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.elasticsearch.tasks.TaskAwareRequest
setParentTask
-
Constructor Details
-
AbstractBulkIndexByScrollRequest
- Throws:
IOException
-
AbstractBulkIndexByScrollRequest
Constructor for actual use.- Parameters:
searchRequest
- the search request to execute to get the documents to processsetDefaults
- should this request set the defaults on the search request? Usually set to true but leave it false to support request slicing
-
-
Method Details
-
getScript
Script to modify the documents before they are processed. -
setScript
Script to modify the documents before they are processed. -
doForSlice
Description copied from class:AbstractBulkByScrollRequest
Setup a clone of this request with the information needed to process a slice of it.- Overrides:
doForSlice
in classAbstractBulkByScrollRequest<Self extends AbstractBulkIndexByScrollRequest<Self>>
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in interfaceWriteable
- Overrides:
writeTo
in classAbstractBulkByScrollRequest<Self extends AbstractBulkIndexByScrollRequest<Self>>
- Throws:
IOException
-
searchToString
Description copied from class:AbstractBulkByScrollRequest
Append a short description of the search request to a StringBuilder. Used to make toString.- Overrides:
searchToString
in classAbstractBulkByScrollRequest<Self extends AbstractBulkIndexByScrollRequest<Self>>
-