class FlatKit::SentinelLeafNode

Private: The Sentinel Leaf Node is used internally by the MergeTree

This class represents a LeafNode that has no more data

Attributes

next_level[RW]

Public Instance Methods

<=>(other) click to toggle source

A sentinal node is always greater than any other node

# File lib/flat_kit/sentinel_leaf_node.rb, line 32
def <=>(other)
  return 0 if other.sentinel?
  return 1
end
finished?() click to toggle source
# File lib/flat_kit/sentinel_leaf_node.rb, line 23
def finished?
  true
end
leaf?() click to toggle source
# File lib/flat_kit/sentinel_leaf_node.rb, line 15
def leaf?
  true
end
next() click to toggle source
# File lib/flat_kit/sentinel_leaf_node.rb, line 19
def next
  nil
end
sentinel?() click to toggle source
# File lib/flat_kit/sentinel_leaf_node.rb, line 11
def sentinel?
  true
end
value() click to toggle source
# File lib/flat_kit/sentinel_leaf_node.rb, line 27
def value
  nil
end