Callback functor.  
 More...
#include <fil0fil.h>
◆ PageCallback() [1/3]
  
  
      
        
          | PageCallback::PageCallback  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ ~PageCallback()
  
  
      
        
          | virtual PageCallback::~PageCallback  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
virtualdefault   | 
  
 
 
◆ PageCallback() [2/3]
◆ PageCallback() [3/3]
◆ get_page_size()
  
  
      
        
          | const page_size_t & PageCallback::get_page_size  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
The compressed page size. 
- Returns
 - the compressed page size 
 
 
 
◆ get_space_flags()
  
  
      
        
          | virtual ulint PageCallback::get_space_flags  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
pure virtual   | 
  
 
 
◆ get_space_id()
  
  
      
        
          | virtual space_id_t PageCallback::get_space_id  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
pure virtual   | 
  
 
 
◆ init()
Called for page 0 in the tablespace file at the start. 
- Parameters
 - 
  
    | file_size | size of the file in bytes  | 
    | block | contents of the first page in the tablespace file  | 
  
   
- Return values
 - 
  
  
 
Implemented in AbstractCallback.
 
 
◆ operator()()
Called for every page in the tablespace. 
If the page was not updated then its state must be set to BUF_PAGE_NOT_USED. For compressed tables the page descriptor memory will be at offset: block->frame + UNIV_PAGE_SIZE; 
- Parameters
 - 
  
    | offset | physical offset within the file  | 
    | block | block read from file, note it is not from the buffer pool  | 
  
   
- Return values
 - 
  
  
 
Implemented in FetchIndexRootPages, and PageConverter.
 
 
◆ operator=()
◆ set_file()
  
  
      
        
          | void PageCallback::set_file  | 
          ( | 
          const char *  | 
          filename,  | 
         
        
           | 
           | 
          pfs_os_file_t  | 
          file  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
Set the name of the physical file and the file handle that is used to open it for the file that is being iterated over. 
- Parameters
 - 
  
    | filename | then physical name of the tablespace file.  | 
    | file | OS file handle  | 
  
   
 
 
◆ set_page_size()
      
        
          | void PageCallback::set_page_size  | 
          ( | 
          const buf_frame_t *  | 
          page | ) | 
           | 
        
      
 
Set the tablespace table size. 
- Parameters
 - 
  
    | [in] | page | a page belonging to the tablespace  | 
  
   
 
 
◆ m_file
File handle to the tablespace. 
 
 
◆ m_filepath
      
        
          | const char* PageCallback::m_filepath | 
        
      
 
 
◆ m_page_size
The tablespace page size. 
 
 
The documentation for this struct was generated from the following files: