Package org.elasticsearch.action.bulk
Class BulkItemRequest
java.lang.Object
org.elasticsearch.action.bulk.BulkItemRequest
- All Implemented Interfaces:
org.apache.lucene.util.Accountable
,Writeable
-
Nested Class Summary
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.apache.lucene.util.Accountable
NULL_ACCOUNTABLE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Abort this request, and store aBulkItemResponse.Failure
response.int
id()
index()
long
request()
void
writeThin
(StreamOutput out) void
writeTo
(StreamOutput out) Write this into the StreamOutput.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.lucene.util.Accountable
getChildResources
-
Constructor Details
-
BulkItemRequest
-
-
Method Details
-
id
public int id() -
request
-
index
-
abort
Abort this request, and store aBulkItemResponse.Failure
response.- Parameters:
index
- The concrete index that was resolved for this requestcause
- The cause of the rejection (may not be null)- Throws:
IllegalStateException
- If a response already exists for this request
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in interfaceWriteable
- Throws:
IOException
-
writeThin
- Throws:
IOException
-
ramBytesUsed
public long ramBytesUsed()- Specified by:
ramBytesUsed
in interfaceorg.apache.lucene.util.Accountable
-