Module: Groovy::Model::PatriciaTrieTable::ClassMethods

Extended by:
Forwardable
Defined in:
lib/groovy/model.rb

Instance Method Summary collapse

Instance Method Details

#each_near(str, options = {}, &block) ⇒ Object



366
367
368
369
370
# File 'lib/groovy/model.rb', line 366

def each_near(str, options = {}, &block)
  table.open_near_cursor(str, options) do |cursor|
    cursor.each { |r| yield r }
  end
end

#each_with_prefix(prefix, options = {}, &block) ⇒ Object



360
361
362
363
364
# File 'lib/groovy/model.rb', line 360

def each_with_prefix(prefix, options = {}, &block)
  table.open_prefix_cursor(prefix, options) do |cursor|
    cursor.each { |r| yield r }
  end
end