Class ReadBatch
java.lang.Object
software.amazon.awssdk.enhanced.dynamodb.model.ReadBatch
Defines a collection of primary keys for items in a table, stored as
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.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
A builder that is used to create a request with the desired parameters. -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> ReadBatch.Builder
<T> Creates a newly initialized builder for a read batch.boolean
int
hashCode()
Returns the collection of keys and attributes, seeKeysAndAttributes
, in this read batch.Returns the table name associated with this batch.
-
Method Details
-
builder
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
Returns the table name associated with this batch. -
keysAndAttributes
Returns the collection of keys and attributes, seeKeysAndAttributes
, in this read batch. -
equals
-
hashCode
public int hashCode()
-