设为首页 加入收藏

TOP

Hbase 批量写入操作
2019-03-15 01:49:14 】 浏览:151
Tags:Hbase 批量 写入 操作

Code

Nmr

List List Size Code

Avarage Elapsed Time

(sec)

1 List<Put>
batchAllRows;
250.000

table.setAutoFlush(false);


for (Put mRow : batchAllRows) {
table.put(mRow);
}
table.flushCommits();

27
2 List<Put> batchAllRows; 250.000 table.setAutoFlush(false);
table.put(batchAllRows);
table.flushCommits();
103
3 List<Row> batchAllRows; 250.000 table.setAutoFlush(false);
Object[] results = new Object[batchAllRows.size()];
table.batch(batchAllRows, results);
//table.batch(batchAllRows) ; /* already tried */
table.flushCommits();
105
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇Hbase架构   Hbase Region的.. 下一篇Memcached、Redis、MongoDB、HBas..

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目