private boolean isLive(Cell cell) { return cell != null && cell.isLive(nowInSec); }
private void removeCell(Clustering clustering, Cell cell) { if (cell == null || !cell.isLive(nowInSec)) return; delete(key.getKey(), clustering, cell, opGroup, nowInSec); }
private void removeCell(Clustering clustering, Cell cell) { if (cell == null || !cell.isLive(nowInSec)) return; delete(key.getKey(), clustering, cell, opGroup, nowInSec); }
public boolean isStale(Row data, ByteBuffer indexValue, int nowInSec) { Cell cell = data.getCell(indexedColumn, CellPath.create(indexValue)); return cell == null || !cell.isLive(nowInSec); }
public void onCell(int i, Clustering clustering, Cell merged, Cell original) { if (original != null && (merged == null || !merged.isLive(nowInSec))) getBuilder(i, clustering).addCell(original); }
public boolean isStale(Row data, ByteBuffer indexValue, int nowInSec) { Cell cell = data.getCell(indexedColumn, CellPath.create(indexValue)); return cell == null || !cell.isLive(nowInSec); }
public boolean isStale(Row data, ByteBuffer indexValue, int nowInSec) { Cell cell = data.getCell(indexedColumn, CellPath.create(indexValue)); return cell == null || !cell.isLive(nowInSec); }
public void onCell(int i, Clustering clustering, Cell merged, Cell original) { if (original != null && (merged == null || !merged.isLive(nowInSec))) getBuilder(i, clustering).addCell(original); }
@Override public boolean hasLiveData(int nowInSec, boolean enforceStrictLiveness) { if (primaryKeyLivenessInfo().isLive(nowInSec)) return true; else if (enforceStrictLiveness) return false; return Iterables.any(cells(), cell -> cell.isLive(nowInSec)); }
public boolean hasLiveData(int nowInSec) { if (primaryKeyLivenessInfo().isLive(nowInSec)) return true; return Iterables.any(cells(), cell -> cell.isLive(nowInSec)); }
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; } }
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; } }
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 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); } }
@Override public boolean hasLiveData(int nowInSec, boolean enforceStrictLiveness) { if (primaryKeyLivenessInfo().isLive(nowInSec)) return true; else if (enforceStrictLiveness) return false; return Iterables.any(cells(), cell -> cell.isLive(nowInSec)); }
private void indexCell(Clustering clustering, Cell cell) { if (cell == null || !cell.isLive(nowInSec)) return; insert(key.getKey(), clustering, cell, LivenessInfo.withExpirationTime(cell.timestamp(), cell.ttl(), cell.localDeletionTime()), opGroup); }
private void indexCell(Clustering clustering, Cell cell) { if (cell == null || !cell.isLive(nowInSec)) return; insert(key.getKey(), clustering, cell, LivenessInfo.withExpirationTime(cell.timestamp(), cell.ttl(), cell.localDeletionTime()), opGroup); }
private void indexCell(Clustering clustering, Cell cell) { if (cell == null || !cell.isLive(nowInSec)) return; insert(key.getKey(), clustering, cell, LivenessInfo.withExpirationTime(cell.timestamp(), cell.ttl(), cell.localDeletionTime()), opGroup); }
public boolean isStale(Row data, ByteBuffer indexValue, int nowInSec) { ByteBuffer[] components = ((CompositeType)functions.getIndexedValueType(indexedColumn)).split(indexValue); ByteBuffer mapKey = components[0]; ByteBuffer mapValue = components[1]; ColumnDefinition columnDef = indexedColumn; Cell cell = data.getCell(columnDef, CellPath.create(mapKey)); if (cell == null || !cell.isLive(nowInSec)) return true; AbstractType<?> valueComparator = ((CollectionType)columnDef.type).valueComparator(); return valueComparator.compare(mapValue, cell.value()) != 0; } }