在Cassandra的术语中,什么是TimeUUID? [英] In Cassandra terminology, what is TimeUUID?

查看:443
本文介绍了在Cassandra的术语中,什么是TimeUUID?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Cassandra的术语中, TimeUUID 是什么时候使用的?

解决方案
> TimeUUID 是抽象类的六个具体实现之一 AbstractType



对于ColumnFamilies,您可以指定一个名为CompareWith的属性。 (SuperColumns有一个类似的CompareSubcolumnsWith属性)。



此属性的有效值是实现抽象类AbstractType的类(例如TimeUUID)。 CompareWith属性告诉Cassandra如何对切片操作的列进行排序。



如果你使用Java并使用cassandra和TimeUUID,我建议你阅读 cassandra常见问题的这一部分。


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?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆