Class: StrokeDB::Skiplist::TailNode

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

Overview

also proxy-to-next-chunk node

Instance Attribute Summary collapse

Attributes inherited from Node

#_serialized_index, #forward, #key, #timestamp, #value

Instance Method Summary collapse

Methods inherited from Node

#free, #level, #next

Constructor Details

#initializeTailNode

Returns a new instance of TailNode.



288
289
290
# File 'lib/strokedb/data_structures/skiplist.rb', line 288

def initialize
	super 1, nil, nil
end

Instance Attribute Details

#next_listObject

Returns the value of attribute next_list.



287
288
289
# File 'lib/strokedb/data_structures/skiplist.rb', line 287

def next_list
  @next_list
end

Instance Method Details

#<(key) ⇒ Object



291
292
293
# File 'lib/strokedb/data_structures/skiplist.rb', line 291

def <(key)
 false
end

#<=(key) ⇒ Object



294
295
296
# File 'lib/strokedb/data_structures/skiplist.rb', line 294

def <=(key)
 false
end

#to_sObject



297
298
299
# File 'lib/strokedb/data_structures/skiplist.rb', line 297

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