public class BulkAddResult<T> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
BulkAddResult.Builder<T> |
Modifier and Type | Method and Description |
---|---|
static <T> BulkAddResult.Builder<T> |
builder(long attemptingToAdd) |
long |
getAddedSuccessfully()
Calculates the number of entities which were successfully added, which is calculated as the number of entities
which were attempted to be added minus both the failed entities (which couldn't be added) and the existing
entities (which already existed and hence couldn't be added).
|
long |
getAttemptedToAdd() |
Collection<T> |
getExistingEntities()
Returns the entities which did not get overwritten
during the bulk add process.
|
Collection<T> |
getFailedEntities()
Returns the entities which did failed to be
added during the bulk add process.
|
boolean |
isOverwriteUsed() |
public Collection<T> getFailedEntities()
public Collection<T> getExistingEntities()
overwrite
is true
.public boolean isOverwriteUsed()
true
iff the overwriting was requested
during the bulk add process.public long getAttemptedToAdd()
public long getAddedSuccessfully()
attemptedToAdd - failedEntities - existingEntities
public static <T> BulkAddResult.Builder<T> builder(long attemptingToAdd)
Copyright © 2024 Atlassian. All rights reserved.