Class: Innodb::Page::Index::RecordHeader

Inherits:
Struct
  • Object
show all
Defined in:
lib/innodb/page/index.rb,
lib/innodb/page/index.rb

Constant Summary collapse

RECORD_INFO_MIN_REC_FLAG =

This record is the minimum record at this level of the B-tree.

1
RECORD_INFO_DELETED_FLAG =

This record has been marked as deleted.

2

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#externsObject

Returns the value of attribute externs

Returns:

  • (Object)

    the current value of externs



22
23
24
# File 'lib/innodb/page/index.rb', line 22

def externs
  @externs
end

#heap_numberObject

Returns the value of attribute heap_number

Returns:

  • (Object)

    the current value of heap_number



22
23
24
# File 'lib/innodb/page/index.rb', line 22

def heap_number
  @heap_number
end

#info_flagsObject

Returns the value of attribute info_flags

Returns:

  • (Object)

    the current value of info_flags



22
23
24
# File 'lib/innodb/page/index.rb', line 22

def info_flags
  @info_flags
end

#lengthObject

Returns the value of attribute length

Returns:

  • (Object)

    the current value of length



22
23
24
# File 'lib/innodb/page/index.rb', line 22

def length
  @length
end

#lengthsObject

Returns the value of attribute lengths

Returns:

  • (Object)

    the current value of lengths



22
23
24
# File 'lib/innodb/page/index.rb', line 22

def lengths
  @lengths
end

#n_fieldsObject

Returns the value of attribute n_fields

Returns:

  • (Object)

    the current value of n_fields



22
23
24
# File 'lib/innodb/page/index.rb', line 22

def n_fields
  @n_fields
end

#n_ownedObject

Returns the value of attribute n_owned

Returns:

  • (Object)

    the current value of n_owned



22
23
24
# File 'lib/innodb/page/index.rb', line 22

def n_owned
  @n_owned
end

#nextObject

Returns the value of attribute next

Returns:

  • (Object)

    the current value of next



22
23
24
# File 'lib/innodb/page/index.rb', line 22

def next
  @next
end

#nullsObject

Returns the value of attribute nulls

Returns:

  • (Object)

    the current value of nulls



22
23
24
# File 'lib/innodb/page/index.rb', line 22

def nulls
  @nulls
end

#offset_sizeObject

Returns the value of attribute offset_size

Returns:

  • (Object)

    the current value of offset_size



22
23
24
# File 'lib/innodb/page/index.rb', line 22

def offset_size
  @offset_size
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



22
23
24
# File 'lib/innodb/page/index.rb', line 22

def type
  @type
end

Instance Method Details

#deleted?Boolean

Returns:

  • (Boolean)


48
49
50
# File 'lib/innodb/page/index.rb', line 48

def deleted?
  (info_flags & RECORD_INFO_DELETED_FLAG) != 0
end

#min_rec?Boolean

Returns:

  • (Boolean)


44
45
46
# File 'lib/innodb/page/index.rb', line 44

def min_rec?
  (info_flags & RECORD_INFO_MIN_REC_FLAG) != 0
end