Class: Neighbor::Redis::FlatIndex

Inherits:
Index
  • Object
show all
Defined in:
lib/neighbor/redis/flat_index.rb

Instance Method Summary collapse

Methods inherited from Index

#add, #add_all, #create, create, #drop, #exists?, #find, #nearest, #promote, #remove, #remove_all, #search

Constructor Details

#initialize(*args, initial_cap: nil, block_size: nil, **options) ⇒ FlatIndex

Returns a new instance of FlatIndex.



4
5
6
7
8
9
# File 'lib/neighbor/redis/flat_index.rb', line 4

def initialize(*args, initial_cap: nil, block_size: nil, **options)
  super(*args, **options)
  @algorithm = "FLAT"
  @initial_cap = initial_cap
  @block_size = block_size
end