Documentation Home
MySQL NDB Cluster API Developer Guide
Download this Manual

2.3.37.30 Table::getPartitionId()

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

Signature. 

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.


User Comments
Sign Up Login You must be logged in to post a comment.