class Tkrzw::IndexIterator
Iterator
for each record of the secondary index. An iterator is made by the “make_iterator” method of Index
. Every unused iterator object should be destructed explicitly by the “destruct” method to free resources.
Public Class Methods
Initializes the iterator.
-
@param index The index to scan.
# File tkrzw.rb, line 1343 def initialize(index) # (native code) end
Public Instance Methods
Releases the resource explicitly.
# File tkrzw.rb, line 1348 def destruct() # (native code) end
Initializes the iterator to indicate the first record.
# File tkrzw.rb, line 1353 def first() # (native code) end
Gets the key and the value of the current record of the iterator.
-
@return A tuple of the key and the value of the current record. On failure, nil is returned.
# File tkrzw.rb, line 1381 def get() # (native code) end
Returns a string representation of the object.
-
@return The string representation of the object.
# File tkrzw.rb, line 1393 def inspect() # (native code) end
Initializes the iterator to indicate a specific range.
-
@param key The key of the lower bound.
-
@param value The value of the lower bound.
# File tkrzw.rb, line 1365 def jump(key, value="") # (native code) end
Initializes the iterator to indicate the last record.
# File tkrzw.rb, line 1358 def last() # (native code) end
Moves the iterator to the next record.
# File tkrzw.rb, line 1370 def next() # (native code) end
Moves the iterator to the previous record.
# File tkrzw.rb, line 1375 def previous() # (native code) end
Returns a string representation of the content.
-
@return The string representation of the content.
# File tkrzw.rb, line 1387 def to_s() # (native code) end