com.outworkers.phantom

dsl

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
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. type Ascending = keys.Ascending

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

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

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

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

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

  7. type ClusteringOrder = keys.ClusteringOrder

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

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

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

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

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

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

  14. sealed class DateTieredCompactionStrategy extends CompactionProperties[DateTieredCompactionStrategy]

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

  16. implicit final class DateTimeAugmenter extends AnyVal

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

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

  19. class DeflateCompressor extends CompressionStrategy[DeflateCompressor]

    Definition Classes
    CompressionStrategies
  20. type Descending = keys.Descending

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

  22. type Entries = keys.Entries

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

  24. type Index = keys.Index

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

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

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

  28. type KeySpace = connectors.KeySpace

  29. type KeySpaceDef = CassandraConnection

  30. type Keys = keys.Keys

  31. class LZ4Compressor extends CompressionStrategy[LZ4Compressor]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  59. type PartitionKey = keys.PartitionKey

  60. implicit final class PartitionTokenHelper[T] extends AnyVal

  61. type PrimaryKey = keys.PrimaryKey

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

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

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

  65. implicit final class RichNumber extends AnyVal

  66. type RootConnector = connectors.RootConnector

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

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

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

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

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

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

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

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

  75. class SnappyCompressor extends CompressionStrategy[SnappyCompressor]

    Definition Classes
    CompressionStrategies
  76. type StaticColumn = keys.StaticColumn

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

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

  79. sealed class TimeWindowCompactionStrategy extends CompactionProperties[TimeWindowCompactionStrategy]

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

  81. type UUID = java.util.UUID

  82. implicit final class UUIDAugmenter extends AnyVal

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

  84. implicit final class VersionAugmenter extends AnyVal

    Augments Cassandra VersionNumber descriptors to support simple comparison of versions.

Value Members

  1. object ? extends PrepareMark

  2. object Batch extends Batcher with Product with Serializable

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

    Definition Classes
    CreateImplicits
  4. object Caching extends CachingStrategies

    Definition Classes
    TablePropertyClauses
  5. object ConsistencyLevel

  6. val ContactPoint: connectors.ContactPoint.type

  7. val ContactPoints: connectors.ContactPoints.type

  8. object DateTieredCompactionStrategy extends DateTieredCompactionStrategy with Product with Serializable

    Definition Classes
    CompactionStrategies
  9. object DeflateCompressor extends DeflateCompressor

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

  11. object LZ4Compressor extends LZ4Compressor

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

    Definition Classes
    CompactionStrategies
  13. object NetworkTopologyStrategy extends NetworkTopologyStrategy

    Definition Classes
    TopologyStrategies
  14. object SimpleStrategy extends SimpleStrategy

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

    Definition Classes
    CompactionStrategies
  16. object SnappyCompressor extends SnappyCompressor

    Definition Classes
    CompressionStrategies
  17. object Storage

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

    Definition Classes
    CompactionStrategies
  19. val Version: DefaultVersions.type

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

    Definition Classes
    CreateImplicits
  21. final val bloom_filter_fp_chance: BloomFilterFpChanceBuilder

    Definition Classes
    TablePropertyClauses
  22. final val caching: CachingBuilder

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

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

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

    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]

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

    Definition Classes
    DeleteImplicits
  28. final val comment: CommentClauseBuilder

    Definition Classes
    TablePropertyClauses
  29. final val compaction: CompactionBuilder

    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

    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

  32. def cql(str: String): ExecutableStatement

  33. def cql(str: CQLQuery): ExecutableStatement

  34. object dateOf extends DateOfCqlFunction

    Definition Classes
    Operators
  35. final val dclocal_read_repair_chance: DcLocalReadRepairChanceBuilder

    Definition Classes
    TablePropertyClauses
  36. final val default_time_to_live: TimeToLiveBuilder

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

    Definition Classes
    TopologyStrategies
  38. final val gc_grace_seconds: GcGraceSecondsBuilder

    Definition Classes
    TablePropertyClauses
  39. object ignoreNulls extends Condition

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

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

    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]

    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]

    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

    Definition Classes
    Operators
  45. object minTimeuuid extends MinTimeUUID

    Definition Classes
    Operators
  46. object now extends NowCqlFunction

    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]

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

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

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

  51. final val read_repair_chance: ReadRepairChanceBuilder

    Definition Classes
    TablePropertyClauses
  52. final val replicate_on_write: ReplicateOnWriteBuilder

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

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

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

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

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

    Definition Classes
    ImplicitMechanism
  58. object token extends TokenCqlFunction

    Definition Classes
    Operators
  59. object ttl extends TTLOfFunction

    Definition Classes
    Operators
  60. object unixTimestampOf extends UnixTimestampOfCqlFunction

    Definition Classes
    Operators
  61. object writetime extends WritetimeCqlFunction

    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