Module: NoSE::StatementSupportQuery

Included in:
Connection, Delete, Insert, Update
Defined in:
lib/nose/statements.rb

Overview

Extend Statement objects to allow them to generate support queries

Instance Method Summary collapse

Instance Method Details

#modifies_index?(index) ⇒ Boolean

Determine if this statement modifies a particular index

Returns:

  • (Boolean)


563
564
565
# File 'lib/nose/statements.rb', line 563

def modifies_index?(index)
  !(@settings.map(&:field).to_set & index.all_fields).empty?
end

#support_queries(_index) ⇒ Array<SupportQuery>

Support queries required to updating the given index with this statement

Returns:



569
570
571
# File 'lib/nose/statements.rb', line 569

def support_queries(_index)
  []
end