Class: QueryBuilder::CQL::Contexts::Aggregate
- Defined in:
- lib/query_builder/cql/contexts/aggregate.rb
Overview
Describes the Cassandra user-defined aggregate
Instance Method Summary collapse
-
#create ⇒ QueryBuilder::Statements::CreateAggregate
Builds the ‘CREATE AGGREGATE’ CQL statement.
-
#drop ⇒ QueryBuilder::Statements::DropAggregate
Builds the ‘DROP AGGREGATE’ CQL statement.
-
#to_s ⇒ String
Returns the full name of the aggregate.
Instance Method Details
#create ⇒ QueryBuilder::Statements::CreateAggregate
Builds the ‘CREATE AGGREGATE’ CQL statement
26 27 28 |
# File 'lib/query_builder/cql/contexts/aggregate.rb', line 26 def create Statements::CreateAggregate.new(context: self) end |
#drop ⇒ QueryBuilder::Statements::DropAggregate
Builds the ‘DROP AGGREGATE’ CQL statement
34 35 36 |
# File 'lib/query_builder/cql/contexts/aggregate.rb', line 34 def drop Statements::DropAggregate.new(context: self) end |
#to_s ⇒ String
Returns the full name of the aggregate
18 19 20 |
# File 'lib/query_builder/cql/contexts/aggregate.rb', line 18 def to_s [keyspace, name].join(".") end |