public List<ByteBuffer> serializedValues(Iterator<Cell> cells) { assert isMultiCell; List<ByteBuffer> bbs = new ArrayList<ByteBuffer>(); while (cells.hasNext()) bbs.add(cells.next().value()); return bbs; }
public List<ByteBuffer> serializedValues(Iterator<Cell> cells) { assert isMultiCell; List<ByteBuffer> bbs = new ArrayList<ByteBuffer>(); while (cells.hasNext()) bbs.add(cells.next().value()); return bbs; }
public static boolean hasLegacyShards(Cell cell) { return contextManager.hasLegacyShards(cell.value()); } }
private static ByteBuffer cellValueAtIndex(Iterator<Cell> iter, int index) { int adv = Iterators.advance(iter, index); if (adv == index && iter.hasNext()) return iter.next().value(); else return null; }
public static boolean hasLegacyShards(Cell cell) { return contextManager.hasLegacyShards(cell.value()); } }
private static ByteBuffer cellValueAtIndex(Iterator<Cell> iter, int index) { int adv = Iterators.advance(iter, index); if (adv == index && iter.hasNext()) return iter.next().value(); else return null; }
public static boolean hasLegacyShards(Cell cell) { return contextManager.hasLegacyShards(cell.value()); } }
private static ByteBuffer cellValueAtIndex(Iterator<Cell> iter, int index) { int adv = Iterators.advance(iter, index); if (adv == index && iter.hasNext()) return iter.next().value(); else return null; }
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() ); }
public boolean isSatisfiedBy(CFMetaData metadata, DecoratedKey partitionKey, Row row) { assert value != null; // On thrift queries, even if the column expression is a "static" one, we'll have convert it as a "dynamic" // one in ThriftResultsMerger, so we always expect it to be a dynamic one. Further, we expect this is only // called when the row clustering does match the column (see ThriftFilter above). assert row.clustering().equals(makeCompactClustering(metadata, column.name.bytes)); Cell cell = row.getCell(metadata.compactValueColumn()); return cell != null && operator.isSatisfiedBy(column.type, cell.value(), value); }
public boolean isSatisfiedBy(CFMetaData metadata, DecoratedKey partitionKey, Row row) { assert value != null; // On thrift queries, even if the column expression is a "static" one, we'll have convert it as a "dynamic" // one in ThriftResultsMerger, so we always expect it to be a dynamic one. Further, we expect this is only // called when the row clustering does match the column (see ThriftFilter above). assert row.clustering().equals(makeCompactClustering(metadata, column.name.bytes)); Cell cell = row.getCell(metadata.compactValueColumn()); return cell != null && operator.isSatisfiedBy(column.type, cell.value(), value); }
public boolean isStale(Row row, ByteBuffer indexValue, int nowInSec) { if (row == null) return true; Cell cell = row.getCell(indexedColumn); return (cell == null || !cell.isLive(nowInSec) || indexedColumn.type.compare(indexValue, cell.value()) != 0); } }
public boolean isStale(Row data, ByteBuffer indexValue, int nowInSec) { Cell cell = data.getCell(indexedColumn); return cell == null || !cell.isLive(nowInSec) || indexedColumn.type.compare(indexValue, cell.value()) != 0; } }