@Override public void delete(Object record) throws IOException { updater.delete(writeId, record); }
@Test public void testDeleteDelegates() throws IOException { mutator.delete(RECORD); verify(mockRecordUpdater).delete(WRITE_ID, RECORD); }
fpaths.updaters[writerOffset].update(conf.getTableWriteId(), row); } else if (conf.getWriteType() == AcidUtils.Operation.DELETE) { fpaths.updaters[writerOffset].delete(conf.getTableWriteId(), row); } else { throw new HiveException("Unknown write type " + conf.getWriteType().toString());
fpaths.updaters[conf.getDpSortState().equals(DPSortState.PARTITION_BUCKET_SORTED) ? 0 :fpaths.acidFileOffset].update(conf.getTransactionId(), row); } else if (conf.getWriteType() == AcidUtils.Operation.DELETE) { fpaths.updaters[conf.getDpSortState().equals(DPSortState.PARTITION_BUCKET_SORTED) ? 0 :fpaths.acidFileOffset].delete(conf.getTransactionId(), row); } else { throw new HiveException("Unknown write type " + conf.getWriteType().toString());
for (long j = 0; j < NUM_ROWID_PER_OWID; j += 1) { if (j % 2 == 0 && j % 3 != 0) { updater.delete(currTxnId, new DummyRow(-1, j, i, bucket)); for (long j = 0; j < NUM_ROWID_PER_OWID; j += 1) { if (j % 2 != 0 && j % 3 == 0) { updater.delete(currTxnId, new DummyRow(-1, j, i, bucket)); for (long j = 0; j < NUM_ROWID_PER_OWID; j += 1) { if (j % 2 == 0 && j % 3 == 0) { updater.delete(currTxnId, new DummyRow(-1, j, i, bucket));
.maximumWriteId(4); updater = new OrcRecordUpdater(root, options); updater.delete(options.getMinimumWriteId(), new DummyRow(-1, 0, 1, bucket)); updater.delete(options.getMinimumWriteId(), new DummyRow(-1, 1, 2, bucket)); updater.delete(options.getMinimumWriteId(), new DummyRow(-1, 2, 3, bucket)); updater.close(false);
RecordUpdater updater = new OrcRecordUpdater(root, options); updater.update(100, new MyRow("update", 30, 10, bucket)); updater.delete(100, new MyRow("", 60, 40, bucket)); assertEquals(-1L, updater.getStats().getRowCount()); updater.close(false);
fpaths.updaters[fpaths.acidFileOffset].update(conf.getTransactionId(), row); } else if (conf.getWriteType() == AcidUtils.Operation.DELETE) { fpaths.updaters[fpaths.acidFileOffset].delete(conf.getTransactionId(), row); } else { throw new HiveException("Unknown write type " + conf.getWriteType().toString());