public void createSimTradeTable() {

    CreateTableRequest createTableRequest = mapper.generateCreateTableRequest(SimDetails.class);
    // Table provision throughput is still required since it cannot be
    // specified in your POJO
    createTableRequest.setProvisionedThroughput(new ProvisionedThroughput(5L, 5L));
    // Fire off the CreateTableRequest using the low-level client
    amazonDynamoDBClient.createTable(createTableRequest);
  }
Esempio n. 2
0
  @Before
  public void setUp() throws Exception {
    client = new AlternatorDBClientV2();
    mapper = new DynamoDBMapper(client);
    db = new AlternatorDB().start();

    CreateTableRequest request = mapper.generateCreateTableRequest(Flight.class);
    request.setProvisionedThroughput(new ProvisionedThroughput(10L, 5L));

    client.createTable(request);
  }