Class BulkByScrollTask.Status

java.lang.Object
org.elasticsearch.index.reindex.BulkByScrollTask.Status
All Implemented Interfaces:
NamedWriteable, Writeable, org.elasticsearch.common.xcontent.ToXContent, org.elasticsearch.common.xcontent.ToXContentObject, SuccessfullyProcessed, Task.Status
Enclosing class:
BulkByScrollTask

public static class BulkByScrollTask.Status
extends java.lang.Object
implements Task.Status, SuccessfullyProcessed
Status of the reindex, update by query, or delete by query. While in general we allow Task.Status implementations to make backwards incompatible changes to their ToXContent.toXContent(org.elasticsearch.common.xcontent.XContentBuilder, org.elasticsearch.common.xcontent.ToXContent.Params) implementations, this one has become defacto standardized because Kibana parses it. As such, we should be very careful about removing things from this.
  • Nested Class Summary

    Nested 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.Params

    Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable

    Writeable.Reader<V>, Writeable.Writer<V>
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static java.lang.String BATCHES_FIELD  
    static java.lang.String CANCELED_FIELD  
    static java.lang.String CREATED_FIELD  
    static java.lang.String DELETED_FIELD  
    static java.util.Set<java.lang.String> FIELDS_SET  
    static java.lang.String INCLUDE_CREATED
    XContent param name to indicate if "created" count must be included in the response.
    static java.lang.String INCLUDE_UPDATED
    XContent param name to indicate if "updated" count must be included in the response.
    static java.lang.String NAME  
    static java.lang.String NOOPS_FIELD  
    static java.lang.String REQUESTS_PER_SEC_FIELD  
    static java.lang.String RETRIES_BULK_FIELD  
    static java.lang.String RETRIES_FIELD  
    static java.lang.String RETRIES_SEARCH_FIELD  
    static java.lang.String SLICE_ID_FIELD  
    static java.lang.String SLICES_FIELD  
    static java.lang.String THROTTLED_HR_FIELD  
    static java.lang.String THROTTLED_RAW_FIELD  
    static java.lang.String THROTTLED_UNTIL_HR_FIELD  
    static java.lang.String THROTTLED_UNTIL_RAW_FIELD  
    static java.lang.String TOTAL_FIELD  
    static java.lang.String UPDATED_FIELD  
    static java.lang.String VERSION_CONFLICTS_FIELD  

    Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent

    EMPTY_PARAMS
  • Constructor Summary

    Constructors 
    Constructor Description
    Status​(java.lang.Integer sliceId, long total, long updated, long created, long deleted, int batches, long versionConflicts, long noops, long bulkRetries, long searchRetries, org.elasticsearch.common.unit.TimeValue throttled, float requestsPerSecond, java.lang.String reasonCancelled, org.elasticsearch.common.unit.TimeValue throttledUntil)  
    Status​(java.util.List<BulkByScrollTask.StatusOrException> sliceStatuses, java.lang.String reasonCancelled)
    Constructor merging many statuses.
    Status​(StreamInput in)  
  • Method Summary

    Modifier and Type Method Description
    static void declareFields​(org.elasticsearch.common.xcontent.ObjectParser<? extends BulkByScrollTask.StatusBuilder,​java.lang.Void> parser)  
    boolean equals​(java.lang.Object o)  
    boolean equalsWithoutSliceStatus​(java.lang.Object o, boolean includeUpdated, boolean includeCreated)  
    static BulkByScrollTask.Status fromXContent​(org.elasticsearch.common.xcontent.XContentParser parser)  
    int getBatches()
    Number of scan responses this request has processed.
    long getBulkRetries()
    Number of retries that had to be attempted due to bulk actions being rejected.
    long getCreated()
    Count of documents created.
    long getDeleted()
    Count of successful delete operations.
    long getNoops()
    Number of noops (skipped bulk items) as part of this request.
    java.lang.String getReasonCancelled()
    The reason that the request was canceled or null if it hasn't been.
    float getRequestsPerSecond()
    The number of requests per second to which to throttle the request.
    long getSearchRetries()
    Number of retries that had to be attempted due to search actions being rejected.
    java.util.List<BulkByScrollTask.StatusOrException> getSliceStatuses()
    Statuses of the sub requests into which this sub-request was sliced.
    org.elasticsearch.common.unit.TimeValue getThrottled()
    The total time this request has throttled itself not including the current throttle time if it is currently sleeping.
    org.elasticsearch.common.unit.TimeValue getThrottledUntil()
    Remaining delay of any current throttle sleep or 0 if not sleeping.
    long getTotal()
    The total number of documents this request will process.
    long getUpdated()
    Count of documents updated.
    long getVersionConflicts()
    Number of version conflicts this request has hit.
    java.lang.String getWriteableName()
    Returns the name of the writeable object
    int hashCode()  
    static BulkByScrollTask.Status innerFromXContent​(org.elasticsearch.common.xcontent.XContentParser parser)  
    void innerToString​(java.lang.StringBuilder builder)  
    org.elasticsearch.common.xcontent.XContentBuilder innerXContent​(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)
    We need to write a manual parser for this because of BulkByScrollTask.StatusOrException.
    java.lang.String toString()  
    org.elasticsearch.common.xcontent.XContentBuilder toXContent​(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)  
    void writeTo​(StreamOutput out)
    Write this into the StreamOutput.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.elasticsearch.index.reindex.SuccessfullyProcessed

    getSuccessfullyProcessed

    Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentObject

    isFragment