Package org.elasticsearch.index.reindex
Class BulkByScrollResponse
- java.lang.Object
-
- org.elasticsearch.transport.TransportMessage
-
- org.elasticsearch.transport.TransportResponse
-
- org.elasticsearch.action.ActionResponse
-
- org.elasticsearch.index.reindex.BulkByScrollResponse
-
- All Implemented Interfaces:
Writeable,ToXContent,ToXContentFragment
public class BulkByScrollResponse extends ActionResponse implements ToXContentFragment
Response used for actions that index many documents using a scroll request.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.elasticsearch.transport.TransportResponse
TransportResponse.Empty
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
-
Field Summary
-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Constructor Summary
Constructors Constructor Description BulkByScrollResponse(Iterable<BulkByScrollResponse> toMerge, String reasonCancelled)BulkByScrollResponse(StreamInput in)BulkByScrollResponse(TimeValue took, BulkByScrollTask.Status status, List<BulkItemResponse.Failure> bulkFailures, List<ScrollableHitSource.SearchFailure> searchFailures, boolean timedOut)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BulkByScrollResponsefromXContent(XContentParser parser)intgetBatches()List<BulkItemResponse.Failure>getBulkFailures()All of the bulk failures.longgetBulkRetries()The number of times that the request had retry bulk actions.longgetCreated()longgetDeleted()longgetNoops()StringgetReasonCancelled()The reason that the request was canceled or null if it hasn't been.List<ScrollableHitSource.SearchFailure>getSearchFailures()All search failures.longgetSearchRetries()The number of times that the request had retry search actions.BulkByScrollTask.StatusgetStatus()TimeValuegetTook()longgetTotal()longgetUpdated()longgetVersionConflicts()booleanisTimedOut()Did any of the sub-requests that were part of this request timeout?StringtoString()XContentBuildertoXContent(XContentBuilder builder, ToXContent.Params params)voidwriteTo(StreamOutput out)Write this into the StreamOutput.-
Methods inherited from class org.elasticsearch.transport.TransportMessage
remoteAddress, remoteAddress
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragment
isFragment
-
-
-
-
Constructor Detail
-
BulkByScrollResponse
public BulkByScrollResponse(StreamInput in) throws IOException
- Throws:
IOException
-
BulkByScrollResponse
public BulkByScrollResponse(TimeValue took, BulkByScrollTask.Status status, List<BulkItemResponse.Failure> bulkFailures, List<ScrollableHitSource.SearchFailure> searchFailures, boolean timedOut)
-
BulkByScrollResponse
public BulkByScrollResponse(Iterable<BulkByScrollResponse> toMerge, @Nullable String reasonCancelled)
-
-
Method Detail
-
getTook
public TimeValue getTook()
-
getStatus
public BulkByScrollTask.Status getStatus()
-
getCreated
public long getCreated()
-
getTotal
public long getTotal()
-
getDeleted
public long getDeleted()
-
getUpdated
public long getUpdated()
-
getBatches
public int getBatches()
-
getVersionConflicts
public long getVersionConflicts()
-
getNoops
public long getNoops()
-
getReasonCancelled
public String getReasonCancelled()
The reason that the request was canceled or null if it hasn't been.
-
getBulkRetries
public long getBulkRetries()
The number of times that the request had retry bulk actions.
-
getSearchRetries
public long getSearchRetries()
The number of times that the request had retry search actions.
-
getBulkFailures
public List<BulkItemResponse.Failure> getBulkFailures()
All of the bulk failures. Version conflicts are only included if the request sets abortOnVersionConflict to true (the default).
-
getSearchFailures
public List<ScrollableHitSource.SearchFailure> getSearchFailures()
All search failures.
-
isTimedOut
public boolean isTimedOut()
Did any of the sub-requests that were part of this request timeout?
-
writeTo
public void writeTo(StreamOutput out) throws IOException
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
- Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
fromXContent
public static BulkByScrollResponse fromXContent(XContentParser parser)
-
-