Documentation Home
MySQL NDB Cluster API Developer Guide
Download this Manual

2.3.37.7 Table::getExtraMetadata()

Description.  Get and unpack extra metadata for this Table.

Signature. 

int getExtraMetadata
    (
      Uint32& version,
      void** data, 
      Uint32* length
    ) const

Parameters.  This method takes the following three parameters:

  • version: By convention, as used in NDB Cluster code, 1 means that the extra metadata contains a .frm file (BLOB) as in NDB 7.6 and earlier; 2 indicates that it is serialized dictionary information as in NDB 8.0. The values are actually arbritrary, and application-specific.

  • data: The stored data retrieved as metadata.

  • length: The length of the stored data (metadata).

Return value.  Returns 0 on success, any other value on failure. A nonzer4o value should be interpreted as an error code for the type of error.

This method was added in NDB 8.0.13.