Class: QueryBuilder::CQL::Contexts::Aggregate

Inherits:
Base
  • Object
show all
Defined in:
lib/query_builder/cql/contexts/aggregate.rb

Overview

Describes the Cassandra user-defined aggregate

Instance Method Summary collapse

Instance Method Details

#createQueryBuilder::Statements::CreateAggregate

Builds the ‘CREATE AGGREGATE’ CQL statement

Returns:

  • (QueryBuilder::Statements::CreateAggregate)


26
27
28
# File 'lib/query_builder/cql/contexts/aggregate.rb', line 26

def create
  Statements::CreateAggregate.new(context: self)
end

#dropQueryBuilder::Statements::DropAggregate

Builds the ‘DROP AGGREGATE’ CQL statement

Returns:

  • (QueryBuilder::Statements::DropAggregate)


34
35
36
# File 'lib/query_builder/cql/contexts/aggregate.rb', line 34

def drop
  Statements::DropAggregate.new(context: self)
end

#to_sString

Returns the full name of the aggregate

Returns:

  • (String)


18
19
20
# File 'lib/query_builder/cql/contexts/aggregate.rb', line 18

def to_s
  [keyspace, name].join(".")
end