Class CrossEntityResultWithPagination
java.lang.Object
dev.hogwai.dynamodb.simplified.entity.CrossEntityResultWithPagination
Holds a single page of cross-entity query results along with pagination metadata.
Contains the CrossEntityResult for the current page and the
lastEvaluatedKey that can be passed to a subsequent request to
retrieve the next page of results. If lastEvaluatedKey is
null or empty, there are no more pages to fetch.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the last-evaluated key that can be used as theexclusiveStartKeyin a subsequent request to fetch the next page.@NonNull CrossEntityResultReturns the cross-entity results for the current page.booleanhasMore()Returns whether there are more pages of results available.
-
Method Details
-
getResult
Returns the cross-entity results for the current page.- Returns:
- the result (never
null)
-
getLastEvaluatedKey
public @Nullable Map<String, software.amazon.awssdk.services.dynamodb.model.AttributeValue> getLastEvaluatedKey()Returns the last-evaluated key that can be used as theexclusiveStartKeyin a subsequent request to fetch the next page. A return value ofnullor an empty map indicates no more pages.- Returns:
- the last-evaluated key, or
null/ empty if this is the last page
-
hasMore
public boolean hasMore()Returns whether there are more pages of results available.- Returns:
trueif a subsequent request will yield more items,falseotherwise
-