In Cassandra terminology, what is TimeUUID?

前端 未结 3 1898
挽巷
挽巷 2021-02-05 07:23

In Cassandra terminology, what is TimeUUID and when is it used?

3条回答
  •  不要未来只要你来
    2021-02-05 07:29

    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.

提交回复
热议问题