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

JSON serializer with json4s on phantom-dsl Collection column

Have been following the collection column tutorial for phantom-dsl which requires json serializer. The implementation below is getting the following error output; found : org.dyne.danielsan.superchain.data.models.JsonVin [error] required:…
dan-mi-sun
  • 551
  • 2
  • 4
  • 18
0
votes
1 answer

How to change log level in Akka-Http with Phantom

I have a new project with Akka-http 2.4.2 and com.websudos.phantom 1.22.0 All works fine but I don't know how to change the log level to INFO so the DEBUG logs of phantom like: 17:00:51.792 [cluster1-nio-worker-0] DEBUG …
George C
  • 1,168
  • 13
  • 30
0
votes
1 answer

Creating Model for Cassandra using Phantom DSL

I am reading this piece of source code. This looks good but what if instead of artist, the field was "artists" where artists was an list in cassandra? I found this article which talks about using…
Knows Not Much
  • 30,395
  • 60
  • 197
  • 373
0
votes
1 answer

Async reading of large Cassandra table using Scala / Phantom-DSL

I have an issue reading a table containing >800k rows. I need to read the rows from top to bottom in order to process them. I use Scala and Phantom for the purpose. Here is how my table look. CREATE TABLE raw ( id uuid PRIMARY KEY, b1 text, …
user4063065
0
votes
1 answer

Phantom-DSL cassandra with frozen type

I'm trying to map a column which is a Map with frozen type My column family has a field batsmen_data map> bat_card has two fields bat_id int, bat_name text, Map the column field object batsmenData extends…
Vikas Naidu
  • 320
  • 2
  • 8
0
votes
1 answer

How to use Phantom in Scala IDE

I want to use phantom with my scala IDE.So for this i clone the git hub repository and created a .jar file of phantom using sbt -> compile -> package.I add this .jar file to build path in my Scala IDE but still while importing import…
ivan R
  • 296
  • 2
  • 16
0
votes
1 answer

How do I query an optional column with a secondary index using phantom?

I have a secondary index on an optional column: class Sessions extends CassandraTable[ConcreteSessions, Session] { object matchId extends LongColumn(this) with PartitionKey[Long] object userId extends OptionalLongColumn(this) with…
Henning
  • 16,063
  • 3
  • 51
  • 65
0
votes
1 answer

Connection timeout on Cassandra cluster using Phantom

I'm playing a bit with phantom-dsl and I successfully achieved a read/write operation on a cluster using CassandraTable class. However, if the while cluster is down or if configuration is wrong, I would like fail fast: stop my CLI with a specific…
giampaolo
  • 6,906
  • 5
  • 45
  • 73
0
votes
1 answer

How to clean up RootConnector in phantom-dsl?

In phantom-dsl version 1.12.2, what is the mechanism to close/shutdown/cleanup resources after finishing talking with Cassandra when using the RootConnector way of connecting to a Cassandra cluster?
0
votes
2 answers

Use consistency level in Phantom-dsl and Cassandra

Currently using -- cqlsh> show version [cqlsh 4.1.1 | Cassandra 2.0.17 | CQL spec 3.1.1 | Thrift protocol 19.39.0] Using phantom-dsl 1.12.2 , Scala 2.10 .. I can't figure out how to set consistency levels on queries. There are predefined functions…
Kal
  • 24,724
  • 7
  • 65
  • 65
0
votes
1 answer

Phantom Cassandra batch insert

Is there batch insert API in phantom-dsl to batch insert to cassandra? Tried searching but could not find it in the code. Also i could not find enough documentation on the phantom library.
Kiran Raj
  • 187
  • 1
  • 9
0
votes
1 answer

How to fetch data for Optional List of custom data type in cassandra using Websudos Phanthom

I've a table in which one column is of type Option List of custom object. How to fetch data from cassandra for this column using Websudos phantom. Table Schema: Server{ hostName : String port: Int filter : Option[List[Filter]] } Filter{ …
SachG
  • 105
  • 1
  • 2
  • 12
0
votes
1 answer

Scala - phantom - Saving blob to Cassandra

I'm looking to save a file to cassandra I'm using Scala with websudos" % "phantom-dsl_2.10" % "1.4.0" driver I think I've got my model created with sealed class CassandraRepoBlob extends CassandraTable[CassandraRepoBlob, CassandraBlob] { object…
brent
  • 1,095
  • 1
  • 11
  • 27
0
votes
2 answers

eqs on Option[UUID] type? Phantom + Cassandra + Scala

I'm using Phantom framework to work with Cassandra and I'm trying to do a eqs on a Option field eg. Address.select.where(_.id eqs Some(uuid)).one() Then I get "value eqs is not a member of object" is there a way to accomplish that? I can't figure…
Thiago Pereira
  • 1,724
  • 1
  • 17
  • 31
0
votes
2 answers

cassandraunit crashes immediately

I am trying to run cassandra unit tests on a small vanilla ubuntu 12 machine, but the test or the repl crash immediately without giving me any information. When I try it in the repl I get the following: scala>…
elmalto
  • 1,008
  • 1
  • 14
  • 23
1 2 3
9
10