@Override public boolean apply(@Nullable Row row) { // The hasOnlyTombstones(x) call below ultimately calls Column.isMarkedForDelete(x) return !(row == null || row.cf == null || row.cf.isMarkedForDelete() || row.cf.hasOnlyTombstones(nowMillis)); } });
private static boolean hasLiveCells(ColumnFamily cf, long now) { return cf != null && !cf.hasOnlyTombstones(now); }
public boolean isStale(IndexedEntry entry, ColumnFamily data, long now) { return data.hasOnlyTombstones(now); }
public boolean isStale(IndexedEntry entry, ColumnFamily data, long now) { return data.hasOnlyTombstones(now); }
@Override public boolean apply(@Nullable Row row) { // The hasOnlyTombstones(x) call below ultimately calls Column.isMarkedForDelete(x) return !(row == null || row.cf == null || row.cf.isMarkedForDelete() || row.cf.hasOnlyTombstones(nowMillis)); } });
@Override public boolean apply(@Nullable Row row) { // The hasOnlyTombstones(x) call below ultimately calls Column.isMarkedForDelete(x) return !(row == null || row.cf == null || row.cf.isMarkedForDelete() || row.cf.hasOnlyTombstones(nowMillis)); } });
public int getLiveCount(ColumnFamily cf, long now) { // Note: we could use columnCounter() but we save the object allocation as it's simple enough if (countCQL3Rows) return cf.hasOnlyTombstones(now) ? 0 : 1; int count = 0; for (Cell cell : cf) { if (cell.isLive(now)) count++; } return count; }
if (!ignoreTombstonedPartitions || !data.hasOnlyTombstones(filter.timestamp)) matched++;