问题描述
在Cassandra的术语中, TimeUUID
是什么时候使用的?
对于ColumnFamilies,您可以指定一个名为CompareWith的属性。 (SuperColumns有一个类似的CompareSubcolumnsWith属性)。
此属性的有效值是实现抽象类AbstractType的类(例如TimeUUID)。 CompareWith属性告诉Cassandra如何对切片操作的列进行排序。
如果你使用Java并使用cassandra和TimeUUID,我建议你阅读的这一部分。
In Cassandra terminology, what is TimeUUID
and when is it used?
TimeUUID is one of six concrete implementations of the abstract class AbstractType.
For ColumnFamilies you have the possiblity to specify an attribute called CompareWith. (SuperColumns have a similar CompareSubcolumnsWith attribute).
Valid values for this attribute are classes that implements the abstract class AbstractType (eg. TimeUUID). The CompareWith attribute tells Cassandra how to sort the columns for slicing operations.
If you are using Java and using cassandra with TimeUUID I would recommend to read this section of the cassandra FAQ.
这篇关于在Cassandra的术语中,什么是TimeUUID?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!