我已经定义了一个自定义的卡桑德拉式和一张桌子,e.g:幻象DSL和卡桑德拉自定义字段类型
CREATE TYPE my.usertype (
id text,
firstname text,
lastname text
);
CREATE TABLE mytable (
user frozen <usertype>,
...,
PRIMARY KEY(user)
);
我如何定义在斯卡拉卡桑德拉表定义这种用户类型?
class MyTable extends CassandraTable[X, Y] {
object user extends UserColumn(this) with PartitionKey[User]
^^^^^??? ^^^???
我怎样才能实现对UserType
定制UserColumn
?我检查了Phantom代码的列实现,但任何示例和/或解释都会很好。
谢谢您指向公关! – Bruckwald