@ApplicationScoped public class ImmutableInsert extends CassandraQuery
consistency, queryString, readBinaryWorkers, session, writeWorkers| Constructor and Description |
|---|
ImmutableInsert()
For use with RESTeasy and CDI proxies.
|
ImmutableInsert(com.datastax.oss.driver.api.core.CqlSession session,
com.datastax.oss.driver.api.core.ConsistencyLevel consistency)
Create a query to insert immutable data into Cassandra.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.concurrent.CompletionStage<java.lang.Void> |
execute(org.apache.commons.rdf.api.IRI id,
org.apache.commons.rdf.api.Dataset data,
java.time.Instant time) |
executeSyncRead, preparedStatement, preparedStatementAsyncpublic ImmutableInsert()
@Inject
public ImmutableInsert(com.datastax.oss.driver.api.core.CqlSession session,
@MutableWriteConsistency
com.datastax.oss.driver.api.core.ConsistencyLevel consistency)
session - the cassandra sessionconsistency - the consistency levelpublic java.util.concurrent.CompletionStage<java.lang.Void> execute(org.apache.commons.rdf.api.IRI id,
org.apache.commons.rdf.api.Dataset data,
java.time.Instant time)
id - the IRI of the resource, immutable data for which is to be inserteddata - the RDF to be insertedtime - the time at which this RDF is to be recorded as inserted