Class: StrokeDB::InvertedList::TailNode

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

Overview

also proxy-to-next-chunk node

Instance Attribute Summary collapse

Attributes inherited from Node

#_serialized_index, #forward, #key, #values

Instance Method Summary collapse

Methods inherited from Node

#free, #level, #next

Constructor Details

#initializeTailNode

Returns a new instance of TailNode.



260
261
262
# File 'lib/strokedb/data_structures/inverted_list.rb', line 260

def initialize
	super 1, nil, nil
end

Instance Attribute Details

#next_listObject

Returns the value of attribute next_list.



259
260
261
# File 'lib/strokedb/data_structures/inverted_list.rb', line 259

def next_list
  @next_list
end

Instance Method Details

#<(key) ⇒ Object



263
264
265
# File 'lib/strokedb/data_structures/inverted_list.rb', line 263

def <(key)
 false
end

#<=(key) ⇒ Object



266
267
268
# File 'lib/strokedb/data_structures/inverted_list.rb', line 266

def <=(key)
 false
end

#to_sObject



269
270
271
# File 'lib/strokedb/data_structures/inverted_list.rb', line 269

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