Package

com.outworkers.phantom

dsl

Permalink

package dsl

Linear Supertypes
DeleteImplicits, KeySpaceConstruction, TopologyStrategies, UsingClauseOperations, Operators, SelectImplicits, CreateImplicits, TablePropertyClauses, CompressionStrategies, CompactionStrategies, ImplicitMechanism, ModifyMechanism, ColumnModifiers, CollectionOperators, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. dsl
  2. DeleteImplicits
  3. KeySpaceConstruction
  4. TopologyStrategies
  5. UsingClauseOperations
  6. Operators
  7. SelectImplicits
  8. CreateImplicits
  9. TablePropertyClauses
  10. CompressionStrategies
  11. CompactionStrategies
  12. ImplicitMechanism
  13. ModifyMechanism
  14. ColumnModifiers
  15. CollectionOperators
  16. AnyRef
  17. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type Ascending = keys.Ascending

    Permalink
  2. type BigDecimalColumn[Owner <: CassandraTable[Owner, Record], Record] = column.PrimitiveColumn[Owner, Record, BigDecimal]

    Permalink
  3. type BigIntColumn[Owner <: CassandraTable[Owner, Record], Record] = column.PrimitiveColumn[Owner, Record, BigInt]

    Permalink
  4. type BlobColumn[Owner <: CassandraTable[Owner, Record], Record, T] = column.PrimitiveColumn[Owner, Record, ByteBuffer]

    Permalink
  5. type BooleanColumn[Owner <: CassandraTable[Owner, Record], Record] = column.PrimitiveColumn[Owner, Record, Boolean]

    Permalink
  6. type CassandraTable[Owner <: CassandraTable[Owner, Record], Record] = phantom.CassandraTable[Owner, Record]

    Permalink
  7. type ClusteringOrder = keys.ClusteringOrder

    Permalink
  8. type Column[Owner <: CassandraTable[Owner, Record], Record, T] = column.Column[Owner, Record, T]

    Permalink
  9. type CounterColumn[Owner <: CassandraTable[Owner, Record], Record] = column.CounterColumn[Owner, Record]

    Permalink
  10. implicit final class CounterOperations[Owner <: CassandraTable[Owner, Record], Record] extends AnyVal

    Permalink
  11. type Database[DB <: Database[DB]] = database.Database[DB]

    Permalink
  12. type DatabaseProvider[DB <: Database[DB]] = database.DatabaseProvider[DB]

    Permalink
  13. type DateColumn[Owner <: CassandraTable[Owner, Record], Record] = column.PrimitiveColumn[Owner, Record, Date]

    Permalink
  14. sealed class DateTieredCompactionStrategy extends CompactionProperties[DateTieredCompactionStrategy]

    Permalink
    Definition Classes
    CompactionStrategies
  15. type DateTime = org.joda.time.DateTime

    Permalink
  16. implicit final class DateTimeAugmenter extends AnyVal

    Permalink
  17. type DateTimeColumn[Owner <: CassandraTable[Owner, Record], Record] = column.PrimitiveColumn[Owner, Record, DateTime]

    Permalink
  18. type DateTimeZone = org.joda.time.DateTimeZone

    Permalink
  19. class DeflateCompressor extends CompressionStrategy[DeflateCompressor]

    Permalink
    Definition Classes
    CompressionStrategies
  20. type Descending = keys.Descending

    Permalink
  21. type DoubleColumn[Owner <: CassandraTable[Owner, Record], Record] = column.PrimitiveColumn[Owner, Record, Double]

    Permalink
  22. type Entries = keys.Entries

    Permalink
  23. type FloatColumn[Owner <: CassandraTable[Owner, Record], Record] = column.PrimitiveColumn[Owner, Record, Float]

    Permalink
  24. type Index = keys.Index

    Permalink
  25. type InetAddressColumn[Owner <: CassandraTable[Owner, Record], Record] = column.PrimitiveColumn[Owner, Record, InetAddress]

    Permalink
  26. type IntColumn[Owner <: CassandraTable[Owner, Record], Record] = column.PrimitiveColumn[Owner, Record, Int]

    Permalink
  27. type IteratorResult[R] = builder.query.IteratorResult[R]

    Permalink
  28. type KeySpace = connectors.KeySpace

    Permalink
  29. type KeySpaceDef = CassandraConnection

    Permalink
  30. type Keys = keys.Keys

    Permalink
  31. class LZ4Compressor extends CompressionStrategy[LZ4Compressor]

    Permalink
    Definition Classes
    CompressionStrategies
  32. sealed class LeveledCompactionStrategy extends CompactionProperties[LeveledCompactionStrategy]

    Permalink
    Definition Classes
    CompactionStrategies
  33. implicit class ListLikeModifyColumn[Owner <: CassandraTable[Owner, Record], Record, RR] extends AnyRef

    Permalink
    Definition Classes
    CollectionOperators
  34. type ListResult[R] = builder.query.ListResult[R]

    Permalink
  35. type LocalDate = org.joda.time.LocalDate

    Permalink
  36. type LocalDateColumn[Owner <: CassandraTable[Owner, Record], Record] = column.PrimitiveColumn[Owner, Record, LocalDate]

    Permalink
  37. type LongColumn[Owner <: CassandraTable[Owner, Record], Record] = column.PrimitiveColumn[Owner, Record, Long]

    Permalink
  38. implicit class MapLikeModifyColumn[Owner <: CassandraTable[Owner, Record], Record, A, B] extends AnyRef

    Permalink
    Definition Classes
    CollectionOperators
  39. sealed class NetworkTopologyStrategy extends ReplicationStrategy[NetworkTopologyStrategy]

    Permalink
    Definition Classes
    TopologyStrategies
  40. type OptionalBigDecimalColumn[Owner <: CassandraTable[Owner, Record], Record] = column.OptionalPrimitiveColumn[Owner, Record, BigDecimal]

    Permalink
  41. type OptionalBigIntColumn[Owner <: CassandraTable[Owner, Record], Record] = column.OptionalPrimitiveColumn[Owner, Record, BigInt]

    Permalink
  42. type OptionalBlobColumn[Owner <: CassandraTable[Owner, Record], Record, T] = column.OptionalPrimitiveColumn[Owner, Record, ByteBuffer]

    Permalink
  43. type OptionalBooleanColumn[Owner <: CassandraTable[Owner, Record], Record] = column.OptionalPrimitiveColumn[Owner, Record, Boolean]

    Permalink
  44. type OptionalColumn[Owner <: CassandraTable[Owner, Record], Record, T] = column.OptionalColumn[Owner, Record, T]

    Permalink
  45. type OptionalDateColumn[Owner <: CassandraTable[Owner, Record], Record] = column.OptionalPrimitiveColumn[Owner, Record, Date]

    Permalink
  46. type OptionalDateTimeColumn[Owner <: CassandraTable[Owner, Record], Record] = column.OptionalPrimitiveColumn[Owner, Record, DateTime]

    Permalink
  47. type OptionalDoubleColumn[Owner <: CassandraTable[Owner, Record], Record] = column.OptionalPrimitiveColumn[Owner, Record, Double]

    Permalink
  48. type OptionalFloatColumn[Owner <: CassandraTable[Owner, Record], Record] = column.OptionalPrimitiveColumn[Owner, Record, Float]

    Permalink
  49. type OptionalInetAddressColumn[Owner <: CassandraTable[Owner, Record], Record] = column.OptionalPrimitiveColumn[Owner, Record, InetAddress]

    Permalink
  50. type OptionalIntColumn[Owner <: CassandraTable[Owner, Record], Record] = column.OptionalPrimitiveColumn[Owner, Record, Int]

    Permalink
  51. type OptionalLocalDateColumn[Owner <: CassandraTable[Owner, Record], Record] = column.OptionalPrimitiveColumn[Owner, Record, LocalDate]

    Permalink
  52. type OptionalLongColumn[Owner <: CassandraTable[Owner, Record], Record] = column.OptionalPrimitiveColumn[Owner, Record, Long]

    Permalink
  53. type OptionalPrimitiveColumn[Owner <: CassandraTable[Owner, Record], Record, T] = column.OptionalPrimitiveColumn[Owner, Record, T]

    Permalink
  54. type OptionalSmallIntColumn[Owner <: CassandraTable[Owner, Record], Record] = column.OptionalPrimitiveColumn[Owner, Record, Short]

    Permalink
  55. type OptionalStringColumn[Owner <: CassandraTable[Owner, Record], Record] = column.OptionalPrimitiveColumn[Owner, Record, String]

    Permalink
  56. type OptionalTimeUUIDColumn[Owner <: CassandraTable[Owner, Record], Record] = column.OptionalTimeUUIDColumn[Owner, Record]

    Permalink
  57. type OptionalTinyIntColumn[Owner <: CassandraTable[Owner, Record], Record] = column.OptionalPrimitiveColumn[Owner, Record, Byte]

    Permalink
  58. type OptionalUUIDColumn[Owner <: CassandraTable[Owner, Record], Record] = column.OptionalPrimitiveColumn[Owner, Record, UUID]

    Permalink
  59. type PartitionKey = keys.PartitionKey

    Permalink
  60. implicit final class PartitionTokenHelper[T] extends AnyVal

    Permalink
  61. type PrimaryKey = keys.PrimaryKey

    Permalink
  62. type PrimitiveColumn[Owner <: CassandraTable[Owner, Record], Record, T] = column.PrimitiveColumn[Owner, Record, T]

    Permalink
  63. type RecordResult[R] = builder.query.RecordResult[R]

    Permalink
  64. type ResultSet = datastax.driver.core.ResultSet

    Permalink
  65. implicit final class RichNumber extends AnyVal

    Permalink
  66. type RootConnector = connectors.RootConnector

    Permalink
  67. type Row = datastax.driver.core.Row

    Permalink
  68. implicit class SelectColumnOptional[Owner <: CassandraTable[Owner, Record], Record, T] extends SelectColumn[Option[T]]

    Permalink
    Definition Classes
    ColumnModifiers
  69. implicit class SelectColumnRequired[Owner <: CassandraTable[Owner, Record], Record, T] extends SelectColumn[T]

    Permalink
    Definition Classes
    ColumnModifiers
  70. type Session = datastax.driver.core.Session

    Permalink
  71. implicit class SetLikeModifyColumn[Owner <: CassandraTable[Owner, Record], Record, RR] extends AnyRef

    Permalink
    Definition Classes
    CollectionOperators
  72. sealed class SimpleStrategy extends ReplicationStrategy[SimpleStrategy]

    Permalink
    Definition Classes
    TopologyStrategies
  73. sealed class SizeTieredCompactionStrategy extends CompactionProperties[SizeTieredCompactionStrategy]

    Permalink
    Definition Classes
    CompactionStrategies
  74. type SmallIntColumn[Owner <: CassandraTable[Owner, Record], Record] = column.PrimitiveColumn[Owner, Record, Short]

    Permalink
  75. class SnappyCompressor extends CompressionStrategy[SnappyCompressor]

    Permalink
    Definition Classes
    CompressionStrategies
  76. type StaticColumn = keys.StaticColumn

    Permalink
  77. type StringColumn[Owner <: CassandraTable[Owner, Record], Record] = column.PrimitiveColumn[Owner, Record, String]

    Permalink
  78. type TimeUUIDColumn[Owner <: CassandraTable[Owner, Record], Record] = column.TimeUUIDColumn[Owner, Record]

    Permalink
  79. sealed class TimeWindowCompactionStrategy extends CompactionProperties[TimeWindowCompactionStrategy]

    Permalink
    Definition Classes
    CompactionStrategies
  80. type TinyIntColumn[Owner <: CassandraTable[Owner, Record], Record] = column.PrimitiveColumn[Owner, Record, Byte]

    Permalink
  81. type UUID = java.util.UUID

    Permalink
  82. implicit final class UUIDAugmenter extends AnyVal

    Permalink
  83. type UUIDColumn[Owner <: CassandraTable[Owner, Record], Record] = column.PrimitiveColumn[Owner, Record, UUID]

    Permalink
  84. implicit final class VersionAugmenter extends AnyVal

    Permalink

    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.

Value Members

  1. object ? extends PrepareMark

    Permalink
  2. object Batch extends Batcher with Product with Serializable

    Permalink
  3. val Cache: builder.query.CreateImplicits.Caching.type

    Permalink
    Definition Classes
    CreateImplicits
  4. object Caching extends CachingStrategies

    Permalink
    Definition Classes
    TablePropertyClauses
  5. object ConsistencyLevel

    Permalink
  6. val ContactPoint: connectors.ContactPoint.type

    Permalink
  7. val ContactPoints: connectors.ContactPoints.type

    Permalink
  8. object DateTieredCompactionStrategy extends DateTieredCompactionStrategy with Product with Serializable

    Permalink
    Definition Classes
    CompactionStrategies
  9. object DeflateCompressor extends DeflateCompressor

    Permalink
    Definition Classes
    CompressionStrategies
  10. val KeySpace: connectors.KeySpace.type

    Permalink
  11. object LZ4Compressor extends LZ4Compressor

    Permalink
    Definition Classes
    CompressionStrategies
  12. object LeveledCompactionStrategy extends LeveledCompactionStrategy with Product with Serializable

    Permalink
    Definition Classes
    CompactionStrategies
  13. object NetworkTopologyStrategy extends NetworkTopologyStrategy

    Permalink
    Definition Classes
    TopologyStrategies
  14. object SimpleStrategy extends SimpleStrategy

    Permalink
    Definition Classes
    TopologyStrategies
  15. object SizeTieredCompactionStrategy extends SizeTieredCompactionStrategy with Product with Serializable

    Permalink
    Definition Classes
    CompactionStrategies
  16. object SnappyCompressor extends SnappyCompressor

    Permalink
    Definition Classes
    CompressionStrategies
  17. object Storage

    Permalink
    Definition Classes
    TablePropertyClauses
  18. object TimeWindowCompactionStrategy extends TimeWindowCompactionStrategy with Product with Serializable

    Permalink
    Definition Classes
    CompactionStrategies
  19. val Version: DefaultVersions.type

    Permalink
  20. def apply[T <: phantom.CassandraTable[T, _], R](root: RootCreateQuery[T, R])(implicit keySpace: connectors.KeySpace): Default[T, R]

    Permalink
    Definition Classes
    CreateImplicits
  21. final val bloom_filter_fp_chance: BloomFilterFpChanceBuilder

    Permalink
    Definition Classes
    TablePropertyClauses
  22. final val caching: CachingBuilder

    Permalink
    Definition Classes
    TablePropertyClauses
  23. implicit def columnClauseToDeleteCondition(col: AbstractColumn[_]): Condition

    Permalink
    Definition Classes
    DeleteImplicits
  24. implicit final def columnToCasCompareColumn[RR](col: AbstractColumn[RR])(implicit ev: <:!<[col.type, Indexed]): CasConditionalOperators[RR]

    Permalink
    Definition Classes
    ImplicitMechanism
    Annotations
    @implicitNotFound( ... )
  25. implicit final def columnToDropColumn[T](col: AbstractColumn[T])(implicit ev: <:!<[col.type, Undroppable]): DropColumn[T]

    Permalink
    Definition Classes
    ImplicitMechanism
    Annotations
    @implicitNotFound( ... )
  26. implicit def columnToModifyColumn[RR](col: AbstractColumn[RR])(implicit ev: <:!<[col.type, Unmodifiable], ev2: <:!<[col.type, CollectionValueDefinition[RR]]): ModifyColumn[RR]

    Permalink
    Definition Classes
    ModifyMechanism
    Annotations
    @implicitNotFound( ... )
  27. implicit def columnUpdateClauseToDeleteCondition(clause: MapKeyUpdateClause[_, _]): Condition

    Permalink
    Definition Classes
    DeleteImplicits
  28. final val comment: CommentClauseBuilder

    Permalink
    Definition Classes
    TablePropertyClauses
  29. final val compaction: CompactionBuilder

    Permalink

    Table creation clause allowing specification of CQL compaction strategies.

    Table creation clause allowing specification of CQL compaction strategies.

    • SizeTieredCompactionStrategy
    • LeveledCompactionStrategy
    • DateTieredCompactionStrategy
    import com.outworkers.phantom.dsl._
    
    SomeTable.create.`with`(compaction eqs SnappyCompressor)
    Definition Classes
    TablePropertyClauses
  30. final val compression: CompressionBuilder

    Permalink

    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:

    • SnappyCompressor
    • LZ4Compressor
    • DeflateCompressor

    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))
    Definition Classes
    TablePropertyClauses
  31. implicit lazy val context: ExecutionContextExecutor

    Permalink
  32. def cql(str: String): ExecutableStatement

    Permalink
  33. def cql(str: CQLQuery): ExecutableStatement

    Permalink
  34. object dateOf extends DateOfCqlFunction

    Permalink
    Definition Classes
    Operators
  35. final val dclocal_read_repair_chance: DcLocalReadRepairChanceBuilder

    Permalink
    Definition Classes
    TablePropertyClauses
  36. final val default_time_to_live: TimeToLiveBuilder

    Permalink
    Definition Classes
    TablePropertyClauses
  37. val durable_writes: AnyRef { def eqs(clause: Boolean): com.outworkers.phantom.builder.serializers.BuilderClause }

    Permalink
    Definition Classes
    TopologyStrategies
  38. final val gc_grace_seconds: GcGraceSecondsBuilder

    Permalink
    Definition Classes
    TablePropertyClauses
  39. object ignoreNulls extends Condition

    Permalink
    Definition Classes
    UsingClauseOperations
  40. implicit def indexedToQueryColumn[T](col: AbstractColumn[T] with Indexed)(implicit arg0: Primitive[T]): QueryColumn[T]

    Permalink
    Definition Classes
    ImplicitMechanism
  41. implicit def mapColumnDefinitionToEntriesQueryColumn[K, V](cond: MapKeyUpdateClause[K, V])(implicit arg0: Primitive[K], arg1: Primitive[V]): MapEntriesConditionals[K, V]

    Permalink

    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.

    K

    The type of the key inside the MapColumn.

    V

    The type of the value held inside the MapColumn.

    cond

    The column update clause generated from MapColumn.apply(keyValue)

    returns

    A MapEntriesConditionals query that allows secondary index operators on map entries.

    Definition Classes
    ImplicitMechanism
  42. implicit def mapColumnToQueryColumn[T <: CassandraTable[T, R], R, K, V](col: AbstractMapColumn[T, R, K, V] with Index)(implicit ev: <:!<[col, Keys]): MapConditionals[T, R, K, V]

    Permalink

    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.

    T

    The Cassandra table inner type.

    R

    The record type of the table.

    K

    The type of the key held in the map.

    V

    The type of the value held in the map.

    col

    The map column to cast to a Map column secondary index query.

    returns

    A MapConditionals class with CONTAINS support.

    Definition Classes
    ImplicitMechanism
  43. implicit def mapKeysColumnToQueryColumn[T <: CassandraTable[T, R], R, K, V](col: AbstractMapColumn[T, R, K, V] with Index with Keys): MapKeyConditionals[T, R, K, V]

    Permalink

    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.

    T

    The Cassandra table inner type.

    R

    The record type of the table.

    K

    The type of the key held in the map.

    V

    The type of the value held in the map.

    col

    The map column to cast to a Map column secondary index query.

    returns

    A MapConditionals class with CONTAINS KEY support.

    Definition Classes
    ImplicitMechanism
  44. object maxTimeuuid extends MaxTimeUUID

    Permalink
    Definition Classes
    Operators
  45. object minTimeuuid extends MinTimeUUID

    Permalink
    Definition Classes
    Operators
  46. object now extends NowCqlFunction

    Permalink
    Definition Classes
    Operators
  47. implicit def optionalColumnToModifyColumn[Table <: phantom.CassandraTable[Table, Rec], Rec, RR](col: column.OptionalColumn[Table, Rec, RR])(implicit ev: <:!<[col.type, Unmodifiable], ev2: <:!<[col.type, CollectionValueDefinition[RR]]): ModifyColumnOptional[RR]

    Permalink
    Definition Classes
    ModifyMechanism
    Annotations
    @implicitNotFound( ... )
  48. implicit def optionalIndexToQueryColumn[T](col: AbstractColumn[Option[T]] with Indexed)(implicit arg0: Primitive[T]): QueryColumn[T]

    Permalink
    Definition Classes
    ImplicitMechanism
  49. implicit def orderingColumn[RR](col: AbstractColumn[RR] with PrimaryKey): OrderingColumn[RR]

    Permalink
    Definition Classes
    ImplicitMechanism
  50. implicit def primitiveToTokenOp[RR](value: RR)(implicit arg0: Primitive[RR]): TokenConstructor[::[RR, HNil], ValueToken]

    Permalink
  51. final val read_repair_chance: ReadRepairChanceBuilder

    Permalink
    Definition Classes
    TablePropertyClauses
  52. final val replicate_on_write: ReplicateOnWriteBuilder

    Permalink
    Definition Classes
    TablePropertyClauses
  53. val replication: AnyRef { def eqs(strategy: com.outworkers.phantom.builder.serializers.ReplicationStrategy[_]): com.outworkers.phantom.builder.serializers.BuilderClause }

    Permalink
    Definition Classes
    TopologyStrategies
  54. implicit def rootCreateQueryToCreateQuery[T <: phantom.CassandraTable[T, _], R](root: RootCreateQuery[T, R])(implicit keySpace: connectors.KeySpace): Default[T, R]

    Permalink
    Definition Classes
    CreateImplicits
  55. implicit final def rootSelectBlockToSelectQuery[T <: phantom.CassandraTable[T, _], R](root: RootSelectBlock[T, R])(implicit keySpace: connectors.KeySpace): Default[T, R]

    Permalink
    Definition Classes
    SelectImplicits
    Annotations
    @implicitNotFound( ... )
  56. implicit def rootSerializerToKeySpaceSerializer(serializer: RootSerializer): KeySpaceSerializer

    Permalink
    Definition Classes
    KeySpaceConstruction
  57. implicit def setColumnToQueryColumn[T <: CassandraTable[T, R], R, RR](col: AbstractSetColumn[T, R, RR] with Index): SetConditionals[T, R, RR]

    Permalink
    Definition Classes
    ImplicitMechanism
  58. object token extends TokenCqlFunction

    Permalink
    Definition Classes
    Operators
  59. object ttl extends TTLOfFunction

    Permalink
    Definition Classes
    Operators
  60. object unixTimestampOf extends UnixTimestampOfCqlFunction

    Permalink
    Definition Classes
    Operators
  61. object writetime extends WritetimeCqlFunction

    Permalink
    Definition Classes
    Operators

Inherited from DeleteImplicits

Inherited from KeySpaceConstruction

Inherited from TopologyStrategies

Inherited from UsingClauseOperations

Inherited from Operators

Inherited from SelectImplicits

Inherited from CreateImplicits

Inherited from TablePropertyClauses

Inherited from CompressionStrategies

Inherited from CompactionStrategies

Inherited from ImplicitMechanism

Inherited from ModifyMechanism

Inherited from ColumnModifiers

Inherited from CollectionOperators

Inherited from AnyRef

Inherited from Any

Ungrouped