将两个结果集合并为一个 [英] Joining two result sets into one

查看:90
本文介绍了将两个结果集合并为一个的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有一种方法可以将两个或多个结果集合并为一个。

我实际上需要执行多个查询并仅返回一个结果集。我不能使用UNION或JOIN运算符,因为我正在使用Cassandra(CQL)

预先感谢!

I wanted to know if there's a way to join two or more result sets into one.
I actually need to execute more than one query and return just one result set. I can't use the UNION or the JOIN operators because I'm working with Cassandra (CQL)
Thanks in advance !

推荐答案

像Playorm这样的框架为Cassandra中的JOIN(内部和左侧联接)查询提供了支持。

Framework like Playorm provide support for JOIN (INNER and LEFT JOINs)queries in Cassandra.

http://buffalosw.com/wiki/Command-Line-Tool/

您可能会在以下位置看到更多示例:

You may see more examples at:

https://github.com/deanhiller/playorm/blob/master/src/test/java/com/alvazan/test/TestJoins.java

这篇关于将两个结果集合并为一个的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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