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
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
246
247
248
|
# File 'lib/strokedb/data_structures/inverted_list.rb', line 246
def <(key)
true
end
|
249
250
251
|
# File 'lib/strokedb/data_structures/inverted_list.rb', line 249
def <=(key)
true
end
|
252
253
254
|
# File 'lib/strokedb/data_structures/inverted_list.rb', line 252
def to_s
"head(#{level})"
end
|