Documentation Home
MySQL NDB Cluster API Developer Guide
Download this Manual Table::getPartitionId()

Description.  Gets a table partition ID given its hash value.


Uint32 getPartitionId
      Uint32 hashvalue
    ) const

Parameters.  A hashvalue. Note that if the table has not actually been retrieved (using, for example, getTableId()), then the result is likely not to be accurate or useful.

Return value.  The identifier of the partition corresponding to the hashvalue.