public List<ByteBuffer> serializedValues(Iterator<Cell> cells) { List<ByteBuffer> bbs = new ArrayList<ByteBuffer>(); while (cells.hasNext()) bbs.add(cells.next().path().get(0)); return bbs; }
public List<ByteBuffer> serializedValues(Iterator<Cell> cells) { List<ByteBuffer> bbs = new ArrayList<ByteBuffer>(); while (cells.hasNext()) bbs.add(cells.next().path().get(0)); return bbs; }
public List<ByteBuffer> serializedValues(Iterator<Cell> cells) { List<ByteBuffer> bbs = new ArrayList<ByteBuffer>(); while (cells.hasNext()) bbs.add(cells.next().path().get(0)); return bbs; }
public List<ByteBuffer> serializedValues(Iterator<Cell> cells) { List<ByteBuffer> bbs = new ArrayList<ByteBuffer>(); while (cells.hasNext()) bbs.add(cells.next().path().get(0)); return bbs; }
public List<ByteBuffer> serializedValues(Iterator<Cell> cells) { assert isMultiCell; List<ByteBuffer> bbs = new ArrayList<ByteBuffer>(); while (cells.hasNext()) { Cell c = cells.next(); bbs.add(c.path().get(0)); bbs.add(c.value()); } return bbs; }
public List<ByteBuffer> serializedValues(Iterator<Cell> cells) { assert isMultiCell; List<ByteBuffer> bbs = new ArrayList<ByteBuffer>(); while (cells.hasNext()) { Cell c = cells.next(); bbs.add(c.path().get(0)); bbs.add(c.value()); } return bbs; }
public List<ByteBuffer> serializedValues(Iterator<Cell> cells) { assert isMultiCell; List<ByteBuffer> bbs = new ArrayList<ByteBuffer>(); while (cells.hasNext()) { Cell c = cells.next(); bbs.add(c.path().get(0)); bbs.add(c.value()); } return bbs; }
private ByteBuffer getIndexedValue(ByteBuffer rowKey, Clustering clustering, Cell cell) { return getIndexedValue(rowKey, clustering, cell == null ? null : cell.path(), cell == null ? null : cell.value() ); }
private ByteBuffer getIndexedValue(ByteBuffer rowKey, Clustering clustering, Cell cell) { return getIndexedValue(rowKey, clustering, cell == null ? null : cell.path(), cell == null ? null : cell.value() ); }
private Clustering buildIndexClustering(ByteBuffer rowKey, Clustering clustering, Cell cell) { return buildIndexClusteringPrefix(rowKey, clustering, cell == null ? null : cell.path()).build(); }
private Clustering buildIndexClustering(ByteBuffer rowKey, Clustering clustering, Cell cell) { return buildIndexClusteringPrefix(rowKey, clustering, cell == null ? null : cell.path()).build(); }
public ComplexColumnData withOnlyQueriedData(ColumnFilter filter) { return transformAndFilter(complexDeletion, (cell) -> filter.fetchedCellIsQueried(column, cell.path()) ? null : cell); }
private ByteBuffer getIndexedValue(ByteBuffer rowKey, Clustering clustering, Cell cell) { return getIndexedValue(rowKey, clustering, cell == null ? null : cell.path(), cell == null ? null : cell.value() ); }
private Clustering buildIndexClustering(ByteBuffer rowKey, Clustering clustering, Cell cell) { return buildIndexClusteringPrefix(rowKey, clustering, cell == null ? null : cell.path()).build(); }
public ComplexColumnData withOnlyQueriedData(ColumnFilter filter) { return transformAndFilter(complexDeletion, (cell) -> filter.fetchedCellIsQueried(column, cell.path()) ? null : cell); }
private void addMarksForRow(Row row, List<CounterMark> marks) { for (Cell cell : row.cells()) { if (cell.isCounterCell()) marks.add(new CounterMark(row, cell.column(), cell.path())); } }
private void addMarksForRow(Row row, List<CounterMark> marks) { for (Cell cell : row.cells()) { if (cell.isCounterCell()) marks.add(new CounterMark(row, cell.column(), cell.path())); } }
private void addMarksForRow(Row row, List<CounterMark> marks) { for (Cell cell : row.cells()) { if (cell.isCounterCell()) marks.add(new CounterMark(row, cell.column(), cell.path())); } }
public NativeCell(NativeAllocator allocator, OpOrder.Group writeOp, Cell cell) { this(allocator, writeOp, cell.column(), cell.timestamp(), cell.ttl(), cell.localDeletionTime(), cell.value(), cell.path()); }
private boolean isQueried(Cell cell) { // When we read, we may have some cell that have been fetched but are not selected by the user. Those cells may // have empty values as optimization (see CASSANDRA-10655) and hence they should not be included in the read-repair. // This is fine since those columns are not actually requested by the user and are only present for the sake of CQL // semantic (making sure we can always distinguish between a row that doesn't exist from one that do exist but has /// no value for the column requested by the user) and so it won't be unexpected by the user that those columns are // not repaired. ColumnDefinition column = cell.column(); ColumnFilter filter = command.columnFilter(); return column.isComplex() ? filter.fetchedCellIsQueried(column, cell.path()) : filter.fetchedColumnIsQueried(column); } };