public void delete(K row) throws AvroBaseException { delegate.delete(row); }
@Override public void delete(K row) throws AvroBaseException { delegate().delete(row); for (Index<T,K,?> index : indexes) { index.unindex(row); } }
@Override public void delete(K row) throws AvroBaseException { delegate().delete(row); index.unindex(row); }
/** * Truncate deletes everything after row (or before row). You only want to do this after * you have archived it all. * * @param row */ public void truncate(byte[] row) { final Iterable<Row<T, byte[]>> scan = getScanner(row); for (Row<T, byte[]> tRow : scan) { delegate().delete(tRow.row); } }
@Override public void delete(K row) throws AvroBaseException { Shard<T, K> shard = strategy.find(row); try { AvroBase<T, K> ab = shard.avrobase(); ab.delete(row); } finally { strategy.done(shard); } }