/** * Below method will be used to check row got deleted * * @param rowId * @return is present in deleted row */ public boolean containsDeletedRow(int rowId) { if (null != currentDeleteDeltaVo) { return currentDeleteDeltaVo.containsRow(rowId); } return false; }
/** * Mark the filtered rows in columnar batch. These rows will not be added to vector batches later. * @param columnarBatch * @param startRow * @param size * @param vectorOffset */ public int markFilteredRows(CarbonColumnarBatch columnarBatch, int startRow, int size, int vectorOffset) { int rowsFiltered = 0; if (currentDeleteDeltaVo != null) { int len = startRow + size; for (int i = startRow; i < len; i++) { int rowId = pageFilteredRowId != null ? pageFilteredRowId[pageCounter][i] : i; if (currentDeleteDeltaVo.containsRow(rowId)) { columnarBatch.markFiltered(vectorOffset); rowsFiltered++; } vectorOffset++; } } return rowsFiltered; }