Class GetFirstMemento
- java.lang.Object
-
- org.trellisldp.ext.cassandra.query.CassandraQuery
-
- org.trellisldp.ext.cassandra.query.rdf.GetFirstMemento
-
@ApplicationScoped public class GetFirstMemento extends CassandraQuery
Retrieve data for the first Memento 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 GetFirstMemento()For use with RESTeasy and CDI proxies.GetFirstMemento(CqlSession session, ConsistencyLevel consistency)Create an object that retrieves data for the first Memento of a resource.
-
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
-
GetFirstMemento
public GetFirstMemento()
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.
-
GetFirstMemento
@Inject public GetFirstMemento(CqlSession session, @MutableReadConsistency ConsistencyLevel consistency)
Create an object that retrieves data for the first Memento of a resource.- Parameters:
session- the cassandra sessionconsistency- the consistency level
-
-
Method Detail
-
execute
public CompletionStage<AsyncResultSet> execute(IRI id)
- Parameters:
id- theIRIof the Memento to retrieve- Returns:
- the data for the Memento
-
-