@Override public void delete(TableReference tableRef, Set<Cell> keys) { // Map deletes into writes of zero-length byte arrays (this is in // accordance with the semantics of our transaction API). Map<Cell, byte[]> values = Maps.newHashMap(); for (Cell c : keys) { values.put(c, new byte[0]); } validateWrites(tableRef, values); super.delete(tableRef, keys); }
@Override public final void delete(TableReference tableRef, Set<Cell> cells) { super.delete(tableRef, cells); addToCache(tableRef, Cells.constantValueMap(cells, PtBytes.EMPTY_BYTE_ARRAY)); }
@Override public void delete(TableReference tableRef, Set<Cell> keys) { if (isTraceEnabled()) { for (Cell key : keys) { trace( "DELETE: timestamp=%d table=%s row=%s column=%s", delegate.getTimestamp(), tableRef, toHex(key.getRowName()), toHex(key.getColumnName())); } } super.delete(tableRef, keys); }
@Override public void delete(TableReference tableRef, Set<Cell> keys) { // Map deletes into writes of zero-length byte arrays (this is in // accordance with the semantics of our transaction API). Map<Cell, byte[]> values = Maps.newHashMap(); for (Cell c : keys) { values.put(c, new byte[0]); } validateWrites(tableRef, values); super.delete(tableRef, keys); }
@Override public final void delete(TableReference tableRef, Set<Cell> cells) { super.delete(tableRef, cells); addToCache(tableRef, Cells.constantValueMap(cells, PtBytes.EMPTY_BYTE_ARRAY)); }
@Override public void delete(TableReference tableRef, Set<Cell> keys) { if (isTraceEnabled()) { for (Cell key : keys) { trace( "DELETE: timestamp=%d table=%s row=%s column=%s", delegate.getTimestamp(), tableRef, toHex(key.getRowName()), toHex(key.getColumnName())); } } super.delete(tableRef, keys); }