Class Innodb::Field
In: lib/innodb/field.rb
Parent: Object

A single field in an InnoDB record (within an INDEX page). This class provides essential information to parse records, including the length of the fixed-width and variable-width portion of the field.

Methods

blob?   extern   extern?   length   new   null?   nullable?   read   value   value_by_length   variable?  

Constants

EXTERN_FIELD_SIZE = 20   Size of a reference to data stored externally to the page.

Attributes

data_type  [R] 
name  [R] 
nullable  [R] 
position  [R] 

Public Class methods

Public Instance methods

Read an InnoDB external pointer field.

Return whether a part of this field is stored externally (off-page).

Return the actual length of this variable-length field.

Return whether this field is NULL.

Return whether this field can be NULL.

Read an InnoDB encoded data field.

Read the data value (e.g. encoded in the data).

[Validate]