All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.scalar.db.storage.dynamo.request.PaginatedRequestResponse Maven / Gradle / Ivy

Go to download

A universal transaction manager that achieves database-agnostic transactions and distributed transactions that span multiple databases

There is a newer version: 3.14.0
Show newest version
package com.scalar.db.storage.dynamo.request;

import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.util.List;
import java.util.Map;
import software.amazon.awssdk.services.dynamodb.model.AttributeValue;

public class PaginatedRequestResponse {

  private final List> items;
  private final boolean hasLastEvaluatedKey;
  private final Map lastEvaluatedKey;

  @SuppressFBWarnings("EI_EXPOSE_REP2")
  public PaginatedRequestResponse(
      List> items,
      boolean hasLastEvaluatedKey,
      Map lastEvaluatedKey) {
    this.items = items;
    this.hasLastEvaluatedKey = hasLastEvaluatedKey;
    this.lastEvaluatedKey = lastEvaluatedKey;
  }

  @SuppressFBWarnings("EI_EXPOSE_REP")
  public List> items() {
    return items;
  }

  @SuppressFBWarnings("EI_EXPOSE_REP")
  public Map lastEvaluatedKey() {
    return lastEvaluatedKey;
  }

  public boolean hasLastEvaluatedKey() {
    return hasLastEvaluatedKey;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy