multiDel

删同一HashKey下的多行数据。

  1. /**
  2. * Delete specified sort keys under the same hash key.
  3. * @param tableName table name
  4. * @param hashKey used to decide which partition to put this k-v,
  5. * should not be null or empty.
  6. * @param sortKeys specify sort keys to be deleted.
  7. * should not be empty.
  8. * @throws PException
  9. */
  10. public void multiDel(String tableName, byte[] hashKey, List<byte[]> sortKeys) throws PException;

注:

  • 参数:需传入TableName、HashKey、SortKeys。
    • SortKeys不允许为空,如果不知道该HashKey下面有哪些SortKey,可以通过下面的multiGetSortKeys方法获取。
  • 返回值:无。
  • 异常:如果出现异常,譬如网络错误、超时错误、服务端错误等,会抛出 PException。