@Override protected Row applyToRow(Row row) { return row.purge(DeletionPurger.PURGE_ALL, nowInSec, enforceStrictLiveness); }
@Override protected Row applyToRow(Row row) { return row.purge(DeletionPurger.PURGE_ALL, nowInSec, enforceStrictLiveness); }
@Override protected Row applyToRow(Row row) { return row.purge(DeletionPurger.PURGE_ALL, nowInSec, enforceStrictLiveness); }
@Override protected Row applyToRow(Row row) { return row.purge(DeletionPurger.PURGE_ALL, nowInSec); }
@Override protected Row applyToStatic(Row row) { updateProgress(); return row.purge(purger, nowInSec, enforceStrictLiveness); }
@Override protected Row applyToStatic(Row row) { if (row.isEmpty()) return Rows.EMPTY_STATIC_ROW; row = row.purge(DeletionPurger.PURGE_ALL, nowInSec, enforceStrictLiveness); return row == null ? Rows.EMPTY_STATIC_ROW : row; }
@Override protected Row applyToStatic(Row row) { updateProgress(); return row.purge(purger, nowInSec, enforceStrictLiveness); }
@Override protected Row applyToRow(Row row) { updateProgress(); return row.purge(purger, nowInSec, enforceStrictLiveness); }
@Override protected Row applyToStatic(Row row) { if (row.isEmpty()) return Rows.EMPTY_STATIC_ROW; row = row.purge(DeletionPurger.PURGE_ALL, nowInSec, enforceStrictLiveness); return row == null ? Rows.EMPTY_STATIC_ROW : row; }
@Override protected Row applyToRow(Row row) { updateProgress(); return row.purge(purger, nowInSec, enforceStrictLiveness); }
@Override protected Row applyToStatic(Row row) { if (row.isEmpty()) return Rows.EMPTY_STATIC_ROW; row = row.purge(DeletionPurger.PURGE_ALL, nowInSec, enforceStrictLiveness); return row == null ? Rows.EMPTY_STATIC_ROW : row; }
@Override protected Row applyToStatic(Row row) { updateProgress(); return row.purge(purger, nowInSec, enforceStrictLiveness); }
@Override protected Row applyToRow(Row row) { updateProgress(); return row.purge(purger, nowInSec); }
@Override protected Row applyToRow(Row row) { updateProgress(); return row.purge(purger, nowInSec, enforceStrictLiveness); }
@Override protected Row applyToStatic(Row row) { updateProgress(); return row.purge(purger, nowInSec); }
@Override protected Row applyToStatic(Row row) { if (row.isEmpty()) return Rows.EMPTY_STATIC_ROW; row = row.purge(DeletionPurger.PURGE_ALL, nowInSec); return row == null ? Rows.EMPTY_STATIC_ROW : row; }
/** * Whether the provided row in the provided partition satisfies this filter. * * @param metadata the table metadata. * @param partitionKey the partition key for partition to test. * @param row the row to test. * @param nowInSec the current time in seconds (to know what is live and what isn't). * @return {@code true} if {@code row} in partition {@code partitionKey} satisfies this row filter. */ public boolean isSatisfiedBy(CFMetaData metadata, DecoratedKey partitionKey, Row row, int nowInSec) { // We purge all tombstones as the expressions isSatisfiedBy methods expects it Row purged = row.purge(DeletionPurger.PURGE_ALL, nowInSec, metadata.enforceStrictLiveness()); if (purged == null) return expressions.isEmpty(); for (Expression e : expressions) { if (!e.isSatisfiedBy(metadata, partitionKey, purged)) return false; } return true; }
/** * Whether the provided row in the provided partition satisfies this filter. * * @param metadata the table metadata. * @param partitionKey the partition key for partition to test. * @param row the row to test. * @param nowInSec the current time in seconds (to know what is live and what isn't). * @return {@code true} if {@code row} in partition {@code partitionKey} satisfies this row filter. */ public boolean isSatisfiedBy(CFMetaData metadata, DecoratedKey partitionKey, Row row, int nowInSec) { // We purge all tombstones as the expressions isSatisfiedBy methods expects it Row purged = row.purge(DeletionPurger.PURGE_ALL, nowInSec, metadata.enforceStrictLiveness()); if (purged == null) return expressions.isEmpty(); for (Expression e : expressions) { if (!e.isSatisfiedBy(metadata, partitionKey, purged)) return false; } return true; }
/** * Whether the provided row in the provided partition satisfies this filter. * * @param metadata the table metadata. * @param partitionKey the partition key for partition to test. * @param row the row to test. * @param nowInSec the current time in seconds (to know what is live and what isn't). * @return {@code true} if {@code row} in partition {@code partitionKey} satisfies this row filter. */ public boolean isSatisfiedBy(CFMetaData metadata, DecoratedKey partitionKey, Row row, int nowInSec) { // We purge all tombstones as the expressions isSatisfiedBy methods expects it Row purged = row.purge(DeletionPurger.PURGE_ALL, nowInSec, metadata.enforceStrictLiveness()); if (purged == null) return expressions.isEmpty(); for (Expression e : expressions) { if (!e.isSatisfiedBy(metadata, partitionKey, purged)) return false; } return true; }
.purge(DeletionPurger.PURGE_ALL, nowInSec, metadata.enforceStrictLiveness());