MySQL 5.6.14 Source Code Document
|
Header passed in front of every attribute value in AttrInfo signal. More...
#include <AttributeHeader.hpp>
Public Member Functions | |
STATIC_CONST (PSEUDO=0x8000) | |
STATIC_CONST (FRAGMENT=0xFFFE) | |
STATIC_CONST (ROW_COUNT=0xFFFD) | |
STATIC_CONST (COMMIT_COUNT=0xFFFC) | |
STATIC_CONST (RANGE_NO=0xFFFB) | |
STATIC_CONST (ROW_SIZE=0xFFFA) | |
STATIC_CONST (FRAGMENT_FIXED_MEMORY=0xFFF9) | |
STATIC_CONST (RECORDS_IN_RANGE=0xFFF8) | |
STATIC_CONST (DISK_REF=0xFFF7) | |
STATIC_CONST (ROWID=0xFFF6) | |
STATIC_CONST (ROW_GCI=0xFFF5) | |
STATIC_CONST (FRAGMENT_VARSIZED_MEMORY=0xFFF4) | |
STATIC_CONST (READ_PACKED=0xFFF3) | |
STATIC_CONST (ANY_VALUE=0xFFF2) | |
STATIC_CONST (COPY_ROWID=0xFFF1) | |
STATIC_CONST (READ_ALL=0xFFF0) | |
STATIC_CONST (READ_LCP=0xFFEF) | |
STATIC_CONST (LOCK_REF=0xFFEE) | |
STATIC_CONST (OP_ID=0xFFED) | |
STATIC_CONST (FRAGMENT_EXTENT_SPACE=0xFFEC) | |
STATIC_CONST (FRAGMENT_FREE_EXTENT_SPACE=0xFFEB) | |
STATIC_CONST (FLUSH_AI=0xFFEA) | |
STATIC_CONST (CORR_FACTOR32=0xFFE9) | |
STATIC_CONST (CORR_FACTOR64=0xFFE8) | |
STATIC_CONST (ROW_GCI64=0xFFE7) | |
STATIC_CONST (ROW_AUTHOR=0xFFE6) | |
STATIC_CONST (OPTIMIZE=0xFFE0) | |
STATIC_CONST (OPTIMIZE_OPTIONS_MASK=0xFFFF) | |
STATIC_CONST (OPTIMIZE_MOVE_VARPART=0x0001) | |
STATIC_CONST (OPTIMIZE_MOVE_FIXPART=0x0002) | |
STATIC_CONST (INDEX_STAT_KEY=0xFFD0) | |
STATIC_CONST (INDEX_STAT_VALUE=0xFFD1) | |
Uint32 | getHeaderSize () const |
void | insertHeader (Uint32 *) |
AttributeHeader * | getNext () const |
Uint32 * | getDataPtr () const |
Uint32 | getAttributeId () const |
void | setAttributeId (Uint32) |
Uint32 | getByteSize () const |
void | setByteSize (Uint32) |
Uint32 | getDataSize () const |
void | setDataSize (Uint32) |
bool | isNULL () const |
void | setNULL () |
void | print (FILE *) |
AttributeHeader (Uint32=0) | |
AttributeHeader (Uint32 anAttributeId, Uint32 aByteSize) |
Static Public Member Functions | |
static void | init (Uint32 *aHeaderPtr, Uint32 anAttributeId, Uint32 aByteSize) |
static Uint32 | getByteSize (Uint32) |
static Uint32 | getDataSize (Uint32) |
static Uint32 | getAttributeId (Uint32 id) |
Public Attributes | |
Uint32 | m_value |
Friends | |
class | Dbtup |
class | Backup |
class | NdbOperation |
class | DbUtil |
class | Suma |
Header passed in front of every attribute value in AttrInfo signal.
Definition at line 25 of file AttributeHeader.hpp.
|
inline |
Getters and Setters
Definition at line 188 of file AttributeHeader.hpp.
|
inline |
Get location of attribute value
Definition at line 239 of file AttributeHeader.hpp.
|
inline |
Returns size of AttributeHeader (usually one or two words)
Definition at line 181 of file AttributeHeader.hpp.
|
inline |
Get next attribute header (if there is one)
Definition at line 252 of file AttributeHeader.hpp.
|
inlinestatic |
Initialize AttributeHeader at location aHeaderPtr
1111111111222222222233
01234567890123456789012345678901 ssssssssssssssssiiiiiiiiiiiiiiii
i = Attribute Id s = Size of current "chunk" in bytes - 16 bits. To allow round up to word, max value is 0xFFFC (not checked). e - [ obsolete future ] Element data/Blob, read element of array If == 0 next data word contains attribute value. If == 1 next data word contains: For Array of Fixed size Elements Start Index (16 bit), Stop Index(16 bit) For Blob Start offset (32 bit) (length is defined in previous word)
An attribute value equal to "null" is represented by setting s == 0.
Definition at line 155 of file AttributeHeader.hpp.
|
inline |
Store AttributeHeader in location given as argument
Definition at line 245 of file AttributeHeader.hpp.
|
inline |
AttributeHeader::STATIC_CONST | ( | PSEUDO | = 0x8000 | ) |
Pseudo columns
AttributeHeader::STATIC_CONST | ( | ROW_GCI64 | = 0xFFE7 | ) |
64-bit row gci (extending lower if not sufficient bits) read-only
AttributeHeader::STATIC_CONST | ( | ROW_AUTHOR | = 0xFFE6 | ) |
Row author... autoset to 0, can be over written
AttributeHeader::STATIC_CONST | ( | OPTIMIZE | = 0xFFE0 | ) |
Optimize pseudo column and optimization options