lambdora-service/src/main/java/org/fcrepo/lambdora/service/dao/DynamoDBResourceTripleDao.java
/**
     * Get List of triples based on the resource name and RDF predicate. 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.
     * <P>
     * This is a strongly consistent read request.
     *
     * @param resourceName resource name
     * @param rdfPredicate predicate
     * @see com.amazonaws.services.dynamodbv2.datamodeling.PaginatedQueryList
     */
Get List of triples based on the resource name and RDF predicate. 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.

This is a strongly consistent read request.

@param resourceName resource name
@param rdfPredicate predicate
@see com.amazonaws.services.dynamodbv2.datamodeling.PaginatedQueryList
Get List of triples based on the resource name and RDF predicate . 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 . This is a strongly consistent read request . @param resourceName resource name @param rdfPredicate predicate @see com . amazonaws . services . dynamodbv2 . datamodeling . PaginatedQueryList
@Override
    public List<ResourceTriple> findByResourceNameAndPredicate(final String resourceName,
                                                               final String rdfPredicate) {
        final Map<String, AttributeValue> expressionAV = new HashMap<>();
        expressionAV.put(":expVal1", new AttributeValue().withS(resourceName));
        expressionAV.put(":expVal2", new AttributeValue().withS(rdfPredicate));
        final String condition = "resource_name = :expVal1 AND rdf_predicate = :expVal2";
        return executeFindInIndex(condition, expressionAV, PREDICATE_INDEX, true);
    }
@ Override public List < ResourceTriple > findByResourceNameAndPredicate ( final String resourceName , final String rdfPredicate ) { final Map < String , AttributeValue > expressionAV = new HashMap < > ( ) ; expressionAV . put ( ":expVal1" , new AttributeValue ( ) . withS ( resourceName ) ) ; expressionAV . put ( ":expVal2" , new AttributeValue ( ) . withS ( rdfPredicate ) ) ; final String condition = "resource_name = :expVal1 AND rdf_predicate = :expVal2" ; return executeFindInIndex ( condition , expressionAV , PREDICATE_INDEX , true ) ; }
Get List of triples based on the resource name and RDF predicate.
Get List of triples based on the resource name and RDF predicate .