Class Mementos
- java.lang.Object
-
- org.trellisldp.ext.cassandra.query.CassandraQuery
-
- org.trellisldp.ext.cassandra.query.rdf.Mementos
-
@ApplicationScoped public class Mementos extends CassandraQuery
A query to retrieve a list of the Mementos of a resource.
-
-
Field Summary
-
Fields inherited from class org.trellisldp.ext.cassandra.query.CassandraQuery
consistency, preparedStmtAsync, queryString, readBinaryWorkers, session, writeWorkers
-
-
Constructor Summary
Constructors Constructor Description Mementos()For use with RESTeasy and CDI proxies.Mementos(CqlSession session, ConsistencyLevel consistency)Create a query that retrieves a list of mementos.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletionStage<AsyncResultSet>execute(IRI id)-
Methods inherited from class org.trellisldp.ext.cassandra.query.CassandraQuery
executeSyncRead, preparedStatementAsync
-
-
-
-
Constructor Detail
-
Mementos
public Mementos()
For use with RESTeasy and CDI proxies.- API Note:
- This construtor is used by CDI runtimes that require a public, no-argument constructor. It should not be invoked directly in user code.
-
Mementos
@Inject public Mementos(CqlSession session, @MutableReadConsistency ConsistencyLevel consistency)
Create a query that retrieves a list of mementos.- Parameters:
session- the cassandra sessionconsistency- the consistency level
-
-
Method Detail
-
execute
public CompletionStage<AsyncResultSet> execute(IRI id)
- Parameters:
id- theIRIof the resource the Mementos of which are to be cataloged- Returns:
- A
AsyncResultSetwith the modified-dates of any Mementos for this resource. There will be at least one (the most recent one).
-
-