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

#include <sql_cache.h>

Collaboration diagram for Query_cache_block_table:

Public Member Functions

Query_cache_blockblock ()

Public Attributes

TABLE_COUNTER_TYPE n
Query_cache_block_tablenext
Query_cache_block_tableprev
Query_cache_tableparent

Detailed Description

This class represents a node in the linked chain of queries belonging to one table.

Note
The root of this linked list is not a query-type block, but the table- type block which all queries has in common.

Definition at line 93 of file sql_cache.h.

Member Function Documentation

Query_cache_block* Query_cache_block_table::block ( )
inline

A method to calculate the address of the query cache block owning this node. The purpose of this calculation is to make it easier to move the query cache block without having to modify all the pointer addresses.

Member Data Documentation

TABLE_COUNTER_TYPE Query_cache_block_table::n

This node holds a position in a static table list belonging to the associated query (base 0).

Definition at line 101 of file sql_cache.h.

Query_cache_block_table* Query_cache_block_table::next

Pointers to the next and previous node, linking all queries with a common table.

Definition at line 107 of file sql_cache.h.

Query_cache_table* Query_cache_block_table::parent

A pointer to the table-type block which all linked queries has in common.

Definition at line 113 of file sql_cache.h.


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