Class AsyncIndex<T>
java.lang.Object
dev.hogwai.dynamodb.simplified.async.AsyncIndex<T>
- Type Parameters:
T- the item type
Typed wrapper for an async DynamoDB secondary index (GSI or LSI).
Obtained via AsyncTable.index(String). Provides query and scan
builders scoped to this index.
-
Method Summary
Modifier and TypeMethodDescription@NonNull software.amazon.awssdk.enhanced.dynamodb.DynamoDbAsyncIndex<T> Returns the underlyingDynamoDbAsyncIndex.@NonNull StringReturns the name of this index.@NonNull AsyncQueryBuilder<T> query()Starts building an async query operation on this index.@NonNull AsyncScanBuilder<T> scan()Starts building an async scan operation on this index.@NonNull StringReturns the name of the table this index belongs to.
-
Method Details
-
getRawIndex
Returns the underlyingDynamoDbAsyncIndex.- Returns:
- the raw async index
-
indexName
-
tableName
Returns the name of the table this index belongs to.- Returns:
- the table name
-
query
Starts building an async query operation on this index.- Returns:
- an
AsyncQueryBuilderfor configuring and executing the query
-
scan
Starts building an async scan operation on this index.- Returns:
- an
AsyncScanBuilderfor configuring and executing the scan
-