Class: StrokeDB::InvertedList::HeadNode

Inherits:
Node show all
Defined in:
lib/strokedb/data_structures/inverted_list.rb

Instance Attribute Summary

Attributes inherited from Node

#_serialized_index, #forward, #key, #values

Instance Method Summary collapse

Methods inherited from Node

#free, #level, #next

Constructor Details

#initializeHeadNode

Returns a new instance of HeadNode.



243
244
245
# File 'lib/strokedb/data_structures/inverted_list.rb', line 243

def initialize
	super 1, nil, nil
end

Instance Method Details

#<(key) ⇒ Object



246
247
248
# File 'lib/strokedb/data_structures/inverted_list.rb', line 246

def <(key)
 true
end

#<=(key) ⇒ Object



249
250
251
# File 'lib/strokedb/data_structures/inverted_list.rb', line 249

def <=(key)
 true
end

#to_sObject



252
253
254
# File 'lib/strokedb/data_structures/inverted_list.rb', line 252

def to_s
  "head(#{level})"
end