private Map<RangeRequest, TokenBackedBasicResultsPage<RowResult<Value>, byte[]>> getFirstPagesFromDb( TableReference tableRef, List<RangeRequest> requests, long timestamp, String query, Object[] args) { SortedSetMultimap<Integer, byte[]> rowsForBatches = getRowsForBatches(connectionSupplier, query, args); Map<Cell, Value> cells = kvs.getRows(tableRef, rowsForBatches.values(), ColumnSelection.all(), timestamp); NavigableMap<byte[], SortedMap<byte[], Value>> cellsByRow = Cells.breakCellsUpByRow(cells); log.info("getRange actualRowsReturned: {}", cellsByRow.size()); return breakUpByBatch(requests, rowsForBatches, cellsByRow); }
private Map<RangeRequest, TokenBackedBasicResultsPage<RowResult<Value>, byte[]>> getFirstPagesFromDb( TableReference tableRef, List<RangeRequest> requests, long timestamp, String query, Object[] args) { SortedSetMultimap<Integer, byte[]> rowsForBatches = getRowsForBatches(connectionSupplier, query, args); Map<Cell, Value> cells = kvs.getRows(tableRef, rowsForBatches.values(), ColumnSelection.all(), timestamp); NavigableMap<byte[], SortedMap<byte[], Value>> cellsByRow = Cells.breakCellsUpByRow(cells); log.info("getRange actualRowsReturned: {}", cellsByRow.size()); return breakUpByBatch(requests, rowsForBatches, cellsByRow); }