hTable.delete(d); } catch (IOException e) { if (debug) {
public void delete(String user) throws IOException { Delete delete = new Delete(Bytes.toBytes(user)); getTableInterface().delete(delete); }
public void delete(String user, String type) throws IOException { Delete delete = new Delete(Bytes.toBytes(user)); delete.addColumn(cf, Bytes.toBytes(type)); getTableInterface().delete(delete); }
@Override protected void deleteResourceImpl(String resPath) throws IOException { HTableInterface table = getConnection().getTable(getAllInOneTableName()); try { Delete del = new Delete(Bytes.toBytes(resPath)); table.delete(del); table.flushCommits(); } finally { IOUtils.closeQuietly(table); } }
@After public void clearTable() throws Exception { List<Delete> deletions = new ArrayList<>(); for(Result r : table.getScanner(new Scan())) { deletions.add(new Delete(r.getRow())); } table.delete(deletions); }
byte[] family = HBaseUtils.getBytes(columnFamily); delete.deleteFamily(family); hTable.delete(delete);
HTableInterface htable = pconn.getQueryServices().getTable(SchemaUtil.getTableNameAsBytes(MDTEST_SCHEMA_NAME,MDTEST_NAME)); Delete delete = new Delete(Bytes.toBytes("0")); htable.delete(delete);
@Override public void delete(Delete delete) throws IOException { if (tx == null) { throw new IOException("Transaction not started"); } hTable.delete(transactionalizeAction(delete)); }
@Override public void delete(List<Delete> deletes) throws IOException { if (tx == null) { throw new IOException("Transaction not started"); } List<Delete> transactionalizedDeletes = new ArrayList<Delete>(deletes.size()); for (Delete delete : deletes) { Delete txDelete = transactionalizeAction(delete); transactionalizedDeletes.add(txDelete); } hTable.delete(transactionalizedDeletes); }
@Override public void delete(List<Delete> deletes) throws IOException { if (tx == null) { throw new IOException("Transaction not started"); } List<Delete> transactionalizedDeletes = new ArrayList<>(deletes.size()); for (Delete delete : deletes) { Delete txDelete = transactionalizeAction(delete); transactionalizedDeletes.add(txDelete); } hTable.delete(transactionalizedDeletes); }
@Override public void delete(List<Delete> deletes) throws IOException { if (tx == null) { throw new IOException("Transaction not started"); } List<Delete> transactionalizedDeletes = new ArrayList<Delete>(deletes.size()); for (Delete delete : deletes) { Delete txDelete = transactionalizeAction(delete); transactionalizedDeletes.add(txDelete); } hTable.delete(transactionalizedDeletes); }
@Override public void delete(List<Delete> deletes) throws IOException { if (tx == null) { throw new IOException("Transaction not started"); } List<Delete> transactionalizedDeletes = new ArrayList<Delete>(deletes.size()); for (Delete delete : deletes) { Delete txDelete = transactionalizeAction(delete); transactionalizedDeletes.add(txDelete); } hTable.delete(transactionalizedDeletes); }
@Override public void delete(Delete delete) throws IOException { if (tx == null) { throw new IOException("Transaction not started"); } hTable.delete(transactionalizeAction(delete)); }
@Override public void delete(List<Delete> deletes) throws IOException { if (tx == null) { throw new IOException("Transaction not started"); } List<Delete> transactionalizedDeletes = new ArrayList<Delete>(deletes.size()); for (Delete delete : deletes) { Delete txDelete = transactionalizeAction(delete); transactionalizedDeletes.add(txDelete); } hTable.delete(transactionalizedDeletes); }
@Override public void delete(Delete delete) throws IOException { if (tx == null) { throw new IOException("Transaction not started"); } hTable.delete(transactionalizeAction(delete)); }
@VisibleForTesting void deleteFromScan(HTableInterface stateTable, Scan scan) throws IOException { try (ResultScanner scanner = stateTable.getScanner(scan)) { Result next; while ((next = scanner.next()) != null) { stateTable.delete(new Delete(next.getRow())); } } }
@Override public void deleteRowByRowkey(String encodedRowkey) throws IOException { byte[] row = EagleBase64Wrapper.decode(encodedRowkey); final Delete delete = createDelete(row); tbl.delete(delete); }
public void delete(TaggedLogAPIEntity entity, EntityDefinition entityDef) throws Exception { final byte[] rowkey = RowkeyHelper.getRowkey(entity, entityDef); final Delete delete = createDelete(rowkey); tbl.delete(delete); }
@Override protected void deleteResourceImpl(String resPath) throws IOException { HTableInterface table = getConnection().getTable(getAllInOneTableName()); try { Delete del = new Delete(Bytes.toBytes(resPath)); table.delete(del); table.flushCommits(); } finally { IOUtils.closeQuietly(table); } }
protected void eraseLock(ColumnCoordinate c, long ts) throws IOException { Column lc = ColumnUtil.getLockColumn(c); Delete delete = new Delete(c.getRow()).deleteColumn(lc.getFamily(), lc.getQualifier(), ts); getTable(c.getTableName()).delete(delete); }