class QueryBuilder::CQL::Contexts::Index

Describes the Cassandra table index

Public Instance Methods

create(*options) click to toggle source

Builds the ‘CREATE INDEX’ CQL statement for the current table

@param [Hash] options

@return [QueryBuilder::Statements::CreateIndex]

# File lib/query_builder/cql/contexts/index.rb, line 28
def create(*options)
  Statements::CreateIndex.new(context: self).add(options)
end
drop() click to toggle source

Builds the ‘DROP INDEX’ CQL statement

@return [QueryBuilder::Statements::DropIndex]

# File lib/query_builder/cql/contexts/index.rb, line 36
def drop
  Statements::DropIndex.new(context: self)
end
to_s() click to toggle source

<description>

@return [<type>] <description>

# File lib/query_builder/cql/contexts/index.rb, line 18
def to_s
  [table.keyspace.name, name].join(".")
end