Used when creating a ContactPoint to allow users to provide a single KeySpace derived query.
Used when creating a ContactPoint to allow users to provide a single KeySpace derived query. When users want to provide a single argument to the ContactPoint#keySpace method, they can use the following syntax to generate a full keyspace initialisation query.
KeySpace("test").builder.ifNotExists
Definition used to cast an index map column with keys indexed to a query-able definition.
Definition used to cast an index map column with keys indexed to a query-able definition. This will allow users to use "CONTAINS KEY" clauses to search for matches based on map keys.
The Cassandra table inner type.
The record type of the table.
The type of the key held in the map.
The type of the value held in the map.
A MapConditionals class with CONTAINS KEY support.
Augments Cassandra VersionNumber descriptors to support simple comparison of versions.
Augments Cassandra VersionNumber descriptors to support simple comparison of versions. This allows for operations that can differ based on the Cassandra version used by the session.
Table creation clause allowing specification of CQL compaction strategies.
Table creation clause allowing specification of CQL compaction strategies.
import com.outworkers.phantom.dsl._ SomeTable.create.`with`(compaction eqs SnappyCompressor)
Helper object used to specify the compression strategy for a table.
Helper object used to specify the compression strategy for a table. According to the Cassandra specification, the available strategies are:
A simple way to define a strategy is by using the {{eqs}} method.
import com.outworkers.phantom.dsl._ SomeTable.create.with(compression eqs SnappyCompressor)
Using a compression strategy also allows using the API methods of controlling compressor behaviour:
import com.outworkers.phantom.dsl._ import com.twitter.conversions.storage._ SomeTable.create.`with`(compression eqs SnappyCompressor.chunk_length_kb(50.kilobytes))
Used as a secondary option when creating a ContactPoint to allow users to provide a single KeySpace derived query.
Used as a secondary option when creating a ContactPoint to allow users to provide a single KeySpace derived query. When users want to provide a single argument to the ContactPoint#keySpace method, they can use the following syntax to generate a full keyspace initialisation query. The KeySpace will implicitly convert to a RootSerializer.
KeySpace("test").ifNotExists
Definition used to cast a comparison clause to Map entry lookup based on a secondary index.
Definition used to cast a comparison clause to Map entry lookup based on a secondary index.
The type of the key inside the MapColumn.
The type of the value held inside the MapColumn.
The column update clause generated from MapColumn.apply(keyValue)
A MapEntriesConditionals query that allows secondary index operators on map entries.
Definition used to cast an index map column with values indexed to a query-able definition.
Definition used to cast an index map column with values indexed to a query-able definition. This will allow users to use "CONTAINS" clauses to search for matches based on map values.
The Cassandra table inner type.
The record type of the table.
The type of the key held in the map.
The type of the value held in the map.
The map column to cast to a Map column secondary index query.
A MapConditionals class with CONTAINS support.
Definition used to allow removing keys from a map column using UPDATE query syntax.
Definition used to allow removing keys from a map column using UPDATE query syntax. Keys are serialised to their CQL value and passed along using SET syntax.
Example:
UPDATE db.table WHERE a = b SET mapColumn -= { "a", "b", "c" }
The Cassandra table inner type.
The record type of the table.
The type of the key held in the map.
The type of the value held in the map.
The map column to cast to a Map column secondary index query.
A MapConditionals class with CONTAINS support.