@Override public void delete(Iterable<LatestSnapshotRow> rows) { List<byte[]> rowBytes = Persistables.persistAll(rows); Set<Cell> cells = Sets.newHashSetWithExpectedSize(rowBytes.size()); cells.addAll(Cells.cellsWithConstantColumn(rowBytes, PtBytes.toCachedBytes("i"))); t.delete(tableRef, cells); }
@Override public void delete(Iterable<ValueStreamMetadataRow> rows) { List<byte[]> rowBytes = Persistables.persistAll(rows); Set<Cell> cells = Sets.newHashSetWithExpectedSize(rowBytes.size()); cells.addAll(Cells.cellsWithConstantColumn(rowBytes, PtBytes.toCachedBytes("md"))); t.delete(tableRef, cells); }
@Override public void delete(Iterable<TodoRow> rows) { List<byte[]> rowBytes = Persistables.persistAll(rows); Set<Cell> cells = Sets.newHashSetWithExpectedSize(rowBytes.size()); cells.addAll(Cells.cellsWithConstantColumn(rowBytes, PtBytes.toCachedBytes("t"))); t.delete(tableRef, cells); }
@Override public void delete(Iterable<DataStreamValueRow> rows) { List<byte[]> rowBytes = Persistables.persistAll(rows); Set<Cell> cells = Sets.newHashSetWithExpectedSize(rowBytes.size()); cells.addAll(Cells.cellsWithConstantColumn(rowBytes, PtBytes.toCachedBytes("v"))); t.delete(tableRef, cells); }
@Override public void delete(Iterable<BlobsSerializableRow> rows) { List<byte[]> rowBytes = Persistables.persistAll(rows); Set<Cell> cells = Sets.newHashSetWithExpectedSize(rowBytes.size()); cells.addAll(Cells.cellsWithConstantColumn(rowBytes, PtBytes.toCachedBytes("d"))); t.delete(tableRef, cells); }
@Override public void delete(Iterable<UserPhotosStreamMetadataRow> rows) { List<byte[]> rowBytes = Persistables.persistAll(rows); Set<Cell> cells = Sets.newHashSetWithExpectedSize(rowBytes.size()); cells.addAll(Cells.cellsWithConstantColumn(rowBytes, PtBytes.toCachedBytes("md"))); t.delete(tableRef, cells); }
public void deleteStreamId(Iterable<KeyValueRow> rows) { byte[] col = PtBytes.toCachedBytes("s"); Set<Cell> cells = Cells.cellsWithConstantColumn(Persistables.persistAll(rows), col); t.delete(tableRef, cells); }
public void deleteId(Iterable<SweepNameToIdRow> rows) { byte[] col = PtBytes.toCachedBytes("i"); Set<Cell> cells = Cells.cellsWithConstantColumn(Persistables.persistAll(rows), col); t.delete(tableRef, cells); }
public void deleteLastClearedTimestamp(Iterable<TableClearsRow> rows) { byte[] col = PtBytes.toCachedBytes("l"); Set<Cell> cells = Cells.cellsWithConstantColumn(Persistables.persistAll(rows), col); t.delete(tableRef, cells); }
public void deleteMinimumSweptTimestamp(Iterable<SweepPriorityRow> rows) { byte[] col = PtBytes.toCachedBytes("m"); Set<Cell> cells = Cells.cellsWithConstantColumn(Persistables.persistAll(rows), col); t.delete(tableRef, cells); }
public void deleteValue(Iterable<UserPhotosStreamValueRow> rows) { byte[] col = PtBytes.toCachedBytes("v"); Set<Cell> cells = Cells.cellsWithConstantColumn(Persistables.persistAll(rows), col); t.delete(tableRef, cells); }
public void deletePhotoStreamId(Iterable<UserProfileRow> rows) { byte[] col = PtBytes.toCachedBytes("p"); Set<Cell> cells = Cells.cellsWithConstantColumn(Persistables.persistAll(rows), col); t.delete(tableRef, cells); }
public void deleteMetadata(Iterable<UserPhotosStreamMetadataRow> rows) { byte[] col = PtBytes.toCachedBytes("md"); Set<Cell> cells = Cells.cellsWithConstantColumn(Persistables.persistAll(rows), col); t.delete(tableRef, cells); }
public void deleteData(Iterable<MetadataRow> rows) { byte[] col = PtBytes.toCachedBytes("d"); Set<Cell> cells = Cells.cellsWithConstantColumn(Persistables.persistAll(rows), col); t.delete(tableRef, cells); }
@Override public void delete(Iterable<SweepPriorityRow> rows) { List<byte[]> rowBytes = Persistables.persistAll(rows); Set<Cell> cells = Sets.newHashSetWithExpectedSize(rowBytes.size() * 5); cells.addAll(Cells.cellsWithConstantColumn(rowBytes, PtBytes.toCachedBytes("d"))); cells.addAll(Cells.cellsWithConstantColumn(rowBytes, PtBytes.toCachedBytes("e"))); cells.addAll(Cells.cellsWithConstantColumn(rowBytes, PtBytes.toCachedBytes("t"))); cells.addAll(Cells.cellsWithConstantColumn(rowBytes, PtBytes.toCachedBytes("m"))); cells.addAll(Cells.cellsWithConstantColumn(rowBytes, PtBytes.toCachedBytes("w"))); t.delete(tableRef, cells); }
@Override public void delete(Iterable<StreamTestMaxMemStreamMetadataRow> rows) { List<byte[]> rowBytes = Persistables.persistAll(rows); Set<Cell> cells = Sets.newHashSetWithExpectedSize(rowBytes.size()); cells.addAll(Cells.cellsWithConstantColumn(rowBytes, PtBytes.toCachedBytes("md"))); t.delete(tableRef, cells); }
@Override public void delete(Iterable<StreamTestStreamMetadataRow> rows) { List<byte[]> rowBytes = Persistables.persistAll(rows); Set<Cell> cells = Sets.newHashSetWithExpectedSize(rowBytes.size()); cells.addAll(Cells.cellsWithConstantColumn(rowBytes, PtBytes.toCachedBytes("md"))); t.delete(tableRef, cells); }
public void deleteValue(Iterable<StreamTestStreamValueRow> rows) { byte[] col = PtBytes.toCachedBytes("v"); Set<Cell> cells = Cells.cellsWithConstantColumn(Persistables.persistAll(rows), col); t.delete(tableRef, cells); }
public void deleteStreamId(Iterable<KeyValueRow> rows) { byte[] col = PtBytes.toCachedBytes("s"); Set<Cell> cells = Cells.cellsWithConstantColumn(Persistables.persistAll(rows), col); t.delete(tableRef, cells); }
public void deleteFoo(Iterable<TwoColumnsRow> rows) { byte[] col = PtBytes.toCachedBytes("f"); Set<Cell> cells = Cells.cellsWithConstantColumn(Persistables.persistAll(rows), col); Map<Cell, byte[]> results = t.get(tableRef, cells); deleteFooToIdCondIdxRaw(results); deleteFooToIdIdxRaw(results); t.delete(tableRef, cells); }