Class: Hivonic::Commands::CleanupViews

Inherits:
CleanupQueryCommand show all
Defined in:
lib/hivonic/commands.rb

Instance Attribute Summary

Attributes inherited from HiveQueryCommand

#db, #hive_opts

Attributes inherited from Subcommand

#dry_run, #exitstatus, #query, #regexp, #subcommand, #time_format, #time_group_index, #ttl

Instance Method Summary collapse

Methods inherited from CleanupQueryCommand

#build_query, #filter, #list_tables, #query, #subcommand

Methods inherited from HiveQueryCommand

#initialize, #query, #subcommand

Methods inherited from Subcommand

#initialize, #is_successful?, #output, #run, run, #successful?

Constructor Details

This class inherits a constructor from Hivonic::Commands::HiveQueryCommand

Instance Method Details

#drop_query_for(table, opts) ⇒ Object



237
238
239
# File 'lib/hivonic/commands.rb', line 237

def drop_query_for(table, opts)
  DropView.new(opts, [self.db, table]).query
end