public final class ReadBatch extends Object
KeysAndAttributes
, and
used for the batchGetItem() operation (such as
DynamoDbEnhancedClient.batchGetItem(BatchGetItemEnhancedRequest)
) as part of a
BatchGetItemEnhancedRequest
.
A valid request object should contain one or more primary keys.
Modifier and Type | Class and Description |
---|---|
static interface |
ReadBatch.Builder<T>
A builder that is used to create a request with the desired parameters.
|
Modifier and Type | Method and Description |
---|---|
static <T> ReadBatch.Builder<T> |
builder(Class<? extends T> itemClass)
Creates a newly initialized builder for a read batch.
|
boolean |
equals(Object o) |
int |
hashCode() |
KeysAndAttributes |
keysAndAttributes()
Returns the collection of keys and attributes, see
KeysAndAttributes , in this read batch. |
String |
tableName()
Returns the table name associated with this batch.
|
public static <T> ReadBatch.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 KeysAndAttributes keysAndAttributes()
KeysAndAttributes
, in this read batch.Copyright © 2021. All rights reserved.