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

Public Member Functions

virtual ulint get_space_id () const UNIV_NOTHROW
- Public Member Functions inherited from AbstractCallback
 AbstractCallback (trx_t *trx)
virtual ~AbstractCallback ()
virtual dberr_t init (os_offset_t file_size, const buf_block_t *block) UNIV_NOTHROW
bool is_compressed_table () const UNIV_NOTHROW
- Public Member Functions inherited from PageCallback
 PageCallback ()
void set_file (const char *filename, os_file_t file) UNIV_NOTHROW
ulint get_zip_size () const
dberr_t set_zip_size (const buf_frame_t *page) UNIV_NOTHROW
ulint get_page_size () const

- of the index to look for

Find the index field entry in in the cfg indexes fields.

Returns
instance if found else 0.
 PageConverter (row_import *cfg, trx_t *trx) UNIV_NOTHROW
virtual dberr_t operator() (os_offset_t offset, buf_block_t *block) UNIV_NOTHROW

Additional Inherited Members

- Public Attributes inherited from PageCallback
ulint m_zip_size
ulint m_page_size
os_file_t m_file
const char * m_filepath
- Protected Member Functions inherited from AbstractCallback
buf_frame_tget_frame (buf_block_t *block) const UNIV_NOTHROW
dberr_t periodic_check () UNIV_NOTHROW
const xdes_t * xdes (ulint page_no, const page_t *page) const UNIV_NOTHROW
dberr_t set_current_xdes (ulint page_no, const page_t *page) UNIV_NOTHROW
bool is_root_page (const page_t *page) const UNIV_NOTHROW
bool is_free (ulint page_no) const UNIV_NOTHROW
- Protected Attributes inherited from AbstractCallback
trx_tm_trx
ulint m_space
ulint m_free_limit
ulint m_size
xdes_t * m_xdes
ulint m_xdes_page_no
ulint m_space_flags
ulint m_table_flags

Detailed Description

Definition at line 856 of file row0import.cc.

Constructor & Destructor Documentation

PageConverter::PageConverter ( row_import cfg,
trx_t trx 
)

Constructor

Parameters
cfg- config of table being imported.
trx- transaction covering the import

Definition at line 1653 of file row0import.cc.

Here is the call graph for this function:

Member Function Documentation

virtual ulint PageConverter::get_space_id ( ) const
inlinevirtual
Return values
theserver space id of the tablespace being iterated over

Implements PageCallback.

Definition at line 872 of file row0import.cc.

dberr_t PageConverter::operator() ( os_offset_t  offset,
buf_block_t block 
)
virtual

Called for each block as it is read from the file.

Parameters
offset- physical offset in the file
block- block to convert, it is not from the buffer pool.
Return values
DB_SUCCESSor error code.

Called for every page in the tablespace. If the page was not updated then its state must be set to BUF_PAGE_NOT_USED.

Parameters
offset- physical offset within the file
block- block read from file, note it is not from the buffer pool
Return values
DB_SUCCESSor error code.

Implements PageCallback.

Definition at line 2122 of file row0import.cc.

Here is the call graph for this function:


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