Class CqlExecutorImpl
- java.lang.Object
-
- com.palantir.atlasdb.keyvalue.cassandra.CqlExecutorImpl
-
- All Implemented Interfaces:
CqlExecutor
public class CqlExecutorImpl extends Object implements CqlExecutor
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
CqlExecutorImpl.QueryExecutor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<CellWithTimestamp>
getTimestamps(com.palantir.atlasdb.keyvalue.api.TableReference tableRef, List<byte[]> rowsAscending, int limit, ExecutorService executor, Integer executorThreads)
Returns a list ofCellWithTimestamp
s from cells within the givenrows
, starting at the givenstartRowInclusive
, potentially spanning across multiple rows.List<CellWithTimestamp>
getTimestampsWithinRow(com.palantir.atlasdb.keyvalue.api.TableReference tableRef, byte[] row, byte[] startColumnInclusive, long startTimestampExclusive, int limit)
Returns a list ofCellWithTimestamp
s within the givenrow
, starting at the (column, timestamp) pair represented by (startColumnInclusive
,startTimestampExclusive
).
-
-
-
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 ofCellWithTimestamp
s from cells within the givenrows
, starting at the givenstartRowInclusive
, potentially spanning across multiple rows. Will only returnlimit
values, so may not return cells from all of the rows provided.- Specified by:
getTimestamps
in interfaceCqlExecutor
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 ofCellWithTimestamp
s within the givenrow
, starting at the (column, timestamp) pair represented by (startColumnInclusive
,startTimestampExclusive
).- Specified by:
getTimestampsWithinRow
in interfaceCqlExecutor
-
-