Hector import TimeUUIDSerializer can't be resolved
I downloaded hector-core-0.8.0-2.tgz for the latest cassandra installed on my machine. When I am trying to import TimeUUIDSerializer in my class, I got the 'import me.prettyprint.cassandra.serializers.TimeUUIDSerializer can't be resolved' error, but开发者_如何学编程 others just seems fine.
Though I do find it under https://github.com/rantav/hector/tree/master/core/src/main/java/me/prettyprint/cassandra/serializers.
Am I missing anything?
I am doing this in Eclipse.
import me.prettyprint.cassandra.serializers.StringSerializer;
import me.prettyprint.cassandra.serializers.TimeUUIDSerializer; // compile error!
import me.prettyprint.cassandra.service.template.ColumnFamilyTemplate;
import me.prettyprint.cassandra.service.template.ThriftColumnFamilyTemplate;
import me.prettyprint.hector.api.Keyspace;
import me.prettyprint.hector.api.factory.HFactory;
I recently posted this question to hector-users group (I didn't see this SO question at the time), and Ed Anuff posted that there is no need the special Time based serializer. Unfortunately, no other explanations. See discussion here.
精彩评论