public Row applyToStatic(Row row) { if (!row.isEmpty()) { remainingInPartition = limits.perPartitionCount(); lastKey = currentKey; lastRow = row; } return row; }
@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 public void applyToPartition(DecoratedKey partitionKey, Row staticRow) { cellsInCurrentPartition = 0; if (!staticRow.isEmpty()) applyToRow(staticRow); }
@Override public Row applyToStatic(Row row) { if (!row.isEmpty()) cellCount += Rows.collectStats(row, collector); return row; }
@Override public void applyToPartition(DecoratedKey partitionKey, Row staticRow) { cellsInCurrentPartition = 0; if (!staticRow.isEmpty()) applyToRow(staticRow); }
@Override public Row applyToStatic(Row row) { if (!row.isEmpty()) cellCount += Rows.collectStats(row, collector); return row; }
@Override public Row applyToStatic(Row row) { if (!row.isEmpty()) cellCount += Rows.collectStats(row, collector); return row; }
public Row applyToStatic(Row row) { if (!row.isEmpty()) { remainingInPartition = limits.perPartitionCount(); lastKey = currentKey; lastRow = row; } return row; }
/** * Returns whether the provided iterator has no data. */ public default boolean isEmpty() { return staticRow().isEmpty() && !hasNext(); } }
@Override public boolean isEmpty() { return staticRow().isEmpty() && !hasNext(); }
@Override public boolean isEmpty() { return staticRow().isEmpty() && !hasNext(); }
public boolean isEmpty() { return staticRow().isEmpty() && !hasRows(); } };
public boolean isEmpty() { Holder holder = holder(); return holder.deletionInfo.isLive() && BTree.isEmpty(holder.tree) && holder.staticRow.isEmpty(); }
public boolean isEmpty() { Holder holder = holder(); return holder.deletionInfo.isLive() && BTree.isEmpty(holder.tree) && holder.staticRow.isEmpty(); }
public static EncodingStats collect(Row staticRow, Iterator<Row> rows, DeletionInfo deletionInfo) { Collector collector = new Collector(); deletionInfo.collectStats(collector); if (!staticRow.isEmpty()) Rows.collectStats(staticRow, collector); while (rows.hasNext()) Rows.collectStats(rows.next(), collector); return collector.get(); } }
/** * Returns whether this iterator has no data (including no deletion data). */ public default boolean isEmpty() { return partitionLevelDeletion().isLive() && staticRow().isEmpty() && !hasNext(); } }
public Row getRow(Clustering clustering) { Row row = searchIterator(ColumnFilter.selection(columns()), false).next(clustering); // Note that for statics, this will never return null, this will return an empty row. However, // it's more consistent for this method to return null if we don't really have a static row. return row == null || (clustering == Clustering.STATIC_CLUSTERING && row.isEmpty()) ? null : row; }
@Override public boolean isEmpty() { return staticRow().isEmpty() && partitionLevelDeletion().isLive() && !hasNext(); } }
public Row getRow(Clustering clustering) { Row row = searchIterator(ColumnFilter.selection(columns()), false).next(clustering); // Note that for statics, this will never return null, this will return an empty row. However, // it's more consistent for this method to return null if we don't really have a static row. return row == null || (clustering == Clustering.STATIC_CLUSTERING && row.isEmpty()) ? null : row; }
private Row staticRow(Holder current, ColumnFilter columns, boolean setActiveDeletionToRow) { DeletionTime partitionDeletion = current.deletionInfo.getPartitionDeletion(); if (columns.fetchedColumns().statics.isEmpty() || (current.staticRow.isEmpty() && partitionDeletion.isLive())) return Rows.EMPTY_STATIC_ROW; Row row = current.staticRow.filter(columns, partitionDeletion, setActiveDeletionToRow, metadata); return row == null ? Rows.EMPTY_STATIC_ROW : row; }