Compartir vía


BatchDeleter Class

  • java.lang.Object
    • com.microsoft.azure.documentdb.bulkexecutor.internal.BatchDeleter

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

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

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:

partitionKeyRangeId
client
bulkDeleteSprocLink
querySpec

Method Details

executeDelete

public Callable executeDelete()

getNumberOfDocumentsDeleted

public int getNumberOfDocumentsDeleted()

Gets the number of documents deleted by this batch deleter

Returns:

numberOfDocumentsDeleted

getTotalRequestUnitsConsumed

public double getTotalRequestUnitsConsumed()

Gets the number of Request Units consumed by this batch deleter

Returns:

totalRequestUnitsConsumed

Applies to