com.websudos.phantom.example

basics

package basics

Visibility
  1. Public
  2. All

Type Members

  1. sealed class CompositeKeyRecipes extends dsl.CassandraTable[CompositeKeyRecipes, Recipe]

    In this example we will create a table storing recipes.

  2. trait DefaultZookeeperConnector extends SimpleConnector

  3. trait DockerConnector extends Connector

  4. trait ExampleConnector extends SimpleConnector with KeyspaceDefinition

    This is an example of how to connect to Cassandra in the easiest possible way.

  5. trait KeyspaceDefinition extends AnyRef

  6. case class Recipe(id: UUID, name: String, title: String, author: String, description: String, ingredients: Set[String], props: Map[String, String], timestamp: DateTime) extends Product with Serializable

    In this example we will create a simple table storing recipes.

  7. sealed class Recipes extends dsl.CassandraTable[Recipes, Recipe]

  8. trait SampleModel extends ThriftStruct with Product3[String, String, Option[String]] with Serializable

  9. case class SampleRecord(stuff: String, someList: List[String], thriftModel: SampleModel) extends Product with Serializable

  10. sealed class SecondaryKeyRecipes extends dsl.CassandraTable[SecondaryKeyRecipes, Recipe]

    In this example we will create a table storing recipes with a SecondaryKey.

  11. sealed class ThriftTable extends dsl.CassandraTable[ThriftTable, SampleRecord]

Value Members

  1. object CompositeKeyRecipes extends CompositeKeyRecipes with ExampleConnector

  2. object Recipes extends Recipes with ExampleConnector

  3. object RemoteConnector extends KeyspaceDefinition

    This is an example of how to connect to a custom set of hosts and ports.

  4. object SampleModel extends ThriftStructCodec3[SampleModel] with Serializable

  5. object SecondaryKeyRecipes extends SecondaryKeyRecipes with ExampleConnector

  6. object ThriftTable extends ThriftTable with ExampleConnector

  7. object ZkDefaults extends KeyspaceDefinition

    Now you might ask yourself how to use service discovery with phantom.

Ungrouped