phantom-dsl

    0熱度

    1回答

    我有一個可選的柱輔助索引: class Sessions extends CassandraTable[ConcreteSessions, Session] { object matchId extends LongColumn(this) with PartitionKey[Long] object userId extends OptionalLongColumn(this

    2熱度

    1回答

    當通過來自Scala應用程序的Phantom嘗試插入卡桑德拉時,我得到以下錯誤代碼。 卡桑德拉版本是捆綁:DSC-卡桑德拉 - 3.0.1 [error] (run-main-0) com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (tried: loca

    1熱度

    1回答

    在卡桑德拉的模式我寫了這個代碼 case class User(id: Int, gender: String, age: Int, occupation: String, zipCode: String) object Defaults { val hosts = Seq("172.17.0.9") val Connector = ContactPoints(hosts)

    0熱度

    1回答

    我讀這一段代碼 https://github.com/thiagoandrade6/cassandra-phantom/blob/master/src/main/scala/com/cassandra/phantom/modeling/model/GenericSongsModel.scala 這看起來不錯,但如果不是藝術家,現場是「藝術家」,藝術家在卡桑德拉的list<text> ? 我發現這篇

    1熱度

    3回答

    我有一個具有多個嵌套類的案例類。 我如何使用Phantom DSL進行建模 把它放到一個案例類中不是一種選擇。 例如: case class Car(age: Int,size: Int,door: Door) case class Door(color:String, size:Int) 感謝

    0熱度

    1回答

    批量插入到cassandra中是否有批量插入API在幻影-DSL中? 嘗試搜索,但無法在代碼中找到它。 另外我找不到足夠的幻像庫文檔。

    1熱度

    1回答

    我一直在使用幻象DSL查詢卡桑德拉 def getByGenreAndYear(genre: List[String], year: Int) : Future[Seq[Movie]] = { var criteria = select.where(_.genre contains genre.head) criteria = genre.tail.foldLeft(crite

    2熱度

    2回答

    我一直在研究一個需要定期寫入和大量讀取的應用程序。 該應用程序正在存儲幾個文本列,其大小並不是很大,並且其中的一張圖是表中最大的列。 在Scala(Datastax Java驅動程序底下)中使用Phantom-DSL時,我的應用程序在數據大小增加時崩潰。 這裏是我的應用程序的日誌。 [error] - com.websudos.phantom - All host(s) tried for que

    0熱度

    1回答

    讀取包含> 800k行的表格時遇到問題。我需要從上到下讀取行來處理它們。 我使用斯卡拉和幻影爲目的。 這裏是我的表的樣子。 CREATE TABLE raw ( id uuid PRIMARY KEY, b1 text, b2 timestamp, b3 text, b4 text, b5 text ) WITH bloom_filter

    0熱度

    1回答

    我在幻影-dsl上玩了一下,並且使用CassandraTable類成功實現了對集羣的讀/寫操作。 但是,如果while羣集關閉或配置錯誤,我想快速失敗:停止我的CLI與特定超時並退出程序,實際上之前試圖寫東西。 什麼可能是一個很好的方法來實現這一目標?到目前爲止,我已經試過這樣: object Config { val keySpace = KeySpace("myreallyfirst