import me.prettyprint.cassandra.serializers._
import me.prettyprint.hector.api._
import me.prettyprint.hector.api.factory.HFactory
val se = StringSerializer.get()
val le = LongSerializer.get.asInstanceOf[Serializer[Long]]
val be = BooleanSerializer.get.asInstanceOf[Serializer[Boolean]]
但我没有得到如何声明CompositeSerializer 我试过了
val ce = CompositeSerializer.get
和
val ce = CompositeSerializer.get.asInstanceOf[Serializer[Composite]]
但没有任何作用
答案 0 :(得分:0)
val ce = new CompositeSerializer()