Questions tagged [phantom-dsl]

Phantom DSL is the reactive type safe Scala DSL For Apache Cassandra and Datastax Enterprise. It is the official Scala driver built by Websudos and it features full support for the CQL query language by offering a powerful type safe DSL to define Scala objects that replicate CQL tables.

Phantom DSL is the reactive type safe Scala DSL For Apache Cassandra and Datastax Enterprise. It is the official Scala driver built by Outworkers and it features full support for the CQL query language by offering a powerful type safe DSL to define Scala objects that replicate CQL tables.

Phantom will prevent invalid queries at compile time and help you automate concerns like testing, connecting to Cassandra, and automating a lot of the operations pipeline.

150 questions
0
votes
1 answer

How do we do select query using phantom driver without table defintion

I have streaming of data coming from SparkStreaming. Which i need to process and finally want to store the data in Cassandra. So, earlier i was trying to use SparkCassandra connector. But it doesn't give the access of SparkStreaming Context object…
Naresh
  • 5,073
  • 12
  • 67
  • 124
0
votes
1 answer

Phantom Dependencies Error

I tried to integrate phantom to my project: here is my build.sbt file: resolvers ++= Seq ( "Java.net Maven2 Repository" at "http://download.java.net/maven/2/", "Twitter Repository" at…
Jennifer He
  • 75
  • 1
  • 2
  • 10
0
votes
2 answers

org.apache.cassandra.exceptions.ConfigurationException: Column family ID mismatch

This was working without any problems since months, but these days, I am getting this error, any help would be greatly appreciated. com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (tried:…
0
votes
2 answers

Dependency for cassandra phantom

I have following bulid.sbt scalaVersion := "2.11.8" libraryDependencies += "com.websudos" %% "diesel-engine" % "0.3.0" libraryDependencies += "com.websudos" %% "phantom-dsl" % "1.27.0" When sbt try resolve dependency following communicate is…
user902691
  • 1,149
  • 4
  • 20
  • 46
0
votes
2 answers

phantom cassandra multiple tables throw exceptions

I'm using phantom to connect cassandra in play framework. Created the first class following the tutorial. Everything works fine. case class User(id: String, page: Map[String,String]) sealed class Users extends CassandraTable[Users, User] { …
yang
  • 498
  • 5
  • 22
0
votes
1 answer

How return play.api.mvc.AnyContent value from Blob column?

In cassandra table I put class, where one field is AnyContent type. I serialize it to array of bytes. Than I want get it from this column to my class. I can get it in method fromRow(row: Row) only like …
Azula
  • 457
  • 2
  • 5
  • 13
0
votes
3 answers

See Generated Query with Phantom

I am using the phantom cassandra DSL for scala. What I want to do is simple: I want to see and logs the generated queries for every time there's a query. I can't find anything on the wiki or tutorials and searching across the web. Any help with…
bertzzie
  • 3,558
  • 5
  • 30
  • 41
0
votes
1 answer

Phantom-Cassandra Insert/update behaviour

I am trying to link up two tables with the same data like over here: http://outworkers.com/blog/post/a-series-on-cassandra-part-1-getting-rid-of-the-sql-mentality My second table contains the data I want to query by for example: foo ( id text, …
0
votes
0 answers

Upgrade to Phantom cassandra 1.26 gives GenTraversableOnce$class error

I was using phantom to connect to cassandra database from my scala code. It worked before. But today after I upgraded to the latest 1.26.1, it throws the following exception: Exception in thread "main" java.lang.NoClassDefFoundError:…
yang
  • 498
  • 5
  • 22
0
votes
1 answer

Scala Type Variances Error with JSON serializer in phantom-dsl with json4s

Am getting the following error for the below code. Any insights greatly appreciated. Not quite sure what is causing this as I have ample other User Defined Types throughout the application which have not caused this behaviour. Let me know if any…
dan-mi-sun
  • 551
  • 2
  • 4
  • 18
0
votes
1 answer

What is the best way to write data of AnyContent type in Phantom for Scala?

For example, I have some data: AnyContent I don't know which content it will be. But I assume that BlobColumn will be good to write that data. But how should I convert it so that cassandra will save and get this record?
Azula
  • 457
  • 2
  • 5
  • 13
0
votes
2 answers

Phantom 1.25.4 with Cassandra

I need help with implementing a model of a notification using phantom and cassandra. What I have done till now: import java.util.UUID import com.websudos.phantom.dsl._ import com.websudos.phantom.connectors.Connector import…
0
votes
1 answer

Partial inserts with Cassandra and Phantom DSL

I'm building a simple Scala Play app which stores data in a Cassandra DB using the Phantom DSL driver for Scala. One of the nice features of Cassandra is that you can do partial updates i.e. so long as you provide the key columns, you do not have…
Chris Webster
  • 918
  • 8
  • 20
0
votes
0 answers

Using DataStax search programmatically (DataStax driver or phantom)

Is there currently a way to use DataStax search from an application except with plain string queries / prepared statements? If yes, is there an example / tutorial? If no, are there plans to integrate this feature in the future? Both DataStax or…
kostja
  • 60,521
  • 48
  • 179
  • 224
0
votes
1 answer

CQL: Select all rows, distinct partition key

I have a table CREATE TABLE userssbyprofit ( userid text, profit double, dateupdated timeuuid, PRIMARY KEY (userid, profit, dateupdated) ) WITH CLUSTERING ORDER BY (profit DESC, dateupdated DESC) Userid can be used to lookup…
Ciaran0
  • 428
  • 5
  • 15
1 2 3
9
10