本文整理汇总了Java中com.espertech.esper.epl.spec.OuterJoinDesc.getOptRightNode方法的典型用法代码示例。如果您正苦于以下问题:Java OuterJoinDesc.getOptRightNode方法的具体用法?Java OuterJoinDesc.getOptRightNode怎么用?Java OuterJoinDesc.getOptRightNode使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.espertech.esper.epl.spec.OuterJoinDesc
的用法示例。
在下文中一共展示了OuterJoinDesc.getOptRightNode方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: analyze
import com.espertech.esper.epl.spec.OuterJoinDesc; //导入方法依赖的package包/类
/**
* Analyzes the outer join descriptor list to build a query graph model.
*
* @param outerJoinDescList - list of outer join descriptors
* @param queryGraph - model containing relationships between streams that is written into
* @return queryGraph object
*/
public static QueryGraph analyze(OuterJoinDesc[] outerJoinDescList, QueryGraph queryGraph) {
for (OuterJoinDesc outerJoinDesc : outerJoinDescList) {
// add optional on-expressions
if (outerJoinDesc.getOptLeftNode() != null) {
ExprIdentNode identNodeLeft = outerJoinDesc.getOptLeftNode();
ExprIdentNode identNodeRight = outerJoinDesc.getOptRightNode();
add(queryGraph, identNodeLeft, identNodeRight);
if (outerJoinDesc.getAdditionalLeftNodes() != null) {
for (int i = 0; i < outerJoinDesc.getAdditionalLeftNodes().length; i++) {
add(queryGraph, outerJoinDesc.getAdditionalLeftNodes()[i], outerJoinDesc.getAdditionalRightNodes()[i]);
}
}
}
}
return queryGraph;
}
示例2: analyze
import com.espertech.esper.epl.spec.OuterJoinDesc; //导入方法依赖的package包/类
/**
* Analyzes the outer join descriptor list to build a query graph model.
* @param outerJoinDescList - list of outer join descriptors
* @param queryGraph - model containing relationships between streams that is written into
* @return queryGraph object
*/
public static QueryGraph analyze(List<OuterJoinDesc> outerJoinDescList, QueryGraph queryGraph)
{
for (OuterJoinDesc outerJoinDesc : outerJoinDescList)
{
// add optional on-expressions
if (outerJoinDesc.getOptLeftNode() != null) {
ExprIdentNode identNodeLeft = outerJoinDesc.getOptLeftNode();
ExprIdentNode identNodeRight = outerJoinDesc.getOptRightNode();
add(queryGraph, identNodeLeft, identNodeRight);
if (outerJoinDesc.getAdditionalLeftNodes() != null)
{
for (int i = 0; i < outerJoinDesc.getAdditionalLeftNodes().length; i++)
{
add(queryGraph, outerJoinDesc.getAdditionalLeftNodes()[i], outerJoinDesc.getAdditionalRightNodes()[i]);
}
}
}
else {
}
}
return queryGraph;
}