public final class WriteBatch extends Object
BatchWriteItemEnhancedRequest
and used in a batchWriteItem() operation (such as
DynamoDbEnhancedClient.batchWriteItem(BatchWriteItemEnhancedRequest)
).
A valid write batch should contain one or more delete or put action reference.
Modifier and Type | Class and Description |
---|---|
static interface |
WriteBatch.Builder<T>
A builder that is used to create a request with the desired parameters.
|
Modifier and Type | Method and Description |
---|---|
static <T> WriteBatch.Builder<T> |
builder(Class<? extends T> itemClass)
Creates a newly initialized builder for a write batch.
|
boolean |
equals(Object o) |
int |
hashCode() |
String |
tableName()
Returns the table name associated with this batch.
|
Collection<WriteRequest> |
writeRequests()
Returns the collection of write requests in this writek batch.
|
public static <T> WriteBatch.Builder<T> builder(Class<? extends T> itemClass)
T
- The type of the modelled object, corresponding to itemClassitemClass
- the class that items in this table map topublic String tableName()
public Collection<WriteRequest> writeRequests()
Copyright © 2020. All rights reserved.