HBase:使用Java API创建表时指定VERSIONS [英] HBase: Specify VERSIONS while creating table using Java API
本文介绍了HBase:使用Java API创建表时指定VERSIONS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我知道我们可以通过以下方式从hbase shell中完成:
I know we can do it from hbase shell in the following way:
create 't1', {NAME => 'f1', VERSIONS => 5}
我在 HTableDesctiptor $ c中找不到任何对应的选项$ c>在Java API中。任何想法如何做到这一点?
I could not find any corresponding option in HTableDesctiptor
in the Java API. Any idea how to do this?
推荐答案
最大版本和其他ttl类型设置是按列族指定的。所以最高版本位于 HColumnDescriptor 。
Max versions, and other ttl type settings, is specified per column family. So the max versions is on the HColumnDescriptor.
这篇关于HBase:使用Java API创建表时指定VERSIONS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文