private void markCellsRead(TableReference table, Set<Cell> searched, Map<Cell, byte[]> result) { if (!isSerializableTable(table)) { return; } getReadsForTable(table).putAll(transformGetsForTesting(result)); Set<Cell> cellsForTable = cellsRead.computeIfAbsent(table, unused -> Sets.newConcurrentHashSet()); cellsForTable.addAll(searched); }
private void markRowColumnRangeRead( TableReference table, byte[] row, BatchColumnRangeSelection range, List<Entry<Cell, byte[]>> result) { if (!isSerializableTable(table)) { return; } ConcurrentNavigableMap<Cell, byte[]> reads = getReadsForTable(table); Map<Cell, byte[]> map = Maps2.fromEntries(result); reads.putAll(transformGetsForTesting(map)); setColumnRangeEnd(table, row, range, Iterables.getLast(result).getKey().getColumnName()); }
private void markRowsRead( TableReference table, Iterable<byte[]> rows, ColumnSelection cols, Iterable<RowResult<byte[]>> result) { if (!isSerializableTable(table)) { return; } ConcurrentNavigableMap<Cell, byte[]> reads = getReadsForTable(table); for (RowResult<byte[]> row : result) { Map<Cell, byte[]> map = Maps2.fromEntries(row.getCells()); reads.putAll(transformGetsForTesting(map)); } Set<RowRead> rowReads = rowsRead.computeIfAbsent(table, unused -> Sets.newConcurrentHashSet()); rowReads.add(new RowRead(rows, cols)); }
private void markRangeRead(TableReference table, RangeRequest range, List<RowResult<byte[]>> result) { if (!isSerializableTable(table)) { return; } ConcurrentNavigableMap<Cell, byte[]> reads = getReadsForTable(table); for (RowResult<byte[]> row : result) { Map<Cell, byte[]> map = Maps2.fromEntries(row.getCells()); map = transformGetsForTesting(map); reads.putAll(map); } setRangeEnd(table, range, Iterables.getLast(result).getRowName()); }
private void markCellsRead(TableReference table, Set<Cell> searched, Map<Cell, byte[]> result) { if (!isSerializableTable(table)) { return; } getReadsForTable(table).putAll(transformGetsForTesting(result)); Set<Cell> cellsForTable = cellsRead.computeIfAbsent(table, unused -> Sets.newConcurrentHashSet()); cellsForTable.addAll(searched); }
private void markRowColumnRangeRead( TableReference table, byte[] row, BatchColumnRangeSelection range, List<Entry<Cell, byte[]>> result) { if (!isSerializableTable(table)) { return; } ConcurrentNavigableMap<Cell, byte[]> reads = getReadsForTable(table); Map<Cell, byte[]> map = Maps2.fromEntries(result); reads.putAll(transformGetsForTesting(map)); setColumnRangeEnd(table, row, range, Iterables.getLast(result).getKey().getColumnName()); }
private void markRowsRead( TableReference table, Iterable<byte[]> rows, ColumnSelection cols, Iterable<RowResult<byte[]>> result) { if (!isSerializableTable(table)) { return; } ConcurrentNavigableMap<Cell, byte[]> reads = getReadsForTable(table); for (RowResult<byte[]> row : result) { Map<Cell, byte[]> map = Maps2.fromEntries(row.getCells()); reads.putAll(transformGetsForTesting(map)); } Set<RowRead> rowReads = rowsRead.computeIfAbsent(table, unused -> Sets.newConcurrentHashSet()); rowReads.add(new RowRead(rows, cols)); }
private void markRangeRead(TableReference table, RangeRequest range, List<RowResult<byte[]>> result) { if (!isSerializableTable(table)) { return; } ConcurrentNavigableMap<Cell, byte[]> reads = getReadsForTable(table); for (RowResult<byte[]> row : result) { Map<Cell, byte[]> map = Maps2.fromEntries(row.getCells()); map = transformGetsForTesting(map); reads.putAll(map); } setRangeEnd(table, range, Iterables.getLast(result).getRowName()); }