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;
}
Aggregations