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