summaryrefslogtreecommitdiff
path: root/ndb/include/ndbapi/NdbDictionary.hpp
diff options
context:
space:
mode:
authorunknown <tomas@poseidon.ndb.mysql.com>2005-01-04 19:51:59 +0100
committerunknown <tomas@poseidon.ndb.mysql.com>2005-01-04 19:51:59 +0100
commitaae10cd184bd058e5355b38c53787e6012cd383d (patch)
tree62b8b0732d1ebb5dd826b8c249b18b6d75a405e1 /ndb/include/ndbapi/NdbDictionary.hpp
parent584f68e8ad77f90fefaf5a4b23580b38009fe8d7 (diff)
downloadmariadb-git-aae10cd184bd058e5355b38c53787e6012cd383d.tar.gz
changed documented method from get/setDistributionKey to get/setPartitionKey
+ some extra docs on the area updated docs by removing som async stuff ndb/include/ndbapi/NdbTransaction.hpp: mostly reformatting but also some more explicit references to objects and methods
Diffstat (limited to 'ndb/include/ndbapi/NdbDictionary.hpp')
-rw-r--r--ndb/include/ndbapi/NdbDictionary.hpp27
1 files changed, 17 insertions, 10 deletions
diff --git a/ndb/include/ndbapi/NdbDictionary.hpp b/ndb/include/ndbapi/NdbDictionary.hpp
index 75232a3cee5..f25b3a7fbfa 100644
--- a/ndb/include/ndbapi/NdbDictionary.hpp
+++ b/ndb/include/ndbapi/NdbDictionary.hpp
@@ -286,14 +286,14 @@ public:
int getSize() const;
/**
- * Check if column is part of distribution key
+ * Check if column is part of partition key
*
- * A <em>distribution key</em> is a set of attributes which are used
+ * A <em>partition key</em> is a set of attributes which are used
* to distribute the tuples onto the NDB nodes.
- * The distribution key uses the NDB Cluster hashing function.
+ * The partition key uses the NDB Cluster hashing function.
*
* An example where this is useful is TPC-C where it might be
- * good to use the warehouse id and district id as the distribution key.
+ * good to use the warehouse id and district id as the partition key.
* This would place all data for a specific district and warehouse
* in the same database node.
*
@@ -301,9 +301,12 @@ public:
* will still be used with the hashing algorithm.
*
* @return true then the column is part of
- * the distribution key.
+ * the partition key.
*/
- bool getDistributionKey() const;
+ bool getPartitionKey() const;
+#ifndef DOXYGEN_SHOULD_SKIP_DEPRECATED
+ inline bool getDistributionKey() const { return getPartitionKey(); };
+#endif
/** @} *******************************************************************/
@@ -401,13 +404,17 @@ public:
void setStripeSize(int size);
/**
- * Set distribution key
- * @see getDistributionKey
+ * Set partition key
+ * @see getPartitionKey
*
* @param enable If set to true, then the column will be part of
- * the distribution key.
+ * the partition key.
*/
- void setDistributionKey(bool enable);
+ void setPartitionKey(bool enable);
+#ifndef DOXYGEN_SHOULD_SKIP_DEPRECATED
+ inline void setDistributionKey(bool enable)
+ { setPartitionKey(enable); };
+#endif
/** @} *******************************************************************/