MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DictTabInfo Class Reference
Collaboration diagram for DictTabInfo:

Classes

struct  Attribute
struct  Table

Public Types

enum  RequestType {
  CreateTableFromAPI = 1, AddTableFromDict = 2, CopyTable = 3, ReadTableFromDiskSR = 4,
  GetTabInfoConf = 5, AlterTableFromAPI = 6
}
enum  KeyValues {
  TableName = 1, TableId = 2, TableVersion = 3, TableLoggedFlag = 4,
  NoOfKeyAttr = 5, NoOfAttributes = 6, NoOfNullable = 7, NoOfVariable = 8,
  TableKValue = 9, MinLoadFactor = 10, MaxLoadFactor = 11, KeyLength = 12,
  FragmentTypeVal = 13, TableTypeVal = 18, PrimaryTable = 19, PrimaryTableId = 20,
  IndexState = 21, InsertTriggerId = 22, UpdateTriggerId = 23, DeleteTriggerId = 24,
  CustomTriggerId = 25, FrmLen = 26, FrmData = 27, TableTemporaryFlag = 28,
  ForceVarPartFlag = 29, FragmentCount = 128, FragmentDataLen = 129, FragmentData = 130,
  TablespaceId = 131, TablespaceVersion = 132, TablespaceDataLen = 133, TablespaceData = 134,
  RangeListDataLen = 135, RangeListData = 136, ReplicaDataLen = 137, ReplicaData = 138,
  MaxRowsLow = 139, MaxRowsHigh = 140, DefaultNoPartFlag = 141, LinearHashFlag = 142,
  MinRowsLow = 143, MinRowsHigh = 144, RowGCIFlag = 150, RowChecksumFlag = 151,
  SingleUserMode = 152, HashMapObjectId = 153, HashMapVersion = 154, TableStorageType = 155,
  ExtraRowGCIBits = 156, ExtraRowAuthorBits = 157, TableEnd = 999, AttributeName = 1000,
  AttributeId = 1001, AttributeType = 1002, AttributeSize = 1003, AttributeArraySize = 1005,
  AttributeKeyFlag = 1006, AttributeStorageType = 1007, AttributeNullableFlag = 1008, AttributeDynamic = 1009,
  AttributeDKey = 1010, AttributeExtType = 1013, AttributeExtPrecision = 1014, AttributeExtScale = 1015,
  AttributeExtLength = 1016, AttributeAutoIncrement = 1017, AttributeArrayType = 1019, AttributeDefaultValueLen = 1020,
  AttributeDefaultValue = 1021, AttributeEnd = 1999
}
enum  FragmentType {
  AllNodesSmallTable = 0, AllNodesMediumTable = 1, AllNodesLargeTable = 2, SingleFragment = 3,
  DistrKeyHash = 4, DistrKeyLin = 5, UserDefined = 6, DistrKeyOrderedIndex = 8,
  HashMapPartition = 9
}
enum  TableType {
  UndefTableType = 0, SystemTable = 1, UserTable = 2, UniqueHashIndex = 3,
  HashIndex = 4, UniqueOrderedIndex = 5, OrderedIndex = 6, HashIndexTrigger = 11,
  SubscriptionTrigger = 16, ReadOnlyConstraint = 17, IndexTrigger = 18, ReorgTrigger = 19,
  Tablespace = 20, LogfileGroup = 21, Datafile = 22, Undofile = 23,
  HashMap = 24, SchemaTransaction = 30
}
enum  ObjectState {
  StateUndefined = 0, StateOffline = 1, StateBuilding = 2, StateDropping = 3,
  StateOnline = 4, StateBackup = 5, StateBroken = 9
}
enum  ObjectStore { StoreUndefined = 0, StoreNotLogged = 1, StorePermanent = 2 }
enum  ExtType {
  ExtUndefined = NdbSqlUtil::Type::Undefined, ExtTinyint = NdbSqlUtil::Type::Tinyint, ExtTinyunsigned = NdbSqlUtil::Type::Tinyunsigned, ExtSmallint = NdbSqlUtil::Type::Smallint,
  ExtSmallunsigned = NdbSqlUtil::Type::Smallunsigned, ExtMediumint = NdbSqlUtil::Type::Mediumint, ExtMediumunsigned = NdbSqlUtil::Type::Mediumunsigned, ExtInt = NdbSqlUtil::Type::Int,
  ExtUnsigned = NdbSqlUtil::Type::Unsigned, ExtBigint = NdbSqlUtil::Type::Bigint, ExtBigunsigned = NdbSqlUtil::Type::Bigunsigned, ExtFloat = NdbSqlUtil::Type::Float,
  ExtDouble = NdbSqlUtil::Type::Double, ExtOlddecimal = NdbSqlUtil::Type::Olddecimal, ExtOlddecimalunsigned = NdbSqlUtil::Type::Olddecimalunsigned, ExtDecimal = NdbSqlUtil::Type::Decimal,
  ExtDecimalunsigned = NdbSqlUtil::Type::Decimalunsigned, ExtChar = NdbSqlUtil::Type::Char, ExtVarchar = NdbSqlUtil::Type::Varchar, ExtBinary = NdbSqlUtil::Type::Binary,
  ExtVarbinary = NdbSqlUtil::Type::Varbinary, ExtDatetime = NdbSqlUtil::Type::Datetime, ExtDate = NdbSqlUtil::Type::Date, ExtBlob = NdbSqlUtil::Type::Blob,
  ExtText = NdbSqlUtil::Type::Text, ExtBit = NdbSqlUtil::Type::Bit, ExtLongvarchar = NdbSqlUtil::Type::Longvarchar, ExtLongvarbinary = NdbSqlUtil::Type::Longvarbinary,
  ExtTime = NdbSqlUtil::Type::Time, ExtYear = NdbSqlUtil::Type::Year, ExtTimestamp = NdbSqlUtil::Type::Timestamp
}
enum  Deprecated {
  AttributeDGroup = 1009, AttributeStoredInd = 1011, TableStorageVal = 14, SecondTableId = 17,
  FragmentKeyTypeVal = 16
}
enum  Unimplemented { ScanOptimised = 15, AttributeGroup = 1012, FileNo = 102 }

Public Member Functions

 STATIC_CONST (aBit=0)
 STATIC_CONST (an8Bit=3)
 STATIC_CONST (a16Bit=4)
 STATIC_CONST (a32Bit=5)
 STATIC_CONST (a64Bit=6)
 STATIC_CONST (a128Bit=7)
 STATIC_CONST (DataLength=20)
 STATIC_CONST (HeaderLength=5)

Static Public Member Functions

static bool isBlobTableName (const char *name, Uint32 *ptab_id=0, Uint32 *pcol_no=0)
static bool isTable (int tableType)
static bool isIndex (int tableType)
static bool isUniqueIndex (int tableType)
static bool isNonUniqueIndex (int tableType)
static bool isHashIndex (int tableType)
static bool isOrderedIndex (int tableType)
static bool isTrigger (int tableType)
static bool isFilegroup (int tableType)
static bool isFile (int tableType)
static bool isHashMap (int tableType)

Static Public Attributes

static const
SimpleProperties::SP2StructMapping 
TableMapping []
static const Uint32 TableMappingSize
static const
SimpleProperties::SP2StructMapping 
AttributeMapping []
static const Uint32 AttributeMappingSize

Friends

class Backup
class Dbdict
class Ndbcntr
class Trix
class DbUtil
class NdbSchemaOp
bool printDICTTABINFO (FILE *output, const Uint32 *theData, Uint32 len, Uint16 receiverBlockNo)

Detailed Description

Definition at line 66 of file DictTabInfo.hpp.

Member Enumeration Documentation

Enumerator:
Tablespace 

Tablespace.

LogfileGroup 

Logfile group.

Datafile 

Datafile.

Undofile 

Undofile.

Definition at line 204 of file DictTabInfo.hpp.

Friends And Related Function Documentation

friend class Backup
friend

Sender(s) / Reciver(s)

Definition at line 71 of file DictTabInfo.hpp.

bool printDICTTABINFO ( FILE *  output,
const Uint32 *  theData,
Uint32  len,
Uint16  receiverBlockNo 
)
friend

For printing

Definition at line 119 of file DictTabInfo.cpp.

Member Data Documentation

const SimpleProperties::SP2StructMapping DictTabInfo::AttributeMapping
static
Initial value:
{
DTIMAPS(Attribute, AttributeName, AttributeName, 0, MAX_ATTR_NAME_SIZE),
DTIMAP(Attribute, AttributeId, AttributeId),
DTIMAP(Attribute, AttributeType, AttributeType),
DTIMAP2(Attribute, AttributeSize, AttributeSize, 3, 7),
DTIMAP2(Attribute, AttributeArraySize, AttributeArraySize, 0, 65535),
DTIMAP2(Attribute, AttributeArrayType, AttributeArrayType, 0, 3),
DTIMAP2(Attribute, AttributeKeyFlag, AttributeKeyFlag, 0, 1),
DTIMAP2(Attribute, AttributeNullableFlag, AttributeNullableFlag, 0, 1),
DTIMAP2(Attribute, AttributeDKey, AttributeDKey, 0, 1),
DTIMAP2(Attribute, AttributeStorageType, AttributeStorageType, 0, 1),
DTIMAP2(Attribute, AttributeDynamic, AttributeDynamic, 0, 1),
DTIMAP(Attribute, AttributeExtType, AttributeExtType),
DTIMAP(Attribute, AttributeExtPrecision, AttributeExtPrecision),
DTIMAP(Attribute, AttributeExtScale, AttributeExtScale),
DTIMAP(Attribute, AttributeExtLength, AttributeExtLength),
DTIMAP2(Attribute, AttributeAutoIncrement, AttributeAutoIncrement, 0, 1),
DTIMAP2(Attribute, AttributeDefaultValueLen, AttributeDefaultValueLen,
0, MAX_ATTR_DEFAULT_VALUE_SIZE),
DTIMAPB(Attribute, AttributeDefaultValue, AttributeDefaultValue,
0, MAX_ATTR_DEFAULT_VALUE_SIZE, AttributeDefaultValueLen),
}

Definition at line 617 of file DictTabInfo.hpp.

const Uint32 DictTabInfo::AttributeMappingSize
static
Initial value:
sizeof(DictTabInfo::AttributeMapping) /

Definition at line 619 of file DictTabInfo.hpp.

const Uint32 DictTabInfo::TableMappingSize
static
Initial value:
sizeof(DictTabInfo::TableMapping) / sizeof(SimpleProperties::SP2StructMapping)

Definition at line 397 of file DictTabInfo.hpp.


The documentation for this class was generated from the following files: