public class BulkDeleteResponse extends Object
| Constructor and Description |
|---|
BulkDeleteResponse(int numberOfDocumentsDeleted,
double totalRequestUnitsConsumed,
java.time.Duration totalTimeTaken,
List<Exception> failures,
List<BulkDeleteFailure> failedDeletes) |
| Modifier and Type | Method and Description |
|---|---|
List<Exception> |
getErrors()
Gets failure list if some documents failed to get deleted.
|
List<BulkDeleteFailure> |
getFailedDeletes()
Gets the list of failures during the bulk delete execution
|
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.
|
public BulkDeleteResponse(int numberOfDocumentsDeleted,
double totalRequestUnitsConsumed,
java.time.Duration totalTimeTaken,
List<Exception> failures,
List<BulkDeleteFailure> failedDeletes)
public int getNumberOfDocumentsDeleted()
If this number is less than actual batch size (meaning some documents failed to get deleted),
use getErrors() to get the failure cause.
public double getTotalRequestUnitsConsumed()
public java.time.Duration getTotalTimeTaken()
public List<Exception> getErrors()
public List<BulkDeleteFailure> getFailedDeletes()
Copyright © 2021. All rights reserved.