private Map<Cell, Value> getRowsForSpecificColumns(final TableReference tableRef, final Iterable<byte[]> rows, ColumnSelection selection, final long startTs) { Preconditions.checkArgument(!selection.allColumnsSelected(), "Must select specific columns"); Collection<byte[]> selectedColumns = selection.getSelectedColumns(); Set<Cell> cells = Sets.newHashSetWithExpectedSize(selectedColumns.size() * Iterables.size(rows)); for (byte[] row : rows) { for (byte[] col : selectedColumns) { cells.add(Cell.create(row, col)); } } StartTsResultsCollector collector = new StartTsResultsCollector(metricsManager, startTs); cellLoader.loadWithTs("getRows", tableRef, cells, startTs, false, collector, readConsistency); return collector.getCollectedResults(); }
StartTsResultsCollector collector = new StartTsResultsCollector(metricsManager, ts); cellLoader.loadWithTs("get", tableRef, cellsByTs.get(ts), ts, false, collector, readConsistency); builder.putAll(collector.getCollectedResults());
private Map<Cell, Value> getRowsForSpecificColumns(final TableReference tableRef, final Iterable<byte[]> rows, ColumnSelection selection, final long startTs) { Preconditions.checkArgument(!selection.allColumnsSelected(), "Must select specific columns"); Collection<byte[]> selectedColumns = selection.getSelectedColumns(); Set<Cell> cells = Sets.newHashSetWithExpectedSize(selectedColumns.size() * Iterables.size(rows)); for (byte[] row : rows) { for (byte[] col : selectedColumns) { cells.add(Cell.create(row, col)); } } StartTsResultsCollector collector = new StartTsResultsCollector(metricsManager, startTs); cellLoader.loadWithTs("getRows", tableRef, cells, startTs, false, collector, readConsistency); return collector.getCollectedResults(); }
StartTsResultsCollector collector = new StartTsResultsCollector(metricsManager, ts); cellLoader.loadWithTs("get", tableRef, cellsByTs.get(ts), ts, false, collector, readConsistency); builder.putAll(collector.getCollectedResults());
private Map<Cell, Value> get(String kvsMethodName, TableReference tableRef, Set<Cell> cells, long maxTimestampExclusive) { StartTsResultsCollector collector = new StartTsResultsCollector(metricsManager, maxTimestampExclusive); cellLoader.loadWithTs(kvsMethodName, tableRef, cells, maxTimestampExclusive, false, collector, readConsistency); return collector.getCollectedResults(); }
private Map<Cell, Value> get(String kvsMethodName, TableReference tableRef, Set<Cell> cells, long maxTimestampExclusive) { StartTsResultsCollector collector = new StartTsResultsCollector(metricsManager, maxTimestampExclusive); cellLoader.loadWithTs(kvsMethodName, tableRef, cells, maxTimestampExclusive, false, collector, readConsistency); return collector.getCollectedResults(); }