Class: QueryBuilder::CQL::Statements::CreateAggregate

Inherits:
Base show all
Includes:
Modifiers::AddField, Modifiers::Finalfunc, Modifiers::IfNotExists, Modifiers::Initcond, Modifiers::OrReplace, Modifiers::Sfunc, Modifiers::Stype
Defined in:
lib/query_builder/cql/statements/create_aggregate.rb

Overview

Describes the ‘CREATE FUNCTION’ CQL3 statement

Instance Method Summary collapse

Methods included from Modifiers::Initcond

#initcond

Methods included from Modifiers::Finalfunc

#finalfunc

Methods included from Modifiers::Stype

#stype

Methods included from Modifiers::Sfunc

#sfunc

Methods included from Modifiers::AddField

#add

Methods included from Modifiers::IfNotExists

#if_not_exists

Methods included from Modifiers::OrReplace

#or_replace

Methods included from Operators

cql, cql_composite, cql_dec, cql_element, cql_entries, cql_frozen, cql_full, cql_gt, cql_gte, cql_in, cql_inc, cql_keys, cql_list, cql_literal, cql_lt, cql_lte, cql_map, cql_set, cql_token, cql_token_value, cql_ttl, cql_tuple, cql_tuple_value, cql_writetime

Methods inherited from QueryBuilder::Core::Statement

#<<, #clauses, #initialize

Methods inherited from QueryBuilder::Core::Base

#initialize

Constructor Details

This class inherits a constructor from QueryBuilder::Core::Statement

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class QueryBuilder::CQL::Operators

Instance Method Details

#to_sString

Builds the statement

Returns:

  • (String)


25
26
27
28
29
30
# File 'lib/query_builder/cql/statements/create_aggregate.rb', line 25

def to_s
  cql[
    "CREATE", maybe_replace, "AGGREGATE", maybe_if, context.to_s,
    maybe_fields, maybe_functions
  ]
end