Class: BigIndex::Adapters::AbstractAdapter
- Inherits:
-
Object
- Object
- BigIndex::Adapters::AbstractAdapter
- Defined in:
- lib/big_index/adapters/abstract_adapter.rb
Instance Attribute Summary collapse
-
#connection ⇒ Object
readonly
Returns the value of attribute connection.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #adapter_name ⇒ Object
- #default_primary_key_field ⇒ Object
- #default_type_field ⇒ Object
- #drop_index(model) ⇒ Object
- #execute(request) ⇒ Object
- #find_by_index(model, query, options = {}) ⇒ Object
- #find_ids_by_index(model, query, options = {}) ⇒ Object
- #find_values_by_index(model, query, options = {}) ⇒ Object
- #get_field_type(field_type) ⇒ Object
- #index_destroy(model) ⇒ Object
- #index_save(model) ⇒ Object
- #optimize_index ⇒ Object
- #process_index_batch(items, loop, options = {}) ⇒ Object
Instance Attribute Details
#connection ⇒ Object (readonly)
Returns the value of attribute connection.
6 7 8 |
# File 'lib/big_index/adapters/abstract_adapter.rb', line 6 def connection @connection end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/big_index/adapters/abstract_adapter.rb', line 6 def name @name end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
6 7 8 |
# File 'lib/big_index/adapters/abstract_adapter.rb', line 6 def @options end |
Instance Method Details
#adapter_name ⇒ Object
8 9 10 |
# File 'lib/big_index/adapters/abstract_adapter.rb', line 8 def adapter_name 'abstract' end |
#default_primary_key_field ⇒ Object
16 17 18 |
# File 'lib/big_index/adapters/abstract_adapter.rb', line 16 def default_primary_key_field raise NotImplementedError end |
#default_type_field ⇒ Object
12 13 14 |
# File 'lib/big_index/adapters/abstract_adapter.rb', line 12 def default_type_field raise NotImplementedError end |
#drop_index(model) ⇒ Object
24 25 26 |
# File 'lib/big_index/adapters/abstract_adapter.rb', line 24 def drop_index(model) raise NotImplementedError end |
#execute(request) ⇒ Object
32 33 34 |
# File 'lib/big_index/adapters/abstract_adapter.rb', line 32 def execute(request) raise NotImplementedError end |
#find_by_index(model, query, options = {}) ⇒ Object
44 45 46 |
# File 'lib/big_index/adapters/abstract_adapter.rb', line 44 def find_by_index(model, query, ={}) raise NotImplementedError end |
#find_ids_by_index(model, query, options = {}) ⇒ Object
52 53 54 |
# File 'lib/big_index/adapters/abstract_adapter.rb', line 52 def find_ids_by_index(model, query, ={}) raise NotImplementedError end |
#find_values_by_index(model, query, options = {}) ⇒ Object
48 49 50 |
# File 'lib/big_index/adapters/abstract_adapter.rb', line 48 def find_values_by_index(model, query, ={}) raise NotImplementedError end |
#get_field_type(field_type) ⇒ Object
28 29 30 |
# File 'lib/big_index/adapters/abstract_adapter.rb', line 28 def get_field_type(field_type) field_type end |
#index_destroy(model) ⇒ Object
40 41 42 |
# File 'lib/big_index/adapters/abstract_adapter.rb', line 40 def index_destroy(model) raise NotImplementedError end |
#index_save(model) ⇒ Object
36 37 38 |
# File 'lib/big_index/adapters/abstract_adapter.rb', line 36 def index_save(model) raise NotImplementedError end |
#optimize_index ⇒ Object
56 57 58 |
# File 'lib/big_index/adapters/abstract_adapter.rb', line 56 def optimize_index raise NotImplementedError end |
#process_index_batch(items, loop, options = {}) ⇒ Object
20 21 22 |
# File 'lib/big_index/adapters/abstract_adapter.rb', line 20 def process_index_batch(items, loop, ={}) raise NotImplementedError end |