private Iterator<Cell> simpleCellsIterator(Row row) { final Iterator<Cell> cells = row.cells().iterator(); return new AbstractIterator<Cell>() { protected Cell computeNext() { if (cells.hasNext()) { Cell cell = cells.next(); if (cell.column().isSimple()) return cell; } return endOfData(); } }; } }
private Iterator<Cell> simpleCellsIterator(Row row) { final Iterator<Cell> cells = row.cells().iterator(); return new AbstractIterator<Cell>() { protected Cell computeNext() { if (cells.hasNext()) { Cell cell = cells.next(); if (cell.column().isSimple()) return cell; } return endOfData(); } }; } }
public void readCellValues(Row row, boolean indexOp) throws IOException { for(Cell cell : row.cells()) readCellValue(cell, indexOp); }
@Override public Row applyToRow(Row row) { for (Cell cell : row.cells()) { if (assumeLiveData || cell.isLive(nowInSec)) { ++cellsCounted; if (++cellsInCurrentPartition >= cellPerPartitionLimit) stopInPartition(); } } return row; }
@Override public Row applyToRow(Row row) { for (Cell cell : row.cells()) { if (assumeLiveData || cell.isLive(nowInSec)) { ++cellsCounted; if (++cellsInCurrentPartition >= cellPerPartitionLimit) stopInPartition(); } } return row; }
@Override public Row applyToRow(Row row) { for (Cell cell : row.cells()) { if (assumeLiveData || cell.isLive(nowInSec)) { ++cellsCounted; if (++cellsInCurrentPartition >= cellPerPartitionLimit) stopInPartition(); } } return row; }
private void init() { assert !isInit; Row staticRow = super.staticRow(); assert !staticRow.hasComplex(); staticCells = staticRow.cells().iterator(); updateNextToMerge(); isInit = true; }
private void init() { assert !isInit; Row staticRow = super.staticRow(); assert !staticRow.hasComplex(); staticCells = staticRow.cells().iterator(); updateNextToMerge(); isInit = true; }
private void addMarksForRow(Row row, List<CounterMark> marks) { for (Cell cell : row.cells()) { if (cell.isCounterCell()) marks.add(new CounterMark(row, cell.column(), cell.path())); } }
private void addMarksForRow(Row row, List<CounterMark> marks) { for (Cell cell : row.cells()) { if (cell.isCounterCell()) marks.add(new CounterMark(row, cell.column(), cell.path())); } }
private void addMarksForRow(Row row, List<CounterMark> marks) { for (Cell cell : row.cells()) { if (cell.isCounterCell()) marks.add(new CounterMark(row, cell.column(), cell.path())); } }
private void addMarksForRow(Row row, List<CounterMark> marks) { for (Cell cell : row.cells()) { if (cell.isCounterCell()) marks.add(new CounterMark(row, cell.column(), cell.path())); } }
private long computeTimestampForEntryDeletion(Row existingBaseRow, Row mergedBaseRow) { DeletionTime deletion = mergedBaseRow.deletion().time(); if (view.hasSamePrimaryKeyColumnsAsBaseTable()) { long timestamp = Math.max(deletion.markedForDeleteAt(), existingBaseRow.primaryKeyLivenessInfo().timestamp()); if (view.getDefinition().includeAllColumns) return timestamp; for (Cell cell : existingBaseRow.cells()) { // selected column should not contribute to view deletion, itself is already included in view row if (view.getViewColumn(cell.column()) != null) continue; // unselected column is used regardless live or dead, because we don't know if it was used for liveness. timestamp = Math.max(timestamp, cell.maxTimestamp()); } return timestamp; } // has base non-pk column in view pk Cell before = existingBaseRow.getCell(view.baseNonPKColumnsInViewPK.get(0)); assert isLive(before) : "We shouldn't have got there if the base row had no associated entry"; return deletion.deletes(before) ? deletion.markedForDeleteAt() : before.timestamp(); }
private long computeTimestampForEntryDeletion(Row existingBaseRow, Row mergedBaseRow) { DeletionTime deletion = mergedBaseRow.deletion().time(); if (view.hasSamePrimaryKeyColumnsAsBaseTable()) { long timestamp = Math.max(deletion.markedForDeleteAt(), existingBaseRow.primaryKeyLivenessInfo().timestamp()); if (view.getDefinition().includeAllColumns) return timestamp; for (Cell cell : existingBaseRow.cells()) { // selected column should not contribute to view deletion, itself is already included in view row if (view.getViewColumn(cell.column()) != null) continue; // unselected column is used regardless live or dead, because we don't know if it was used for liveness. timestamp = Math.max(timestamp, cell.maxTimestamp()); } return timestamp; } // has base non-pk column in view pk Cell before = existingBaseRow.getCell(view.baseNonPKColumnsInViewPK.get(0)); assert isLive(before) : "We shouldn't have got there if the base row had no associated entry"; return deletion.deletes(before) ? deletion.markedForDeleteAt() : before.timestamp(); }
private long computeTimestampForEntryDeletion(Row existingBaseRow, Row mergedBaseRow) { DeletionTime deletion = mergedBaseRow.deletion().time(); if (view.hasSamePrimaryKeyColumnsAsBaseTable()) { long timestamp = Math.max(deletion.markedForDeleteAt(), existingBaseRow.primaryKeyLivenessInfo().timestamp()); if (view.getDefinition().includeAllColumns) return timestamp; for (Cell cell : existingBaseRow.cells()) { // selected column should not contribute to view deletion, itself is already included in view row if (view.getViewColumn(cell.column()) != null) continue; // unselected column is used regardless live or dead, because we don't know if it was used for liveness. timestamp = Math.max(timestamp, cell.maxTimestamp()); } return timestamp; } // has base non-pk column in view pk Cell before = existingBaseRow.getCell(view.baseNonPKColumnsInViewPK.get(0)); assert isLive(before) : "We shouldn't have got there if the base row had no associated entry"; return deletion.deletes(before) ? deletion.markedForDeleteAt() : before.timestamp(); }
private LivenessInfo getPrimaryKeyIndexLiveness(Row row) { long timestamp = row.primaryKeyLivenessInfo().timestamp(); int ttl = row.primaryKeyLivenessInfo().ttl(); for (Cell cell : row.cells()) { long cellTimestamp = cell.timestamp(); if (cell.isLive(nowInSec)) { if (cellTimestamp > timestamp) { timestamp = cellTimestamp; ttl = cell.ttl(); } } } return LivenessInfo.create(timestamp, ttl, nowInSec); } };
private LivenessInfo getPrimaryKeyIndexLiveness(Row row) { long timestamp = row.primaryKeyLivenessInfo().timestamp(); int ttl = row.primaryKeyLivenessInfo().ttl(); for (Cell cell : row.cells()) { long cellTimestamp = cell.timestamp(); if (cell.isLive(nowInSec)) { if (cellTimestamp > timestamp) { timestamp = cellTimestamp; ttl = cell.ttl(); } } } return LivenessInfo.create(timestamp, ttl, nowInSec); } };
private LivenessInfo getPrimaryKeyIndexLiveness(Row row) { long timestamp = row.primaryKeyLivenessInfo().timestamp(); int ttl = row.primaryKeyLivenessInfo().ttl(); for (Cell cell : row.cells()) { long cellTimestamp = cell.timestamp(); if (cell.isLive(nowInSec)) { if (cellTimestamp > timestamp) { timestamp = cellTimestamp; ttl = cell.ttl(); } } } return LivenessInfo.create(timestamp, ttl, nowInSec); } };
for (Cell cell : row.cells())
for (Cell cell : row.cells())