Class: Neighbor::Redis::FlatIndex
- Defined in:
- lib/neighbor/redis/flat_index.rb
Instance Method Summary collapse
-
#initialize(*args, initial_cap: nil, block_size: nil, **options) ⇒ FlatIndex
constructor
A new instance of FlatIndex.
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, **) super(*args, **) @algorithm = "FLAT" @initial_cap = initial_cap @block_size = block_size end |