你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
BulkDeleteResponse Class
- java.
lang. Object - com.
microsoft. azure. documentdb. bulkexecutor. BulkDeleteResponse
- com.
public class BulkDeleteResponse
Constructor Summary
Constructor | Description | |
---|---|---|
BulkDeleteResponse(int numberOfDocumentsDeleted, double totalRequestUnitsConsumed, Duration totalTimeTaken, List<Exception> failures) |
Method Summary
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.Exception> |
getErrors()
Gets failure list if some documents failed to get deleted. |
int |
getNumberOfDocumentsDeleted()
Gets number of documents successfully deleted. |
double |
getTotalRequestUnitsConsumed()
Gets the total request units consumed during the bulk delete. |
java.time.Duration |
getTotalTimeTaken()
Gets the total time taken for bulk delete. |
Methods inherited from java.lang.Object
Constructor Details
BulkDeleteResponse
public BulkDeleteResponse(int numberOfDocumentsDeleted, double totalRequestUnitsConsumed, Duration totalTimeTaken, List
Parameters:
Method Details
getErrors
public List
Gets failure list if some documents failed to get deleted.
Returns:
getNumberOfDocumentsDeleted
public int getNumberOfDocumentsDeleted()
Gets number of documents successfully deleted.
If this number is less than actual batch size (meaning some documents failed to get deleted), use getErrors() to get the failure cause.
Returns:
getTotalRequestUnitsConsumed
public double getTotalRequestUnitsConsumed()
Gets the total request units consumed during the bulk delete.
Returns:
getTotalTimeTaken
public Duration getTotalTimeTaken()
Gets the total time taken for bulk delete.
Returns: