在Java中加入HBase中的两个ResultSet? [英] Joining two ResultSets from HBase in Java?

查看:97
本文介绍了在Java中加入HBase中的两个ResultSet?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能加入两个或更多从java中的hbase中获取的结果集?

解决方案

不可以加入JDBC结果集。



然而,如果它们兼容,您可以得到结果并手动合并它们。 (如果他们是同一个实体)。

编辑:



如果您只需要将两个列表你可以做同样的类型

  list1.addAll(list2); 


Is it possible to join two or more resultsets which are retrieved from hbase in java?

解决方案

No it's not possible to join JDBC result sets.

However you can get their results and manually combine them if they are compatible. (if they are of the same entity).

EDIT :

If you simply need to combine two lists of the same type you can do

list1.addAll(list2);

这篇关于在Java中加入HBase中的两个ResultSet?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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