lambdora-service/src/main/java/org/fcrepo/lambdora/service/dao/DynamoDBResourceTripleDao.java
/**
     * Perform a query against DynamoDB. The List returned is a
     * {@code com.amazonaws.services.dynamodbv2.datamodeling.PaginatedQueryList}, which loads List items on demand
     * (as List is iterated through). Be aware that List methods requiring full iteration (e.g. size()) will
     * load all list items immediately into memory.
     *
     * @param conditionExpression Key condition expression defining the query
     * @param expressionAV Map of DynamoDB Expression Attribute Values (used to populate conditionExpression)
     * @param indexName Index to run the query against
     * @param consistentRead Whether to require consistent read (only available for LocalSecondaryIndexes)
     * @return PaginatedQueryList of ResourceTriples
     * @see com.amazonaws.services.dynamodbv2.datamodeling.PaginatedQueryList
     */
Perform a query against DynamoDB. The List returned is a
com.amazonaws.services.dynamodbv2.datamodeling.PaginatedQueryList, which loads List items on demand
(as List is iterated through). Be aware that List methods requiring full iteration ) will
load all list items immediately into memory.


Perform a query against DynamoDB . The List returned is a com . amazonaws . services . dynamodbv2 . datamodeling . PaginatedQueryList which loads List items on demand ( as List is iterated through ) . Be aware that List methods requiring full iteration ) will load all list items immediately into memory .
private List<ResourceTriple> executeFindInIndex(final String conditionExpression,
                                                    final Map<String, AttributeValue> expressionAV,
                                                    final String indexName,
                                                    final boolean consistentRead) {
        final DynamoDBQueryExpression<ResourceTriple> query =
            new DynamoDBQueryExpression<ResourceTriple>()
                .withIndexName(indexName)
                .withConsistentRead(consistentRead)
                .withKeyConditionExpression(conditionExpression)
                .withExpressionAttributeValues(expressionAV);
        return mapper.query(ResourceTriple.class, query);
    }
private List < ResourceTriple > executeFindInIndex ( final String conditionExpression , final Map < String , AttributeValue > expressionAV , final String indexName , final boolean consistentRead ) { final DynamoDBQueryExpression < ResourceTriple > query = new DynamoDBQueryExpression < ResourceTriple > ( ) . withIndexName ( indexName ) . withConsistentRead ( consistentRead ) . withKeyConditionExpression ( conditionExpression ) . withExpressionAttributeValues ( expressionAV ) ; return mapper . query ( ResourceTriple . class , query ) ; }
Perform a query against DynamoDB.
Perform a query against DynamoDB .