Class PutRecordBatchResult
- All Implemented Interfaces:
Serializable, Cloneable
Contains the output of PutRecordBatch.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanThe number of unsuccessfully written records.The results for the individual records.inthashCode()voidsetFailedPutCount(Integer failedPutCount) The number of unsuccessfully written records.voidsetRequestResponses(Collection<PutRecordBatchResponseEntry> requestResponses) The results for the individual records.toString()Returns a string representation of this object; useful for testing and debugging.withFailedPutCount(Integer failedPutCount) The number of unsuccessfully written records.withRequestResponses(PutRecordBatchResponseEntry... requestResponses) The results for the individual records.withRequestResponses(Collection<PutRecordBatchResponseEntry> requestResponses) The results for the individual records.
-
Constructor Details
-
PutRecordBatchResult
public PutRecordBatchResult()
-
-
Method Details
-
setFailedPutCount
The number of unsuccessfully written records.
- Parameters:
failedPutCount- The number of unsuccessfully written records.
-
getFailedPutCount
The number of unsuccessfully written records.
- Returns:
- The number of unsuccessfully written records.
-
withFailedPutCount
The number of unsuccessfully written records.
- Parameters:
failedPutCount- The number of unsuccessfully written records.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getRequestResponses
The results for the individual records. The index of each element matches the same index in which records were sent.
- Returns:
- The results for the individual records. The index of each element matches the same index in which records were sent.
-
setRequestResponses
The results for the individual records. The index of each element matches the same index in which records were sent.
- Parameters:
requestResponses- The results for the individual records. The index of each element matches the same index in which records were sent.
-
withRequestResponses
The results for the individual records. The index of each element matches the same index in which records were sent.
NOTE: This method appends the values to the existing list (if any). Use
setRequestResponses(java.util.Collection)orwithRequestResponses(java.util.Collection)if you want to override the existing values.- Parameters:
requestResponses- The results for the individual records. The index of each element matches the same index in which records were sent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withRequestResponses
public PutRecordBatchResult withRequestResponses(Collection<PutRecordBatchResponseEntry> requestResponses) The results for the individual records. The index of each element matches the same index in which records were sent.
- Parameters:
requestResponses- The results for the individual records. The index of each element matches the same index in which records were sent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
-
equals
-
hashCode
-
clone
-