你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

BulkImportResponse Class

  • java.lang.Object
    • com.microsoft.azure.documentdb.bulkexecutor.BulkImportResponse

public class BulkImportResponse

Method Summary

Modifier and Type Method and Description
java.util.List<java.lang.Object> getBadInputDocuments()

Gets the list of bad input documents which caused failures.

java.util.List<java.lang.Exception> getErrors()

Gets failure list if some documents failed to get inserted.

java.util.List<BulkImportFailure> getFailedImports()

Gets the list of failed imports during the bulk import

int getNumberOfDocumentsImported()

Gets number of documents successfully inserted.

double getTotalRequestUnitsConsumed()

Gets the total request units consumed during the bulk import.

java.time.Duration getTotalTimeTaken()

Gets the total time taken for bulk import.

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

Method Details

getBadInputDocuments

public List getBadInputDocuments()

Gets the list of bad input documents which caused failures.

Returns:

list of bad input documents.

getErrors

public List getErrors()

Gets failure list if some documents failed to get inserted.

Returns:

list of errors or empty list if no error.

getFailedImports

public List getFailedImports()

Gets the list of failed imports during the bulk import

getNumberOfDocumentsImported

public int getNumberOfDocumentsImported()

Gets number of documents successfully inserted.

If this number is less than actual batch size (meaning some documents failed to get inserted), use getErrors() to get the failure cause.

Returns:

the numberOfDocumentsImported

getTotalRequestUnitsConsumed

public double getTotalRequestUnitsConsumed()

Gets the total request units consumed during the bulk import.

Returns:

the totalRequestUnitsConsumed

getTotalTimeTaken

public Duration getTotalTimeTaken()

Gets the total time taken for bulk import.

Returns:

the totalTimeTaken

Applies to