MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
QueryPattern Struct Reference

#include <QueryTree.hpp>

Public Types

enum  {
  P_DATA = 0x1, P_COL = 0x2, P_UNQ_PK = 0x3, P_PARAM = 0x4,
  P_PARENT = 0x5, P_PARAM_HEADER = 0x6, P_ATTRINFO = 0x7, P_END = 0
}

Static Public Member Functions

static Uint32 getType (const Uint32 info)
static Uint32 getLength (Uint32 info)
static Uint32 data (Uint32 length)
static Uint32 getColNo (Uint32 info)
static Uint32 col (Uint32 no)
static Uint32 colPk (Uint32 no)
static Uint32 getParamNo (Uint32 info)
static Uint32 param (Uint32 no)
static Uint32 paramHeader (Uint32 no)
static Uint32 attrInfo (Uint32 no)
static Uint32 parent (Uint32 no)

Public Attributes

Uint32 m_info

Detailed Description

This is description of one entry in a QueryPattern (used by various QueryNodes)

Definition at line 320 of file QueryTree.hpp.

Member Function Documentation

static Uint32 QueryPattern::attrInfo ( Uint32  no)
inlinestatic

get col including header

Definition at line 369 of file QueryTree.hpp.

static Uint32 QueryPattern::colPk ( Uint32  no)
inlinestatic

If type == P_UNQ_PK, get PK value from composite NDB$PK col.

Definition at line 356 of file QueryTree.hpp.

Here is the caller graph for this function:

static Uint32 QueryPattern::getColNo ( Uint32  info)
inlinestatic

If type == COL, get col-no here (index in row)

Definition at line 350 of file QueryTree.hpp.

static Uint32 QueryPattern::getLength ( Uint32  info)
inlinestatic

If type == DATA, get len here

Definition at line 340 of file QueryTree.hpp.

static Uint32 QueryPattern::getParamNo ( Uint32  info)
inlinestatic

If type == PARAM, get param-no here (index in param list)

Definition at line 361 of file QueryTree.hpp.

static Uint32 QueryPattern::parent ( Uint32  no)
inlinestatic

Move to grand-parent no (0 == imediate parent)

Definition at line 375 of file QueryTree.hpp.

Here is the caller graph for this function:


The documentation for this struct was generated from the following file: