| Class | Innodb::Space |
| In: |
lib/innodb/space.rb
|
| Parent: | Object |
An InnoDB space file, which can be either a multi-table ibdataN file or a single-table "innodb_file_per_table" .ibd file.
| DEFAULT_PAGE_SIZE | = | 16384 | InnoDB‘s default page size is 16KiB. | |
| SYSTEM_SPACE_PAGE_MAP | = | { 0 => :FSP_HDR, 1 => :IBUF_BITMAP, 2 => :INODE, 3 => :SYS, 4 => :INDEX, 5 => :TRX_SYS, 6 => :SYS, 7 => :SYS, } | A map of InnoDB system space fixed-allocation pages. This can be used to check whether a space is a system space or not, as non-system spaces will not match this pattern. |
| innodb_system | [RW] | The Innodb::System to which this space belongs, if any. |
| page_size | [R] | The size (in bytes) of each page in the space. |
| pages | [R] | The number of pages in the space. |
| record_describer | [RW] | An object which can be used to describe records found in pages within this space. |
| size | [R] | The size (in bytes) of the space |
| system_page_size | [R] | The system default page size (in bytes), equivalent to UNIV_PAGE_SIZE. |
Open a space file, optionally providing the page size to use. Pages that aren‘t 16 KiB may not be supported well.
Iterate through the page numbers in the doublewrite buffer.
Iterate through all root page numbers for indexes in the space.
Iterate through all pages in a space, returning the page number and an Innodb::Page object for each one.
Iterate through unique regions in the space by page type. This is useful to achieve an overall view of the space.
Iterate through all extent descriptors for the space, returning an Innodb::Xdes object for each one.
Iterate through all FSP_HDR/XDES pages, returning an Innodb::Page object for each one.
Get an Innodb::Index object for a specific index by root page number.
Return a string which can uniquely identify this space. Be careful not to do anything which could instantiate a BufferCursor so that we can use this method in cursor initialization.
Determine whether this space looks like a system space. If the initial pages in the space match the SYSTEM_SPACE_PAGE_MAP, it is likely to be a system space.