Class: Esse::Deprecations::IndexBackendDelegator
- Inherits:
-
Object
- Object
- Esse::Deprecations::IndexBackendDelegator
- Extended by:
- Deprecate
- Defined in:
- lib/esse/deprecations/index_backend_delegator.rb
Instance Method Summary collapse
- #aliases(**kwargs) ⇒ Object
- #bulk(**kwargs) ⇒ Object
- #bulk!(**kwargs) ⇒ Object
- #close(**kwargs) ⇒ Object
- #close!(**kwargs) ⇒ Object
- #count(**kwargs) ⇒ Object
- #create_index(**kwargs) ⇒ Object
- #create_index!(**kwargs) ⇒ Object
- #delete(**kwargs) ⇒ Object
- #delete!(**kwargs) ⇒ Object
- #delete_index(**kwargs) ⇒ Object
- #delete_index!(**kwargs) ⇒ Object
- #exist?(**kwargs) ⇒ Boolean
- #find(**kwargs) ⇒ Object
- #find!(**kwargs) ⇒ Object
- #import(**kwargs) ⇒ Object
- #import!(**kwargs) ⇒ Object
- #index(**kwargs) ⇒ Object
- #index!(**kwargs) ⇒ Object
- #index_exist?(**kwargs) ⇒ Boolean
- #indices(**kwargs) ⇒ Object
-
#initialize(namespace, index) ⇒ IndexBackendDelegator
constructor
A new instance of IndexBackendDelegator.
- #open(**kwargs) ⇒ Object
- #open!(**kwargs) ⇒ Object
- #refresh(**kwargs) ⇒ Object
- #refresh!(**kwargs) ⇒ Object
- #reset_index!(**kwargs) ⇒ Object
- #update(**kwargs) ⇒ Object
- #update!(**kwargs) ⇒ Object
- #update_aliases(**kwargs) ⇒ Object
- #update_aliases!(**kwargs) ⇒ Object
- #update_mapping(**kwargs) ⇒ Object
- #update_mapping!(**kwargs) ⇒ Object
- #update_settings(**kwargs) ⇒ Object
- #update_settings!(**kwargs) ⇒ Object
Methods included from Deprecate
Constructor Details
#initialize(namespace, index) ⇒ IndexBackendDelegator
Returns a new instance of IndexBackendDelegator.
8 9 10 11 |
# File 'lib/esse/deprecations/index_backend_delegator.rb', line 8 def initialize(namespace, index) @namespace = namespace @index = index end |
Instance Method Details
#aliases(**kwargs) ⇒ Object
13 14 15 16 |
# File 'lib/esse/deprecations/index_backend_delegator.rb', line 13 def aliases(**kwargs) warning("#{@index}.#{@namespace}.aliases", "#{@index}.aliases", 2023, 12) @index.aliases(**kwargs) end |
#bulk(**kwargs) ⇒ Object
150 151 152 153 154 |
# File 'lib/esse/deprecations/index_backend_delegator.rb', line 150 def bulk(**kwargs) warning("#{@index}.#{@namespace}.bulk", "#{@index}.bulk", 2023, 12) @index.bulk(**kwargs) end |
#bulk!(**kwargs) ⇒ Object
144 145 146 147 148 |
# File 'lib/esse/deprecations/index_backend_delegator.rb', line 144 def bulk!(**kwargs) warning("#{@index}.#{@namespace}.bulk!", "#{@index}.bulk", 2023, 12) @index.bulk(**kwargs) end |
#close(**kwargs) ⇒ Object
48 49 50 51 52 |
# File 'lib/esse/deprecations/index_backend_delegator.rb', line 48 def close(**kwargs) warning("#{@index}.#{@namespace}.close", "#{@index}.close", 2023, 12) @index.close(**kwargs) end |
#close!(**kwargs) ⇒ Object
54 55 56 57 58 |
# File 'lib/esse/deprecations/index_backend_delegator.rb', line 54 def close!(**kwargs) warning("#{@index}.#{@namespace}.close!", "#{@index}.close", 2023, 12) @index.close(**kwargs) end |
#count(**kwargs) ⇒ Object
192 193 194 195 196 |
# File 'lib/esse/deprecations/index_backend_delegator.rb', line 192 def count(**kwargs) warning("#{@index}.#{@namespace}.count", "#{@index}.count", 2023, 12) @index.count(**kwargs) end |
#create_index(**kwargs) ⇒ Object
36 37 38 39 40 |
# File 'lib/esse/deprecations/index_backend_delegator.rb', line 36 def create_index(**kwargs) warning("#{@index}.#{@namespace}.create_index", "#{@index}.create_index", 2023, 12) @index.create_index(**kwargs) end |
#create_index!(**kwargs) ⇒ Object
42 43 44 45 46 |
# File 'lib/esse/deprecations/index_backend_delegator.rb', line 42 def create_index!(**kwargs) warning("#{@index}.#{@namespace}.create_index!", "#{@index}.create_index", 2023, 12) @index.create_index(**kwargs) end |
#delete(**kwargs) ⇒ Object
186 187 188 189 190 |
# File 'lib/esse/deprecations/index_backend_delegator.rb', line 186 def delete(**kwargs) warning("#{@index}.#{@namespace}.delete", "#{@index}.delete", 2023, 12) @index.delete(**kwargs) end |
#delete!(**kwargs) ⇒ Object
180 181 182 183 184 |
# File 'lib/esse/deprecations/index_backend_delegator.rb', line 180 def delete!(**kwargs) warning("#{@index}.#{@namespace}.delete!", "#{@index}.delete", 2023, 12) @index.delete(**kwargs) end |
#delete_index(**kwargs) ⇒ Object
84 85 86 87 88 |
# File 'lib/esse/deprecations/index_backend_delegator.rb', line 84 def delete_index(**kwargs) warning("#{@index}.#{@namespace}.delete_index", "#{@index}.delete_index", 2023, 12) @index.delete_index(**kwargs) end |
#delete_index!(**kwargs) ⇒ Object
90 91 92 93 94 |
# File 'lib/esse/deprecations/index_backend_delegator.rb', line 90 def delete_index!(**kwargs) warning("#{@index}.#{@namespace}.delete_index!", "#{@index}.delete_index", 2023, 12) @index.delete_index(**kwargs) end |
#exist?(**kwargs) ⇒ Boolean
198 199 200 201 202 |
# File 'lib/esse/deprecations/index_backend_delegator.rb', line 198 def exist?(**kwargs) warning("#{@index}.#{@namespace}.exist?", "#{@index}.exist?", 2023, 12) @index.exist?(**kwargs) end |
#find(**kwargs) ⇒ Object
210 211 212 213 214 |
# File 'lib/esse/deprecations/index_backend_delegator.rb', line 210 def find(**kwargs) warning("#{@index}.#{@namespace}.find", "#{@index}.get", 2023, 12) @index.get(**kwargs) end |
#find!(**kwargs) ⇒ Object
204 205 206 207 208 |
# File 'lib/esse/deprecations/index_backend_delegator.rb', line 204 def find!(**kwargs) warning("#{@index}.#{@namespace}.find!", "#{@index}.get", 2023, 12) @index.get(**kwargs) end |
#import(**kwargs) ⇒ Object
132 133 134 135 136 |
# File 'lib/esse/deprecations/index_backend_delegator.rb', line 132 def import(**kwargs) warning("#{@index}.#{@namespace}.import", "#{@index}.import", 2023, 12) @index.import(**kwargs) end |
#import!(**kwargs) ⇒ Object
138 139 140 141 142 |
# File 'lib/esse/deprecations/index_backend_delegator.rb', line 138 def import!(**kwargs) warning("#{@index}.#{@namespace}.import!", "#{@index}.import", 2023, 12) @index.import(**kwargs) end |
#index(**kwargs) ⇒ Object
162 163 164 165 166 |
# File 'lib/esse/deprecations/index_backend_delegator.rb', line 162 def index(**kwargs) warning("#{@index}.#{@namespace}.index", "#{@index}.index", 2023, 12) @index.index(**kwargs) end |
#index!(**kwargs) ⇒ Object
156 157 158 159 160 |
# File 'lib/esse/deprecations/index_backend_delegator.rb', line 156 def index!(**kwargs) warning("#{@index}.#{@namespace}.index!", "#{@index}.index", 2023, 12) @index.index(**kwargs) end |
#index_exist?(**kwargs) ⇒ Boolean
96 97 98 99 100 |
# File 'lib/esse/deprecations/index_backend_delegator.rb', line 96 def index_exist?(**kwargs) warning("#{@index}.#{@namespace}.index_exist?", "#{@index}.index_exist?", 2023, 12) @index.index_exist?(**kwargs) end |
#indices(**kwargs) ⇒ Object
18 19 20 21 |
# File 'lib/esse/deprecations/index_backend_delegator.rb', line 18 def indices(**kwargs) warning("#{@index}.#{@namespace}.indices", "#{@index}.indices_pointing_to_alias", 2023, 12) @index.indices_pointing_to_alias(**kwargs) end |
#open(**kwargs) ⇒ Object
60 61 62 63 64 |
# File 'lib/esse/deprecations/index_backend_delegator.rb', line 60 def open(**kwargs) warning("#{@index}.#{@namespace}.open", "#{@index}.open", 2023, 12) @index.open(**kwargs) end |
#open!(**kwargs) ⇒ Object
66 67 68 69 70 |
# File 'lib/esse/deprecations/index_backend_delegator.rb', line 66 def open!(**kwargs) warning("#{@index}.#{@namespace}.open!", "#{@index}.open", 2023, 12) @index.open(**kwargs) end |
#refresh(**kwargs) ⇒ Object
72 73 74 75 76 |
# File 'lib/esse/deprecations/index_backend_delegator.rb', line 72 def refresh(**kwargs) warning("#{@index}.#{@namespace}.refresh", "#{@index}.refresh", 2023, 12) @index.refresh(**kwargs) end |
#refresh!(**kwargs) ⇒ Object
78 79 80 81 82 |
# File 'lib/esse/deprecations/index_backend_delegator.rb', line 78 def refresh!(**kwargs) warning("#{@index}.#{@namespace}.refresh!", "#{@index}.refresh", 2023, 12) @index.refresh(**kwargs) end |
#reset_index!(**kwargs) ⇒ Object
126 127 128 129 130 |
# File 'lib/esse/deprecations/index_backend_delegator.rb', line 126 def reset_index!(**kwargs) warning("#{@index}.#{@namespace}.reset_index!", "#{@index}.reset_index", 2023, 12) @index.reset_index(**kwargs) end |
#update(**kwargs) ⇒ Object
174 175 176 177 178 |
# File 'lib/esse/deprecations/index_backend_delegator.rb', line 174 def update(**kwargs) warning("#{@index}.#{@namespace}.update", "#{@index}.update", 2023, 12) @index.update(**kwargs) end |
#update!(**kwargs) ⇒ Object
168 169 170 171 172 |
# File 'lib/esse/deprecations/index_backend_delegator.rb', line 168 def update!(**kwargs) warning("#{@index}.#{@namespace}.update!", "#{@index}.update", 2023, 12) @index.update(**kwargs) end |
#update_aliases(**kwargs) ⇒ Object
28 29 30 31 32 33 34 |
# File 'lib/esse/deprecations/index_backend_delegator.rb', line 28 def update_aliases(**kwargs) warning("#{@index}.#{@namespace}.update_aliases", "#{@index}.update_aliases", 2023, 12) @index.update_aliases(**kwargs) rescue Esse::Transport::NotFoundError { 'errors' => true } end |
#update_aliases!(**kwargs) ⇒ Object
23 24 25 26 |
# File 'lib/esse/deprecations/index_backend_delegator.rb', line 23 def update_aliases!(**kwargs) warning("#{@index}.#{@namespace}.update_aliases!", "#{@index}.update_aliases", 2023, 12) @index.update_aliases(**kwargs) end |
#update_mapping(**kwargs) ⇒ Object
108 109 110 111 112 |
# File 'lib/esse/deprecations/index_backend_delegator.rb', line 108 def update_mapping(**kwargs) warning("#{@index}.#{@namespace}.update_mapping", "#{@index}.update_mapping", 2023, 12) @index.update_mapping(**kwargs) end |
#update_mapping!(**kwargs) ⇒ Object
102 103 104 105 106 |
# File 'lib/esse/deprecations/index_backend_delegator.rb', line 102 def update_mapping!(**kwargs) warning("#{@index}.#{@namespace}.update_mapping!", "#{@index}.update_mapping", 2023, 12) @index.update_mapping(**kwargs) end |
#update_settings(**kwargs) ⇒ Object
120 121 122 123 124 |
# File 'lib/esse/deprecations/index_backend_delegator.rb', line 120 def update_settings(**kwargs) warning("#{@index}.#{@namespace}.update_settings", "#{@index}.update_settings", 2023, 12) @index.update_settings(**kwargs) end |
#update_settings!(**kwargs) ⇒ Object
114 115 116 117 118 |
# File 'lib/esse/deprecations/index_backend_delegator.rb', line 114 def update_settings!(**kwargs) warning("#{@index}.#{@namespace}.update_settings!", "#{@index}.update_settings", 2023, 12) @index.update_settings(**kwargs) end |