Class: BigIndex::Adapters::AbstractAdapter

Inherits:
Object
  • Object
show all
Defined in:
lib/big_index/adapters/abstract_adapter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#connectionObject (readonly)

Returns the value of attribute connection.



6
7
8
# File 'lib/big_index/adapters/abstract_adapter.rb', line 6

def connection
  @connection
end

#nameObject (readonly)

Returns the value of attribute name.



6
7
8
# File 'lib/big_index/adapters/abstract_adapter.rb', line 6

def name
  @name
end

#optionsObject (readonly)

Returns the value of attribute options.



6
7
8
# File 'lib/big_index/adapters/abstract_adapter.rb', line 6

def options
  @options
end

Instance Method Details

#adapter_nameObject



8
9
10
# File 'lib/big_index/adapters/abstract_adapter.rb', line 8

def adapter_name
  'abstract'
end

#default_primary_key_fieldObject

Raises:

  • (NotImplementedError)


16
17
18
# File 'lib/big_index/adapters/abstract_adapter.rb', line 16

def default_primary_key_field
  raise NotImplementedError
end

#default_type_fieldObject

Raises:

  • (NotImplementedError)


12
13
14
# File 'lib/big_index/adapters/abstract_adapter.rb', line 12

def default_type_field
  raise NotImplementedError
end

#drop_index(model) ⇒ Object

Raises:

  • (NotImplementedError)


24
25
26
# File 'lib/big_index/adapters/abstract_adapter.rb', line 24

def drop_index(model)
  raise NotImplementedError
end

#execute(request) ⇒ Object

Raises:

  • (NotImplementedError)


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

Raises:

  • (NotImplementedError)


44
45
46
# File 'lib/big_index/adapters/abstract_adapter.rb', line 44

def find_by_index(model, query, options={})
  raise NotImplementedError
end

#find_ids_by_index(model, query, options = {}) ⇒ Object

Raises:

  • (NotImplementedError)


52
53
54
# File 'lib/big_index/adapters/abstract_adapter.rb', line 52

def find_ids_by_index(model, query, options={})
  raise NotImplementedError
end

#find_values_by_index(model, query, options = {}) ⇒ Object

Raises:

  • (NotImplementedError)


48
49
50
# File 'lib/big_index/adapters/abstract_adapter.rb', line 48

def find_values_by_index(model, query, options={})
  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

Raises:

  • (NotImplementedError)


40
41
42
# File 'lib/big_index/adapters/abstract_adapter.rb', line 40

def index_destroy(model)
  raise NotImplementedError
end

#index_save(model) ⇒ Object

Raises:

  • (NotImplementedError)


36
37
38
# File 'lib/big_index/adapters/abstract_adapter.rb', line 36

def index_save(model)
  raise NotImplementedError
end

#optimize_indexObject

Raises:

  • (NotImplementedError)


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

Raises:

  • (NotImplementedError)


20
21
22
# File 'lib/big_index/adapters/abstract_adapter.rb', line 20

def process_index_batch(items, loop, options={})
  raise NotImplementedError
end