Class BinaryReadQuery

  • Direct Known Subclasses:
    Read, ReadRange

    public abstract class BinaryReadQuery
    extends BinaryQuery
    A query that reads binary data from Cassandra.
    • Method Detail

      • retrieve

        protected InputStream retrieve​(IRI id,
                                       BoundStatement statement)
        Parameters:
        id - an IRI for a binary
        statement - a CQL query that retrieves the chunk indexes of chunks for id
        Returns:
        An InputStream of bytes as requested. The skip method of this InputStream is guaranteed to skip as many bytes as asked.