sortKeyCount

获取某个HashKey下所有SortKey的个数。

  1. /**
  2. * @param tableName TableHandler name
  3. * @param hashKey used to decide which partition the key may exist.
  4. * @return the count result for the hashKey
  5. * @throws PException
  6. */
  7. public long sortKeyCount(String tableName, byte[] hashKey) throws PException;

注:

  • 参数:需传入TableName、HashKey。
  • 返回值:返回HashKey下所有SortKey的个数。
  • 异常:如果出现异常,譬如网络错误、超时错误、服务端错误等,会抛出 PException。