@Override public Iterator<Entry<Cell, byte[]>> getRowsColumnRange(TableReference tableRef, Iterable<byte[]> rows, ColumnRangeSelection columnRangeSelection, int batchHint) { if (isSerializableTable(tableRef)) { throw new UnsupportedOperationException("This method does not support serializable conflict handling"); } return super.getRowsColumnRange(tableRef, rows, columnRangeSelection, batchHint); }
private void reachedEndOfRange(TableReference table, RangeRequest range) { if (!isSerializableTable(table)) { return; } setRangeEnd(table, range, PtBytes.EMPTY_BYTE_ARRAY); }
private void reachedEndOfColumnRange( TableReference table, byte[] row, BatchColumnRangeSelection columnRangeSelection) { if (!isSerializableTable(table)) { return; } setColumnRangeEnd(table, row, columnRangeSelection, PtBytes.EMPTY_BYTE_ARRAY); }
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 reachedEndOfRange(TableReference table, RangeRequest range) { if (!isSerializableTable(table)) { return; } setRangeEnd(table, range, PtBytes.EMPTY_BYTE_ARRAY); }
@Override public Iterator<Entry<Cell, byte[]>> getRowsColumnRange(TableReference tableRef, Iterable<byte[]> rows, ColumnRangeSelection columnRangeSelection, int batchHint) { if (isSerializableTable(tableRef)) { throw new UnsupportedOperationException("This method does not support serializable conflict handling"); } return super.getRowsColumnRange(tableRef, rows, columnRangeSelection, batchHint); }
private void reachedEndOfColumnRange( TableReference table, byte[] row, BatchColumnRangeSelection columnRangeSelection) { if (!isSerializableTable(table)) { return; } setColumnRangeEnd(table, row, columnRangeSelection, PtBytes.EMPTY_BYTE_ARRAY); }
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()); }