Class CrossEntityResultWithPagination

java.lang.Object
dev.hogwai.dynamodb.simplified.entity.CrossEntityResultWithPagination

public final class CrossEntityResultWithPagination extends Object
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 Details

    • getResult

      public @NonNull CrossEntityResult 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 the exclusiveStartKey in a subsequent request to fetch the next page. A return value of null or 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:
      true if a subsequent request will yield more items, false otherwise