Class: Agama::Adapters::TCCursor

Inherits:
Object
  • Object
show all
Defined in:
lib/agama/adapters/tokyocabinet.rb

Instance Method Summary collapse

Constructor Details

#initialize(bptree, type) ⇒ TCCursor

Returns a new instance of TCCursor.



134
135
136
137
# File 'lib/agama/adapters/tokyocabinet.rb', line 134

def initialize(bptree, type)
  @c = BDBCUR::new(bptree)
  @t = type
end

Instance Method Details

#firstObject



139
140
141
# File 'lib/agama/adapters/tokyocabinet.rb', line 139

def first
  @c.first
end

#jump(key) ⇒ Object



147
148
149
# File 'lib/agama/adapters/tokyocabinet.rb', line 147

def jump(key)
  @c.jump(key)
end

#keyObject



159
160
161
# File 'lib/agama/adapters/tokyocabinet.rb', line 159

def key
  @c.key
end

#lastObject



143
144
145
# File 'lib/agama/adapters/tokyocabinet.rb', line 143

def last
  @c.last
end

#nextObject



155
156
157
# File 'lib/agama/adapters/tokyocabinet.rb', line 155

def next
  @c.next
end

#prevObject



151
152
153
# File 'lib/agama/adapters/tokyocabinet.rb', line 151

def prev
  @c.prev
end

#valueObject



163
164
165
# File 'lib/agama/adapters/tokyocabinet.rb', line 163

def value
  @c.val
end