Package com.amazonaws.services.dynamodb.model

Examples of com.amazonaws.services.dynamodb.model.CreateTableResult


    }

    @Override
    public CreateTableResult createTable(CreateTableRequest createTableRequest) {
        this.createTableRequest = createTableRequest;
        return new CreateTableResult().withTableDescription(
                new TableDescription().withTableStatus(TableStatus.CREATING));
    }
View Full Code Here


    // Add table to map, array
    Table table = new Table(tableName, request.getKeySchema(), request.getProvisionedThroughput());
    this.tables.put(tableName, table);
    this.tableList.add(table);

    return new CreateTableResult().withTableDescription(table.getTableDescription());
  }
View Full Code Here

  }

  public com.amazonaws.services.dynamodbv2.model.CreateTableResult createTableV2(com.amazonaws.services.dynamodbv2.model.CreateTableRequest v2Request) throws LimitExceededException, InternalServerErrorException, ResourceInUseException {
        CreateTableRequest request = AlternatorDBApiVersion2Mapper.MapV2CreateTableRequestToV1(v2Request);
        try {
            CreateTableResult result = createTable(request);
            return AlternatorDBApiVersion2Mapper.MapV1CreateTableResultToV2(result);
        } catch (ResourceInUseException ex) {
            throw new com.amazonaws.services.dynamodbv2.model.ResourceInUseException(ex.getMessage());
        }
  }
View Full Code Here

TOP

Related Classes of com.amazonaws.services.dynamodb.model.CreateTableResult

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.