Class BulkItemResponseToFailedFlag

java.lang.Object
com.digitalpebble.stormcrawler.opensearch.BulkItemResponseToFailedFlag

public final class BulkItemResponseToFailedFlag extends Object
  • Field Details

    • response

      @NotNull public final @NotNull org.opensearch.action.bulk.BulkItemResponse response
    • failed

      public final boolean failed
    • id

      @NotNull public final @NotNull String id
  • Constructor Details

    • BulkItemResponseToFailedFlag

      public BulkItemResponseToFailedFlag(@NotNull @NotNull org.opensearch.action.bulk.BulkItemResponse response, boolean failed)
  • Method Details

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • status

      public org.opensearch.rest.RestStatus status()
    • toXContent

      public org.opensearch.core.xcontent.XContentBuilder toXContent(org.opensearch.core.xcontent.XContentBuilder builder, org.opensearch.core.xcontent.ToXContent.Params params) throws IOException
      Throws:
      IOException
    • getItemId

      public int getItemId()
    • getOpType

      public org.opensearch.action.DocWriteRequest.OpType getOpType()
    • getIndex

      public String getIndex()
    • getVersion

      public long getVersion()
    • getResponse

      public <T extends org.opensearch.action.DocWriteResponse> T getResponse()
    • isFailed

      public boolean isFailed()
    • getFailureMessage

      public String getFailureMessage()
    • getFailure

      public org.opensearch.action.bulk.BulkItemResponse.Failure getFailure()
    • writeTo

      public void writeTo(org.opensearch.common.io.stream.StreamOutput out) throws IOException
      Throws:
      IOException
    • writeThin

      public void writeThin(org.opensearch.common.io.stream.StreamOutput out) throws IOException
      Throws:
      IOException
    • isFragment

      public boolean isFragment()