Class: Agama::Adapters::TCCursor
- Inherits:
-
Object
- Object
- Agama::Adapters::TCCursor
- Defined in:
- lib/agama/adapters/tokyocabinet.rb
Instance Method Summary collapse
- #first ⇒ Object
-
#initialize(bptree, type) ⇒ TCCursor
constructor
A new instance of TCCursor.
- #jump(key) ⇒ Object
- #key ⇒ Object
- #last ⇒ Object
- #next ⇒ Object
- #prev ⇒ Object
- #value ⇒ Object
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
#first ⇒ Object
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 |
#key ⇒ Object
159 160 161 |
# File 'lib/agama/adapters/tokyocabinet.rb', line 159 def key @c.key end |
#last ⇒ Object
143 144 145 |
# File 'lib/agama/adapters/tokyocabinet.rb', line 143 def last @c.last end |
#next ⇒ Object
155 156 157 |
# File 'lib/agama/adapters/tokyocabinet.rb', line 155 def next @c.next end |
#prev ⇒ Object
151 152 153 |
# File 'lib/agama/adapters/tokyocabinet.rb', line 151 def prev @c.prev end |
#value ⇒ Object
163 164 165 |
# File 'lib/agama/adapters/tokyocabinet.rb', line 163 def value @c.val end |