Search in sources :

Example 11 with ColumnRangeSelection

use of com.palantir.atlasdb.keyvalue.api.ColumnRangeSelection in project atlasdb by palantir.

the class InMemoryKeyValueService method getRowsColumnRange.

@Override
public Map<byte[], RowColumnRangeIterator> getRowsColumnRange(TableReference tableRef, Iterable<byte[]> rows, BatchColumnRangeSelection batchColumnRangeSelection, long timestamp) {
    Map<byte[], RowColumnRangeIterator> result = Maps.newHashMap();
    ConcurrentSkipListMap<Key, byte[]> table = getTableMap(tableRef).entries;
    ColumnRangeSelection columnRangeSelection = new ColumnRangeSelection(batchColumnRangeSelection.getStartCol(), batchColumnRangeSelection.getEndCol());
    for (byte[] row : rows) {
        result.put(row, getColumnRangeForSingleRow(table, row, columnRangeSelection, timestamp));
    }
    return result;
}
Also used : RowColumnRangeIterator(com.palantir.atlasdb.keyvalue.api.RowColumnRangeIterator) BatchColumnRangeSelection(com.palantir.atlasdb.keyvalue.api.BatchColumnRangeSelection) ColumnRangeSelection(com.palantir.atlasdb.keyvalue.api.ColumnRangeSelection)

Aggregations

ColumnRangeSelection (com.palantir.atlasdb.keyvalue.api.ColumnRangeSelection)11 RowColumnRangeIterator (com.palantir.atlasdb.keyvalue.api.RowColumnRangeIterator)8 BatchColumnRangeSelection (com.palantir.atlasdb.keyvalue.api.BatchColumnRangeSelection)6 Test (org.junit.Test)4 Benchmark (org.openjdk.jmh.annotations.Benchmark)4 Measurement (org.openjdk.jmh.annotations.Measurement)4 Threads (org.openjdk.jmh.annotations.Threads)4 Warmup (org.openjdk.jmh.annotations.Warmup)4 ArrayList (java.util.ArrayList)2 KvDynamicColumnsTable (com.palantir.atlasdb.timelock.benchmarks.schema.generated.KvDynamicColumnsTable)1