Class ReadBatch
- java.lang.Object
-
- software.amazon.awssdk.enhanced.dynamodb.model.ReadBatch
-
@ThreadSafe public final class ReadBatch extends Object
Defines a collection of primary keys for items in a table, stored asKeysAndAttributes
, and used for the batchGetItem() operation (such asDynamoDbEnhancedClient.batchGetItem(BatchGetItemEnhancedRequest)
) as part of aBatchGetItemEnhancedRequest
.A valid request object should contain one or more primary keys.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ReadBatch.Builder<T>
A builder that is used to create a request with the desired parameters.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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, seeKeysAndAttributes
, in this read batch.String
tableName()
Returns the table name associated with this batch.
-
-
-
Method Detail
-
builder
public static <T> ReadBatch.Builder<T> builder(Class<? extends T> itemClass)
Creates a newly initialized builder for a read batch.- Type Parameters:
T
- The type of the modelled object, corresponding to itemClass- Parameters:
itemClass
- the class that items in this table map to- Returns:
- a ReadBatch builder
-
tableName
public String tableName()
Returns the table name associated with this batch.
-
keysAndAttributes
public KeysAndAttributes keysAndAttributes()
Returns the collection of keys and attributes, seeKeysAndAttributes
, in this read batch.
-
-