private void newMutations() { Mutation put = this.hasOnDupKey ? new Increment(this.key) : new Put(this.key); Delete delete = new Delete(this.key); if (isWALDisabled()) { put.setDurability(Durability.SKIP_WAL); delete.setDurability(Durability.SKIP_WAL); } this.setValues = put; this.unsetValues = delete; }
@Override public void delete() { newMutations(); Delete delete = new Delete(key); if (families.isEmpty()) { delete.addFamily(SchemaUtil.getEmptyColumnFamily(PTableImpl.this), ts); } else { for (PColumnFamily colFamily : families) { delete.addFamily(colFamily.getName().getBytes(), ts); } } deleteRow = delete; if (isWALDisabled()) { deleteRow.setDurability(Durability.SKIP_WAL); } }
if (isWALDisabled()) { put.setDurability(Durability.SKIP_WAL);
private void newMutations() { Mutation put = this.hasOnDupKey ? new Increment(this.key) : new Put(this.key); Delete delete = new Delete(this.key); if (isWALDisabled()) { put.setDurability(Durability.SKIP_WAL); delete.setDurability(Durability.SKIP_WAL); } this.setValues = put; this.unsetValues = delete; }
private void newMutations() { Mutation put = this.hasOnDupKey ? new Increment(this.key) : new Put(this.key); Delete delete = new Delete(this.key); if (isWALDisabled()) { put.setDurability(Durability.SKIP_WAL); delete.setDurability(Durability.SKIP_WAL); } this.setValues = put; this.unsetValues = delete; }
@Override public void delete() { newMutations(); Delete delete = new Delete(key); if (families.isEmpty()) { delete.addFamily(SchemaUtil.getEmptyColumnFamily(PTableImpl.this), ts); } else { for (PColumnFamily colFamily : families) { delete.addFamily(colFamily.getName().getBytes(), ts); } } deleteRow = delete; if (isWALDisabled()) { deleteRow.setDurability(Durability.SKIP_WAL); } }
@Override public void delete() { newMutations(); Delete delete = new Delete(key); if (families.isEmpty()) { delete.addFamily(SchemaUtil.getEmptyColumnFamily(PTableImpl.this), ts); } else { for (PColumnFamily colFamily : families) { delete.addFamily(colFamily.getName().getBytes(), ts); } } deleteRow = delete; if (isWALDisabled()) { deleteRow.setDurability(Durability.SKIP_WAL); } }
if (isWALDisabled()) { put.setDurability(Durability.SKIP_WAL);
if (isWALDisabled()) { put.setDurability(Durability.SKIP_WAL);