MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
page0types.h File Reference
#include <map>
#include "univ.i"
#include "dict0types.h"
#include "mtr0types.h"
Include dependency graph for page0types.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  page_zip_des_t
struct  page_zip_stat_t

Macros

#define page_t   ib_page_t
#define PAGE_ZIP_SSIZE_BITS   3
#define PAGE_ZIP_SSIZE_MAX   (UNIV_ZIP_SIZE_SHIFT_MAX - UNIV_ZIP_SIZE_SHIFT_MIN + 1)

Typedefs

typedef byte page_t
typedef byte page_zip_t
typedef map< index_id_t,
page_zip_stat_t
page_zip_stat_per_index_t

Functions

UNIV_INTERN void page_zip_rec_set_deleted (page_zip_des_t *page_zip, const byte *rec, ulint flag) __attribute__((nonnull))
UNIV_INTERN void page_zip_rec_set_owned (page_zip_des_t *page_zip, const byte *rec, ulint flag) __attribute__((nonnull))
UNIV_INTERN void page_zip_dir_delete (page_zip_des_t *page_zip, byte *rec, dict_index_t *index, const ulint *offsets, const byte *free) __attribute__((nonnull(1
UNIV_INTERN void UNIV_INTERN void page_zip_dir_add_slot (page_zip_des_t *page_zip, ulint is_clustered) __attribute__((nonnull))

Variables

page_zip_stat_t page_zip_stat [PAGE_ZIP_SSIZE_MAX]
page_zip_stat_per_index_t page_zip_stat_per_index
ib_mutex_t page_zip_stat_per_index_mutex

Detailed Description

Index page routines

Created 2/2/1994 Heikki Tuuri

Definition in file page0types.h.

Macro Definition Documentation

#define page_t   ib_page_t

Eliminates a name collision on HP-UX

Definition at line 38 of file page0types.h.

#define PAGE_ZIP_SSIZE_BITS   3

Number of bits needed for representing different compressed page sizes

Definition at line 52 of file page0types.h.

#define PAGE_ZIP_SSIZE_MAX   (UNIV_ZIP_SIZE_SHIFT_MAX - UNIV_ZIP_SIZE_SHIFT_MIN + 1)

Maximum compressed page shift size

Definition at line 55 of file page0types.h.

Typedef Documentation

typedef byte page_t

Type of the index page

Definition at line 40 of file page0types.h.

typedef map<index_id_t, page_zip_stat_t> page_zip_stat_per_index_t

Compression statistics types

Definition at line 111 of file page0types.h.

typedef byte page_zip_t

Compressed index page

Definition at line 42 of file page0types.h.

Function Documentation

UNIV_INTERN void UNIV_INTERN void page_zip_dir_add_slot ( page_zip_des_t page_zip,
ulint  is_clustered 
)

Add a slot to the dense page directory.

Parameters
page_zipin/out: compressed page
is_clusteredin: nonzero for clustered index, zero for others

Definition at line 4425 of file page0zip.cc.

Here is the caller graph for this function:

UNIV_INTERN void page_zip_dir_delete ( page_zip_des_t page_zip,
byte *  rec,
dict_index_t index,
const ulint *  offsets,
const byte *  free 
)

Shift the dense page directory when a record is deleted.

Parameters
page_zipin/out: compressed page
recin: deleted record
indexin: index of rec
offsetsin: rec_get_offsets(rec)
freein: previous start of the free list
UNIV_INTERN void page_zip_rec_set_deleted ( page_zip_des_t page_zip,
const byte *  rec,
ulint  flag 
)

Write the "deleted" flag of a record on a compressed page. The flag must already have been written on the uncompressed page.

Parameters
page_zipin/out: compressed page
recin: record on the uncompressed page
flagin: the deleted flag (nonzero=TRUE)

Definition at line 4204 of file page0zip.cc.

UNIV_INTERN void page_zip_rec_set_owned ( page_zip_des_t page_zip,
const byte *  rec,
ulint  flag 
)

Write the "owned" flag of a record on a compressed page. The n_owned field must already have been written on the uncompressed page.

Parameters
page_zipin/out: compressed page
recin: record on the uncompressed page
flagin: the owned flag (nonzero=TRUE)

Definition at line 4228 of file page0zip.cc.

Variable Documentation

Statistics on compression, indexed by page_zip_des_t::ssize - 1

Definition at line 61 of file page0zip.cc.

page_zip_stat_per_index_t page_zip_stat_per_index

Statistics on compression, indexed by dict_index_t::id

Statistics on compression, indexed by index->id

Definition at line 63 of file page0zip.cc.

ib_mutex_t page_zip_stat_per_index_mutex

Mutex protecting page_zip_stat_per_index

Definition at line 65 of file page0zip.cc.