Class AsyncGetItemBuilder<T>
java.lang.Object
dev.hogwai.dynamodb.simplified.builder.base.AbstractGetItemBuilder<T, AsyncGetItemBuilder<T>>
dev.hogwai.dynamodb.simplified.async.AsyncGetItemBuilder<T>
- Type Parameters:
T- the item type
Async fluent builder for getting an item by key from a DynamoDB table or index.
Supports optional projection expressions and consistent read settings.
-
Field Summary
Fields inherited from class AbstractGetItemBuilder
consistentRead, partitionKey, projectionExpression, sortKey -
Method Summary
Modifier and TypeMethodDescription@NonNull CompletableFuture<Optional<T>> execute()Executes the get operation and returns the item, if found.protected AsyncGetItemBuilder<T> self()Returnsthistyped asSfor fluent chaining.protected @NonNull StringReturns the DynamoDB table name.Methods inherited from class AbstractGetItemBuilder
buildEnhancedRequest, buildKeyMap, buildLowLevelRequest, consistentRead, project, project
-
Method Details
-
self
Description copied from class:AbstractGetItemBuilderReturnsthistyped asSfor fluent chaining.- Specified by:
selfin classAbstractGetItemBuilder<T, AsyncGetItemBuilder<T>>- Returns:
- this builder
-
tableName
Description copied from class:AbstractGetItemBuilderReturns the DynamoDB table name.- Specified by:
tableNamein classAbstractGetItemBuilder<T, AsyncGetItemBuilder<T>>- Returns:
- the DynamoDB table name
-
execute
Executes the get operation and returns the item, if found.- Returns:
- a
CompletableFuturecontaining anOptionalwith the item, or empty if no item exists with the specified key
-