private Row consumeNextRow() { Row row = nextRow; nextRow = null; if (!removeShadowedData) return row.filter(selection, metadata()); DeletionTime activeDeletion = openRange == null ? partitionLevelDeletion() : openRange.deletionTime(); return row.filter(selection, activeDeletion, false, metadata()); }
private Row consumeNextRow() { Row row = nextRow; nextRow = null; if (!removeShadowedData) return row.filter(selection, metadata()); DeletionTime activeDeletion = openRange == null ? partitionLevelDeletion() : openRange.deletionTime(); return row.filter(selection, activeDeletion, false, metadata()); }
private Row consumeNextRow() { Row row = nextRow; nextRow = null; if (!removeShadowedData) return row.filter(selection, metadata()); DeletionTime activeDeletion = openRange == null ? partitionLevelDeletion() : openRange.deletionTime(); return row.filter(selection, activeDeletion, false, metadata()); }
private Row consumeNextRow() { Row row = nextRow; nextRow = null; if (!removeShadowedData) return row.filter(selection, metadata()); DeletionTime activeDeletion = openRange == null ? partitionLevelDeletion() : openRange.deletionTime(); return row.filter(selection, activeDeletion, false, metadata()); }
protected Row garbageFilterRow(Row dataRow, Row tombRow) { if (cellLevelGC) { return Rows.removeShadowedCells(dataRow, tombRow, activeDeletionTime, nowInSec); } else { DeletionTime deletion = Ordering.natural().max(tombRow.deletion().time(), activeDeletionTime); return dataRow.filter(cf, deletion, false, metadata); } }
protected Row garbageFilterRow(Row dataRow, Row tombRow) { if (cellLevelGC) { return Rows.removeShadowedCells(dataRow, tombRow, activeDeletionTime, nowInSec); } else { DeletionTime deletion = Ordering.natural().max(tombRow.deletion().time(), activeDeletionTime); return dataRow.filter(cf, deletion, false, metadata); } }
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; }
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; }
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; }
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; }
protected Row garbageFilterRow(Row dataRow, Row tombRow) { if (cellLevelGC) { return Rows.removeShadowedCells(dataRow, tombRow, activeDeletionTime, nowInSec); } else { DeletionTime deletion = Ordering.natural().max(tombRow.deletion().time(), activeDeletionTime); return dataRow.filter(cf, deletion, false, metadata); } }
public Row next(Clustering clustering) { if (clustering == Clustering.STATIC_CLUSTERING) return staticRow(current, columns, true); Row row = rawIter.next(clustering); RangeTombstone rt = current.deletionInfo.rangeCovering(clustering); // A search iterator only return a row, so it doesn't allow to directly account for deletion that should apply to to row // (the partition deletion or the deletion of a range tombstone that covers it). So if needs be, reuse the row deletion // to carry the proper deletion on the row. DeletionTime activeDeletion = partitionDeletion; if (rt != null && rt.deletionTime().supersedes(activeDeletion)) activeDeletion = rt.deletionTime(); if (row == null) return activeDeletion.isLive() ? null : BTreeRow.emptyDeletedRow(clustering, Row.Deletion.regular(activeDeletion)); return row.filter(columns, activeDeletion, true, metadata); } };
public Row next(Clustering clustering) { if (clustering == Clustering.STATIC_CLUSTERING) return staticRow(current, columns, true); Row row = rawIter.next(clustering); RangeTombstone rt = current.deletionInfo.rangeCovering(clustering); // A search iterator only return a row, so it doesn't allow to directly account for deletion that should apply to to row // (the partition deletion or the deletion of a range tombstone that covers it). So if needs be, reuse the row deletion // to carry the proper deletion on the row. DeletionTime activeDeletion = partitionDeletion; if (rt != null && rt.deletionTime().supersedes(activeDeletion)) activeDeletion = rt.deletionTime(); if (row == null) return activeDeletion.isLive() ? null : BTreeRow.emptyDeletedRow(clustering, Row.Deletion.regular(activeDeletion)); return row.filter(columns, activeDeletion, true, metadata); } };
public Row next(Clustering clustering) { if (clustering == Clustering.STATIC_CLUSTERING) return staticRow(current, columns, true); Row row = rawIter.next(clustering); RangeTombstone rt = current.deletionInfo.rangeCovering(clustering); // A search iterator only return a row, so it doesn't allow to directly account for deletion that should apply to to row // (the partition deletion or the deletion of a range tombstone that covers it). So if needs be, reuse the row deletion // to carry the proper deletion on the row. DeletionTime activeDeletion = partitionDeletion; if (rt != null && rt.deletionTime().supersedes(activeDeletion)) activeDeletion = rt.deletionTime(); if (row == null) return activeDeletion.isLive() ? null : BTreeRow.emptyDeletedRow(clustering, Row.Deletion.regular(activeDeletion)); return row.filter(columns, activeDeletion, true, metadata); } };
public Row next(Clustering clustering) { if (clustering == Clustering.STATIC_CLUSTERING) return staticRow(current, columns, true); Row row = rawIter.next(clustering); RangeTombstone rt = current.deletionInfo.rangeCovering(clustering); // A search iterator only return a row, so it doesn't allow to directly account for deletion that should apply to to row // (the partition deletion or the deletion of a range tombstone that covers it). So if needs be, reuse the row deletion // to carry the proper deletion on the row. DeletionTime activeDeletion = partitionDeletion; if (rt != null && rt.deletionTime().supersedes(activeDeletion)) activeDeletion = rt.deletionTime(); if (row == null) return activeDeletion.isLive() ? null : BTreeRow.emptyDeletedRow(clustering, Row.Deletion.regular(activeDeletion)); return row.filter(columns, activeDeletion, true, metadata); } };
next = ((Row) dataNext).filter(cf, activeDeletionTime, false, metadata); else next = processDataMarker();
next = ((Row) dataNext).filter(cf, activeDeletionTime, false, metadata); else next = processDataMarker();
next = ((Row) dataNext).filter(cf, activeDeletionTime, false, metadata); else next = processDataMarker();