BatchDeleter Class
- java.
lang. Object - com.
microsoft. azure. documentdb. bulkexecutor. internal. BatchDeleter
- com.
public class BatchDeleter
Field Summary
Modifier and Type | Field and Description |
---|---|
java.util.concurrent.atomic.AtomicInteger |
numberOfDocumentsDeleted
The count of documents bulk deleted by this batch deleted. |
com.google.common.util.concurrent.AtomicDouble |
totalRequestUnitsConsumed
The total request units consumed by this batch deleter. |
Constructor Summary
Constructor | Description | |
---|---|---|
BatchDeleter(String partitionKeyRangeId, DocumentClient client, String bulkDeleteSprocLink, BulkDeleteQuerySpec querySpec) |
Method Summary
Modifier and Type | Method and Description |
---|---|
java.util.concurrent.Callable<java.lang.Void> | executeDelete() |
int |
getNumberOfDocumentsDeleted()
Gets the number of documents deleted by this batch deleter |
double |
getTotalRequestUnitsConsumed()
Gets the number of Request Units consumed by this batch deleter |
Methods inherited from java.lang.Object
Field Details
numberOfDocumentsDeleted
public AtomicInteger numberOfDocumentsDeleted
The count of documents bulk deleted by this batch deleted.
totalRequestUnitsConsumed
public AtomicDouble totalRequestUnitsConsumed
The total request units consumed by this batch deleter.
Constructor Details
BatchDeleter
public BatchDeleter(String partitionKeyRangeId, DocumentClient client, String bulkDeleteSprocLink, BulkDeleteQuerySpec querySpec)
Parameters:
Method Details
executeDelete
public Callable
getNumberOfDocumentsDeleted
public int getNumberOfDocumentsDeleted()
Gets the number of documents deleted by this batch deleter
Returns:
getTotalRequestUnitsConsumed
public double getTotalRequestUnitsConsumed()
Gets the number of Request Units consumed by this batch deleter
Returns:
Applies to
Azure SDK for Java