T
- the type that items in this table map topublic static interface ReadBatch.Builder<T>
A valid builder must define a MappedTableResource
and add at least one
GetItemEnhancedRequest
.
Modifier and Type | Method and Description |
---|---|
ReadBatch.Builder<T> |
addGetItem(Consumer<GetItemEnhancedRequest.Builder> requestConsumer)
Adds a
GetItemEnhancedRequest with a primary Key to the builder by accepting a consumer of
GetItemEnhancedRequest.Builder . |
ReadBatch.Builder<T> |
addGetItem(GetItemEnhancedRequest request)
Adds a
GetItemEnhancedRequest with a primary Key to the builder. |
ReadBatch.Builder<T> |
addGetItem(Key key)
Adds a GetItem request with a primary
Key to the builder. |
ReadBatch.Builder<T> |
addGetItem(T keyItem)
Adds a GetItem request to the builder.
|
ReadBatch |
build() |
ReadBatch.Builder<T> |
mappedTableResource(MappedTableResource<T> mappedTableResource)
Sets the mapped table resource (table) that the items in this read batch should come from.
|
ReadBatch.Builder<T> mappedTableResource(MappedTableResource<T> mappedTableResource)
mappedTableResource
- the table referenceReadBatch.Builder<T> addGetItem(GetItemEnhancedRequest request)
GetItemEnhancedRequest
with a primary Key
to the builder.request
- A GetItemEnhancedRequest
ReadBatch.Builder<T> addGetItem(Consumer<GetItemEnhancedRequest.Builder> requestConsumer)
GetItemEnhancedRequest
with a primary Key
to the builder by accepting a consumer of
GetItemEnhancedRequest.Builder
.requestConsumer
- a Consumer
of GetItemEnhancedRequest
ReadBatch.Builder<T> addGetItem(Key key)
Key
to the builder.key
- A Key
to match the record retrieved from the database.ReadBatch.Builder<T> addGetItem(T keyItem)
keyItem
- an item that will have its key fields used to match a record to retrieve from the database.ReadBatch build()
Copyright © 2021. All rights reserved.