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:
Streamable
,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()
BulkByScrollResponse(java.lang.Iterable<BulkByScrollResponse> toMerge, java.lang.String reasonCancelled)
BulkByScrollResponse(TimeValue took, BulkByScrollTask.Status status, java.util.List<BulkItemResponse.Failure> bulkFailures, java.util.List<ScrollableHitSource.SearchFailure> searchFailures, boolean timedOut)
-
Method Summary
Modifier and Type Method Description static BulkByScrollResponse
fromXContent(XContentParser parser)
int
getBatches()
java.util.List<BulkItemResponse.Failure>
getBulkFailures()
All of the bulk failures.long
getBulkRetries()
The number of times that the request had retry bulk actions.long
getCreated()
long
getDeleted()
long
getNoops()
java.lang.String
getReasonCancelled()
The reason that the request was canceled or null if it hasn't been.java.util.List<ScrollableHitSource.SearchFailure>
getSearchFailures()
All search failures.long
getSearchRetries()
The number of times that the request had retry search actions.BulkByScrollTask.Status
getStatus()
TimeValue
getTook()
long
getTotal()
long
getUpdated()
long
getVersionConflicts()
boolean
isTimedOut()
Did any of the sub-requests that were part of this request timeout?void
readFrom(StreamInput in)
Set this object's fields from a StreamInput.java.lang.String
toString()
XContentBuilder
toXContent(XContentBuilder builder, ToXContent.Params params)
void
writeTo(StreamOutput out)
Write this object's fields to a 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()
-
BulkByScrollResponse
public BulkByScrollResponse(TimeValue took, BulkByScrollTask.Status status, java.util.List<BulkItemResponse.Failure> bulkFailures, java.util.List<ScrollableHitSource.SearchFailure> searchFailures, boolean timedOut)
-
BulkByScrollResponse
public BulkByScrollResponse(java.lang.Iterable<BulkByScrollResponse> toMerge, @Nullable java.lang.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 java.lang.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 java.util.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 java.util.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 java.io.IOException
Description copied from interface:Streamable
Write this object's fields to a StreamOutput.- Specified by:
writeTo
in interfaceStreamable
- Specified by:
writeTo
in interfaceWriteable
- Overrides:
writeTo
in classActionResponse
- Throws:
java.io.IOException
-
readFrom
public void readFrom(StreamInput in) throws java.io.IOException
Description copied from interface:Streamable
Set this object's fields from a StreamInput.- Specified by:
readFrom
in interfaceStreamable
- Overrides:
readFrom
in classActionResponse
- Throws:
java.io.IOException
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
- Specified by:
toXContent
in interfaceToXContent
- Throws:
java.io.IOException
-
fromXContent
public static BulkByScrollResponse fromXContent(XContentParser parser)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-