Java 类com.amazonaws.services.dynamodbv2.datamodeling.PaginatedQueryList 实例源码

项目:elo-api    文件:LeagueDao.java   
public List<LeagueRecord> byType(GameType gameType) {
    PaginatedQueryList<LeagueRecord> results = tableMapper.query(new DynamoDBQueryExpression<LeagueRecord>()
            .withScanIndexForward(true)
            .withLimit(100)
            .withConsistentRead(false)
            .withHashKeyValues(LeagueRecord.builder().gameType(gameType).build())
            .withIndexName("LeagueByType"));
    results.loadAllResults();
    return results;
}
项目:elo-api    文件:PlayerDao.java   
public List<PlayerRecord> lookupByLeague(String leagueId) {
    PaginatedQueryList<PlayerRecord> results = tableMapper.query(new DynamoDBQueryExpression<PlayerRecord>()
            .withScanIndexForward(true)
            .withLimit(100)
            .withConsistentRead(false)
            .withHashKeyValues(PlayerRecord.builder().leagueId(leagueId).build())
            .withIndexName("PlayerByLeague"));
    results.loadAllResults();
    return results;
}
项目:elo-api    文件:PlayerDao.java   
public List<PlayerRecord> lookupByUser(String userId) {
    PaginatedQueryList<PlayerRecord> results = tableMapper.query(new DynamoDBQueryExpression<PlayerRecord>()
            .withScanIndexForward(true)
            .withLimit(100)
            .withConsistentRead(false)
            .withHashKeyValues(PlayerRecord.builder().userId(userId).build())
            .withIndexName("LeagueByType"));
    results.loadAllResults();
    return results;
}
项目:elo-api    文件:UserDao.java   
public UserRecord byEmail(String email) {
    UserRecord lookup = null;
    PaginatedQueryList<UserRecord> results = tableMapper.query(new DynamoDBQueryExpression<UserRecord>()
            .withLimit(1)
            .withConsistentRead(false)
            .withHashKeyValues(UserRecord.builder().email(email).build())
            .withIndexName("UserByEmail"));
    if (results.size() > 0) {
        lookup = results.get(0);
    }
    return lookup;
}
项目:elo-api    文件:GenericDynamoDbRangeDao.java   
public Collection<T> findByPartition(String bucketName) {
    PaginatedQueryList<T> result = this.tableMapper.query(
            new DynamoDBQueryExpression<T>().withRangeKeyCondition(tableMapper.rangeKey().name(),
                    new Condition()
                            .withComparisonOperator(ComparisonOperator.EQ)
                            .withAttributeValueList(new AttributeValue(bucketName))));
    return result;
}
项目:spring-data-dynamodb    文件:DynamoDBTemplate.java   
@Override
public <T> PaginatedQueryList<T> query(Class<T> domainClass,
        DynamoDBQueryExpression<T> queryExpression) {
    PaginatedQueryList<T> results = dynamoDBMapper.query(domainClass, queryExpression);
    maybeEmitEvent(new AfterQueryEvent<T>(results));
    return results;
}
项目:spring-data-dynamodb    文件:DynamoDBTemplate.java   
@Override
public <T> PaginatedQueryList<T> query(Class<T> clazz,
        QueryRequest queryRequest) {
    QueryResult queryResult = amazonDynamoDB.query(queryRequest);
    return new PaginatedQueryList<T>(dynamoDBMapper, clazz, amazonDynamoDB, queryRequest, queryResult,
            dynamoDBMapperConfig.getPaginationLoadingStrategy(), dynamoDBMapperConfig);
}
项目:spring-data-dynamodb    文件:AfterQueryEvent.java   
public AfterQueryEvent(PaginatedQueryList<T> source) {
    super(source);
}
项目:micro-genie    文件:DynamoMapperRepository.java   
/***
 * Query DynamoDb using the given query expression
 * @param clazz - The Java class specifying the return type
 * @param queryExpression - The dynamoDb query expression
 * @return paginatedList
 */
public <T> PaginatedQueryList<T> query(final Class<T> clazz, DynamoDBQueryExpression<T> queryExpression){
    final PaginatedQueryList<T> itemList = mapper.query(clazz, queryExpression);
    return itemList;
}
项目:spring-data-dynamodb    文件:DynamoDBOperations.java   
public <T> PaginatedQueryList<T> query(Class<T> clazz, QueryRequest queryRequest);
项目:spring-data-dynamodb    文件:DynamoDBOperations.java   
public <T> PaginatedQueryList<T> query(Class<T> domainClass,DynamoDBQueryExpression<T> queryExpression);