Class: ToknInternal::RPNode

Inherits:
Object
  • Object
show all
Defined in:
lib/tokn/range_partition.rb

Overview

A node within a RangePartition tree

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id, set, children) ⇒ RPNode

Returns a new instance of RPNode.



222
223
224
225
226
# File 'lib/tokn/range_partition.rb', line 222

def initialize(id, set, children)
  @id = id
  @set = set
  @children = children
end

Instance Attribute Details

#childrenObject

Returns the value of attribute children.



220
221
222
# File 'lib/tokn/range_partition.rb', line 220

def children
  @children
end

#idObject

Returns the value of attribute id.



220
221
222
# File 'lib/tokn/range_partition.rb', line 220

def id
  @id
end

#setObject

Returns the value of attribute set.



220
221
222
# File 'lib/tokn/range_partition.rb', line 220

def set
  @set
end

Instance Method Details

#inspectObject



228
229
230
# File 'lib/tokn/range_partition.rb', line 228

def inspect
  return 'N' + id.to_s
end