Cassandra:文本与 varchar [英] Cassandra: text vs varchar
本文介绍了Cassandra:文本与 varchar的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有谁知道 Cassandra 中两种 CQL 数据类型 text
和 varchar
之间的区别?Cassandra 文档将这两种类型都描述为UTF-8 编码字符串",仅此而已.
Does anyone know the difference between the two CQL data types text
and varchar
in Cassandra? The Cassandra documentation describes both types as "UTF-8 encoded string" and nothing more.
推荐答案
text
只是 varchar
的别名!
文档:
编辑
这是C* 1.2 文档.text vs varchar 信息仍然相同,但是此文档包含一些额外的数据类型.
EDIT
Here's the link to the C* 1.2 docs. The text vs varchar info is still the same, however this document contains some extra datatypes.
编辑 v2文档链接已更新到 C* 3 的文档.我找不到 C* 1.2 文档的好的替代方案.
EDIT v2 Documentation links have been updated to the docs for C* 3. I couldn't find a good alternative for the C* 1.2 docs.
这篇关于Cassandra:文本与 varchar的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文