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

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

问题描述

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

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

推荐答案

TimeUUID 是抽象类 AbstractType.

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

For ColumnFamilies you have the possiblity to specify an attribute called CompareWith. (SuperColumns have a similar CompareSubcolumnsWith attribute).

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

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.

如果您使用 Java 并使用带有 TimeUUID 的 cassandra,我建议您阅读 cassandra 的这一部分常见问题.

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天全站免登陆