@ApplicationScoped public class ReadRange extends BinaryReadQuery
InputStream.consistency, queryString, readBinaryWorkers, session, writeWorkers| Constructor and Description |
|---|
ReadRange()
For use with RESTeasy and CDI proxies.
|
ReadRange(com.datastax.oss.driver.api.core.CqlSession session,
com.datastax.oss.driver.api.core.ConsistencyLevel consistency) |
| Modifier and Type | Method and Description |
|---|---|
java.io.InputStream |
execute(org.apache.commons.rdf.api.IRI id,
int first,
int last) |
retrieveexecuteSyncRead, preparedStatement, preparedStatementAsyncpublic ReadRange()
@Inject
public ReadRange(com.datastax.oss.driver.api.core.CqlSession session,
@BinaryReadConsistency
com.datastax.oss.driver.api.core.ConsistencyLevel consistency)
session - the cassandra sessionconsistency - the consistency levelpublic java.io.InputStream execute(org.apache.commons.rdf.api.IRI id,
int first,
int last)
id - the IRI of a binary to readfirst - which byte to begin reading onlast - which byte to end reading onInputStream of bytes as requested. The skip method of this InputStream is
guaranteed to skip as many bytes as asked.BinaryReadQuery.retrieve(IRI, BoundStatement)