【发布时间】:2019-04-12 21:37:26
【问题描述】:
我正在阅读this piece of source code。
这看起来不错,但是如果字段不是艺术家,而是“艺术家”,而艺术家是 cassandra 中的 list<text>,该怎么办?
我发现这篇文章谈到了使用 ListColumn
https://github.com/websudos/phantom/wiki/Collection-columns
但我不确定您将如何在 ListColumn 上定义索引
object genre extends ListColumn(this) with Index[List[String]]
上面的行没有编译。
【问题讨论】:
标签: scala phantom-dsl