Class BulkItemResponseToFailedFlag
java.lang.Object
com.digitalpebble.stormcrawler.opensearch.BulkItemResponseToFailedFlag
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBulkItemResponseToFailedFlag(@NotNull org.opensearch.action.bulk.BulkItemResponse response, boolean failed) -
Method Summary
Modifier and TypeMethodDescriptionbooleanorg.opensearch.action.bulk.BulkItemResponse.FailuregetIndex()intorg.opensearch.action.DocWriteRequest.OpType<T extends org.opensearch.action.DocWriteResponse>
TlonginthashCode()booleanisFailed()booleanorg.opensearch.rest.RestStatusstatus()toString()org.opensearch.core.xcontent.XContentBuildertoXContent(org.opensearch.core.xcontent.XContentBuilder builder, org.opensearch.core.xcontent.ToXContent.Params params) voidwriteThin(org.opensearch.common.io.stream.StreamOutput out) voidwriteTo(org.opensearch.common.io.stream.StreamOutput out)
-
Field Details
-
response
@NotNull public final @NotNull org.opensearch.action.bulk.BulkItemResponse response -
failed
public final boolean failed -
id
-
-
Constructor Details
-
BulkItemResponseToFailedFlag
public BulkItemResponseToFailedFlag(@NotNull @NotNull org.opensearch.action.bulk.BulkItemResponse response, boolean failed)
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
toString
-
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
-
getVersion
public long getVersion() -
getResponse
public <T extends org.opensearch.action.DocWriteResponse> T getResponse() -
isFailed
public boolean isFailed() -
getFailureMessage
-
getFailure
public org.opensearch.action.bulk.BulkItemResponse.Failure getFailure() -
writeTo
- Throws:
IOException
-
writeThin
- Throws:
IOException
-
isFragment
public boolean isFragment()
-