@Test(groups = {"unit"}) public void shouldDeletePath() throws Exception { dao.deletePath(rowKey, path); verify(operations).deleteColumns(rowKey, "a/b/c/", getFinishString("a/b/c/")); }
@Override public void deletePath(K rowKey, Path path, @Nullable BatchContext batchContext) { String start = path.toString(); String finish = getFinishString(start); if (batchContext == null) { operations.deleteColumns(rowKey, start, finish); } else { operations.deleteColumns(rowKey, start, finish, batchContext); } }
ThriftStructuredDataSupport extends AbstractThriftStructuredDataSupport<K> { @Override public void deletePath(K rowKey, Path path, @Nullable BatchContext batchContext) { String start = path.toString(); String finish = getFinishString(start); if (batchContext == null) { operations.deleteColumns(rowKey, start, finish); } else { operations.deleteColumns(rowKey, start, finish, batchContext); } } }
ThriftStructuredDataSupport extends AbstractThriftStructuredDataSupport<K> { @Override public void deletePath(K rowKey, Path path, @Nullable BatchContext batchContext) { String start = path.toString(); String finish = getFinishString(start); if (batchContext == null) { operations.deleteColumns(rowKey, start, finish); } else { operations.deleteColumns(rowKey, start, finish, batchContext); } } ThriftStructuredDataSupport(ColumnFamilyOperations<K,String,Object> operations); }
ThriftStructuredDataSupport extends AbstractThriftStructuredDataSupport<K> { @Override public void deletePath(K rowKey, Path path, @Nullable BatchContext batchContext) { String start = path.toString(); String finish = getFinishString(start); if (batchContext == null) { operations.deleteColumns(rowKey, start, finish); } else { operations.deleteColumns(rowKey, start, finish, batchContext); } } ThriftStructuredDataSupport(ColumnFamilyOperations<K,String,Object> operations); @Override BatchContext beginBatch(); @Override void applyBatch(BatchContext batchContext); @Override T readFromPath(K rowKey, Path path, TypeReference<T> type); @Override void writeToPath(K rowKey,
                            Path path,
                            Object value,
                            @Nullable BatchContext batchContext); @Override void deletePath(K rowKey, Path path, @Nullable BatchContext batchContext); }
ThriftStructuredDataSupport extends AbstractThriftStructuredDataSupport<K> { @Override public void deletePath(K rowKey, Path path, @Nullable BatchContext batchContext) { String start = path.toString(); String finish = getFinishString(start); if (batchContext == null) { operations.deleteColumns(rowKey, start, finish); } else { operations.deleteColumns(rowKey, start, finish, batchContext); } } ThriftStructuredDataSupport(ColumnFamilyOperations<K,String,Object> operations); @Override BatchContext beginBatch(); @Override void applyBatch(BatchContext batchContext); @Override T readFromPath(K rowKey, Path path, TypeReference<T> type); @Override void writeToPath(K rowKey,
                            Path path,
                            Object value,
                            @Nullable BatchContext batchContext); @Override void deletePath(K rowKey, Path path, @Nullable BatchContext batchContext);  }