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,org.elasticsearch.common.xcontent.ToXContent,org.elasticsearch.common.xcontent.ToXContentFragment,org.elasticsearch.core.RefCounted
public class BulkByScrollResponse
extends ActionResponse
implements org.elasticsearch.common.xcontent.ToXContentFragment
Response used for actions that index many documents using a scroll request.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.action.ActionResponse
ActionResponse.EmptyNested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.ParamsNested 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
ConstructorsConstructorDescriptionBulkByScrollResponse(Iterable<BulkByScrollResponse> toMerge, String reasonCancelled)BulkByScrollResponse(org.elasticsearch.core.TimeValue took, BulkByScrollTask.Status status, List<BulkItemResponse.Failure> bulkFailures, List<ScrollableHitSource.SearchFailure> searchFailures, boolean timedOut) -
Method Summary
Modifier and TypeMethodDescriptionstatic BulkByScrollResponsefromXContent(org.elasticsearch.common.xcontent.XContentParser parser)intAll of the bulk failures.longThe number of times that the request had retry bulk actions.longlonglonggetNoops()The reason that the request was canceled or null if it hasn't been.All search failures.longThe number of times that the request had retry search actions.org.elasticsearch.core.TimeValuegetTook()longgetTotal()longlongbooleanDid any of the sub-requests that were part of this request timeout?toString()org.elasticsearch.common.xcontent.XContentBuildertoXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)voidwriteTo(StreamOutput out)Write this into the StreamOutput.Methods inherited from class org.elasticsearch.transport.TransportMessage
decRef, incRef, remoteAddress, remoteAddress, tryIncRefMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragment
isFragment
-
Constructor Details
-
BulkByScrollResponse
- Throws:
IOException
-
BulkByScrollResponse
public BulkByScrollResponse(org.elasticsearch.core.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 Details
-
getTook
public org.elasticsearch.core.TimeValue getTook() -
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
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
All of the bulk failures. Version conflicts are only included if the request sets abortOnVersionConflict to true (the default). -
getSearchFailures
All search failures. -
isTimedOut
public boolean isTimedOut()Did any of the sub-requests that were part of this request timeout? -
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
toXContent
public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws IOException- Specified by:
toXContentin interfaceorg.elasticsearch.common.xcontent.ToXContent- Throws:
IOException
-
fromXContent
public static BulkByScrollResponse fromXContent(org.elasticsearch.common.xcontent.XContentParser parser) -
toString
-