Class CqlExecutorImpl

    • Method Detail

      • getTimestamps

        public List<CellWithTimestamp> getTimestamps​(com.palantir.atlasdb.keyvalue.api.TableReference tableRef,
                                                     List<byte[]> rowsAscending,
                                                     int limit,
                                                     ExecutorService executor,
                                                     Integer executorThreads)
        Description copied from interface: CqlExecutor
        Returns a list of CellWithTimestamps from cells within the given rows, starting at the given startRowInclusive, potentially spanning across multiple rows. Will only return limit values, so may not return cells from all of the rows provided.
        Specified by:
        getTimestamps in interface CqlExecutor
        executor - is used for parallelizing the queries to Cassandra. Each row is fetched in a separate thread.
        executorThreads - the number of threads to use when fetching rows from Cassandra.
      • getTimestampsWithinRow

        public List<CellWithTimestamp> getTimestampsWithinRow​(com.palantir.atlasdb.keyvalue.api.TableReference tableRef,
                                                              byte[] row,
                                                              byte[] startColumnInclusive,
                                                              long startTimestampExclusive,
                                                              int limit)
        Returns a list of CellWithTimestamps within the given row, starting at the (column, timestamp) pair represented by (startColumnInclusive, startTimestampExclusive).
        Specified by:
        getTimestampsWithinRow in interface CqlExecutor