Commit c9a6b607 authored by unknown's avatar unknown

ndb - remove obsolete attribute storage type ACC vs TUP


ndb/include/kernel/signaldata/CreateEvnt.hpp:
  remove obsolete attribute storage type ACC vs TUP
ndb/include/kernel/signaldata/CreateIndx.hpp:
  remove obsolete attribute storage type ACC vs TUP
ndb/src/ndbapi/ndberror.c:
  remove obsolete attribute storage type ACC vs TUP
ndb/test/include/NdbSchemaOp.hpp:
  remove obsolete attribute storage type ACC vs TUP
ndb/test/ndbapi/bench/userInterface.cpp:
  remove obsolete attribute storage type ACC vs TUP
ndb/test/src/NdbSchemaOp.cpp:
  remove obsolete attribute storage type ACC vs TUP
parent f4c7ebd1
...@@ -368,7 +368,6 @@ struct CreateEvntRef { ...@@ -368,7 +368,6 @@ struct CreateEvntRef {
EventNameTooLong = 4708, EventNameTooLong = 4708,
EventNameExists = 746, EventNameExists = 746,
EventNotFound = 4731, EventNotFound = 4731,
AttributeNotStored = 4245,
AttributeNullable = 4246, AttributeNullable = 4246,
BadRequestType = 4247, BadRequestType = 4247,
InvalidName = 4248, InvalidName = 4248,
......
...@@ -198,7 +198,6 @@ public: ...@@ -198,7 +198,6 @@ public:
IndexNameTooLong = 4241, IndexNameTooLong = 4241,
TooManyIndexes = 4242, TooManyIndexes = 4242,
IndexExists = 4244, IndexExists = 4244,
AttributeNotStored = 4245,
AttributeNullable = 4246, AttributeNullable = 4246,
BadRequestType = 4247, BadRequestType = 4247,
InvalidName = 4248, InvalidName = 4248,
......
...@@ -494,7 +494,6 @@ ErrorBundle ErrorCodes[] = { ...@@ -494,7 +494,6 @@ ErrorBundle ErrorCodes[] = {
{ 4242, AE, "Too many indexes" }, { 4242, AE, "Too many indexes" },
{ 4243, AE, "Index not found" }, { 4243, AE, "Index not found" },
{ 4244, OE, "Index or table with given name already exists" }, { 4244, OE, "Index or table with given name already exists" },
{ 4245, AE, "Index attribute must be defined as stored, i.e. the StorageAttributeType must be defined as NormalStorageAttribute"},
{ 4247, AE, "Illegal index/trigger create/drop/alter request" }, { 4247, AE, "Illegal index/trigger create/drop/alter request" },
{ 4248, AE, "Trigger/index name invalid" }, { 4248, AE, "Trigger/index name invalid" },
{ 4249, AE, "Invalid table" }, { 4249, AE, "Invalid table" },
......
...@@ -78,29 +78,6 @@ ...@@ -78,29 +78,6 @@
NoStorageTypeDef ///< Used for debugging only NoStorageTypeDef ///< Used for debugging only
}; };
/**
* Where attribute is stored.
*
* This is used to indicate whether a primary key
* should only be stored in the index storage and not in the data storage
* or if it should be stored in both places.
* The first alternative makes the attribute take less space,
* but makes it impossible to scan using attribute.
*
* @note Use NormalStorageAttribute for most cases.
* (IndexStorageAttribute should only be used on primary key
* attributes and only if you do not want to scan using the attribute.)
*/
enum StorageAttributeType {
NoStorageAttributeTypeDefined = -1, ///< <i>Missing explanation</i>
IndexStorageAttribute, ///< Attribute is only stored in
///< index storage (ACC)
NormalStorageAttribute ///< Attribute values are stored
///< both in the index (ACC) and
///< in the data storage (TUP)
};
/** /**
* Type of fragmentation used for a table * Type of fragmentation used for a table
*/ */
...@@ -405,27 +382,7 @@ public: ...@@ -405,27 +382,7 @@ public:
* the attribute. * the attribute.
* <br> * <br>
* Legal values: true, false * Legal values: true, false
* @param aStType Stored in both index and data storage or * @param aStType Obsolete since wl-2066
* only store in index data storage.
* <br>
* This parameter is only of interest for tuple
* key attributes.
* All tuple key attributes values are always stored
* in the index storage part.
* If this parameter is set to
* IndexStorageAttribute, then the attribute values
* will <em>only</em> be stored in the index
* storage part and <em>not</em> in the data
* storage part.
* <br>
* If there will be no scans using the primary
* key attribute and if the size of the attribute
* is large, then this might be of interest.
* A typical example is a table where
* http-addresses are used as primary key.
* <br>
* Legal values: NormalStorageAttribute,
* IndexStorageAttribute
* @param aDistributionKey Sometimes it is preferable to use a subset * @param aDistributionKey Sometimes it is preferable to use a subset
* of the primary key as the distribution key. * of the primary key as the distribution key.
* An example is TPC-C where it might be * An example is TPC-C where it might be
...@@ -474,7 +431,7 @@ public: ...@@ -474,7 +431,7 @@ public:
AttrType aAttrType = UnSigned, AttrType aAttrType = UnSigned,
StorageMode aStorageMode = MMBased, StorageMode aStorageMode = MMBased,
bool nullable = false, bool nullable = false,
StorageAttributeType aStType= NormalStorageAttribute, int aStType= 0, // obsolete
int aDistributionKey = 0, int aDistributionKey = 0,
int aDistributionGroup = 0, int aDistributionGroup = 0,
int aDistributionGroupNoOfBits = 16, int aDistributionGroupNoOfBits = 16,
...@@ -491,7 +448,7 @@ public: ...@@ -491,7 +448,7 @@ public:
AttrType aAttrType, AttrType aAttrType,
StorageMode aStorageMode, StorageMode aStorageMode,
NullAttributeType aNullAttr, NullAttributeType aNullAttr,
StorageAttributeType aStType = NormalStorageAttribute, int aStType, // obsolete
int aDistributionKey = 0, int aDistributionKey = 0,
int aDistributionGroup = 0, int aDistributionGroup = 0,
int aDistributionGroupNoOfBits = 16){ int aDistributionGroupNoOfBits = 16){
......
...@@ -173,7 +173,7 @@ create_table_server(Ndb * pNdb){ ...@@ -173,7 +173,7 @@ create_table_server(Ndb * pNdb){
String, String,
MMBased, MMBased,
NotNullAttribute, NotNullAttribute,
NormalStorageAttribute, 0,
0, 0,
1, 1,
16); 16);
...@@ -376,7 +376,7 @@ create_table_subscriber(Ndb * pNdb){ ...@@ -376,7 +376,7 @@ create_table_subscriber(Ndb * pNdb){
String, String,
MMBased, MMBased,
NotNullAttribute, NotNullAttribute,
NormalStorageAttribute, 0,
0, 0,
1, 1,
16); 16);
...@@ -494,7 +494,7 @@ create_table_session(Ndb * pNdb){ ...@@ -494,7 +494,7 @@ create_table_session(Ndb * pNdb){
String, String,
MMBased, MMBased,
NotNullAttribute, NotNullAttribute,
NormalStorageAttribute, 0,
0, 0,
1, 1,
16); 16);
......
...@@ -113,7 +113,7 @@ NdbSchemaOp::createAttribute( const char* anAttrName, ...@@ -113,7 +113,7 @@ NdbSchemaOp::createAttribute( const char* anAttrName,
AttrType anAttrType, AttrType anAttrType,
StorageMode aStorageMode, StorageMode aStorageMode,
bool nullable, bool nullable,
StorageAttributeType aStorageAttr, int aStorageAttr,
int aDistributionKeyFlag, int aDistributionKeyFlag,
int aDistributionGroupFlag, int aDistributionGroupFlag,
int aDistributionGroupNoOfBits, int aDistributionGroupNoOfBits,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment