Class Innodb::Inode
In: lib/innodb/inode.rb
Parent: Object

Methods

Constants

FRAG_ARRAY_N_SLOTS = 32   The number of "slots" (each representing one page) in the fragment array within each Inode entry.
FRAG_SLOT_SIZE = 4   The size (in bytes) of each slot in the fragment array.
MAGIC_N_VALUE = 97937874   A magic number which helps determine if an Inode structure is in use and populated with valid data.
SIZE = (16 + (3 * Innodb::List::BASE_NODE_SIZE) + (FRAG_ARRAY_N_SLOTS * FRAG_SLOT_SIZE))   The size (in bytes) of an Inode entry.

Attributes

space  [RW] 

Public Class methods

Construct a new Inode by reading an FSEG header from a cursor.

Read an array of page numbers (32-bit integers, which may be nil) from the provided cursor.

Public Instance methods

Compare one Innodb::Inode to another.

Helper method to determine if an Inode is in use. Inodes that are not in use have an fseg_id of 0.

Dump a summary of this object for debugging purposes.

Iterate through all lists, yielding the list name and the list itself.

Calculate the fill factor of this fseg, in percent.

Helper method to count non-nil fragment pages.

Helper method to return an array of only non-nil fragment pages.

Return a list from the fseg, given its name as a symbol.

Return an array of lists within an fseg.

Calculate the total number of pages within this fseg.

Calculate the total number of pages in use (not free) within this fseg.

[Validate]