Package com.mongodb.connection
Class BulkWriteBatchCombiner
java.lang.Object
com.mongodb.connection.BulkWriteBatchCombiner
Deprecated.
This class is not part of the public API. It may be changed or removed at any time.
-
Constructor Summary
ConstructorsConstructorDescriptionBulkWriteBatchCombiner(ServerAddress serverAddress, boolean ordered, WriteConcern writeConcern) Deprecated.Construct an instance. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddErrorResult(MongoBulkWriteException exception, IndexMap indexMap) Deprecated.Add an error resultvoidaddErrorResult(List<BulkWriteError> writeErrors, WriteConcernError writeConcernError, IndexMap indexMap) Deprecated.Add a list of error results and a write concern errorvoidaddResult(BulkWriteResult result, IndexMap indexMap) Deprecated.Add a resultvoidaddWriteConcernErrorResult(WriteConcernError writeConcernError) Deprecated.Add a write concern error resultvoidaddWriteErrorResult(BulkWriteError writeError, IndexMap indexMap) Deprecated.Add a write error resultgetError()Deprecated.Gets the combined errors as an exceptionDeprecated.Gets the combined result.booleanDeprecated.Gets whether there are errors in the combined result.booleanDeprecated.True if ordered and has write errors.
-
Constructor Details
-
BulkWriteBatchCombiner
public BulkWriteBatchCombiner(ServerAddress serverAddress, boolean ordered, WriteConcern writeConcern) Deprecated.Construct an instance.- Parameters:
serverAddress- the server addressordered- orderedwriteConcern- the write concern
-
-
Method Details
-
addResult
Deprecated.Add a result- Parameters:
result- the resultindexMap- the index map
-
addErrorResult
Deprecated.Add an error result- Parameters:
exception- the exceptionindexMap- the index map
-
addWriteErrorResult
Deprecated.Add a write error result- Parameters:
writeError- the write errorindexMap- the index map
-
addWriteConcernErrorResult
Deprecated.Add a write concern error result- Parameters:
writeConcernError- the write concern error
-
addErrorResult
public void addErrorResult(List<BulkWriteError> writeErrors, WriteConcernError writeConcernError, IndexMap indexMap) Deprecated.Add a list of error results and a write concern error- Parameters:
writeErrors- the errorswriteConcernError- the write concern errorindexMap- the index map
-
getResult
Deprecated.Gets the combined result.- Returns:
- the result
-
shouldStopSendingMoreBatches
public boolean shouldStopSendingMoreBatches()Deprecated.True if ordered and has write errors.- Returns:
- true if no more batches should be sent
-
hasErrors
public boolean hasErrors()Deprecated.Gets whether there are errors in the combined result.- Returns:
- whether there are errors in the combined result
-
getError
Deprecated.Gets the combined errors as an exception- Returns:
- the bulk write exception, or null if there were no errors
-