public JoinGroupNode getParentJoinGroup() { IGroupNode<?> parent = getParent(); while (parent != null) { if (parent instanceof JoinGroupNode) return (JoinGroupNode) parent; parent = parent.getParent(); } return null; }
if (group instanceof JoinGroupNode && group.getContext() != null) { final TermNode innerGraphContext = group.getContext(); filterNode.getValueExpressionNode()); group.addChild(filterNode); if (group.isEmpty() && graphContext.isVariable()) { sp.setDistinctTermScanVar((VarNode)graphContext); group.addChild(sp); } else if (group.isEmpty() && graphContext.isConstant()) { subquery.setProjection(projection); subquery.addArg(new JoinGroupNode(sp)); group.addChild(sp);
.getProperty(ASTBase.Annotations.QUERY_HINTS)); && parent.getParent() != null && !((IGroupNode<?>)parent.getParent() instanceof UnionNode)) { final IGroupNode<IGroupMemberNode> pp = parent.getParent();
op.getParent(); parent.removeChild(op); op.getContext() == op.getParent().getContext()) {
((IGroupNode) group).removeChild(childGroup);
sb.append(whereClause.toString(indent + 1));
if (group instanceof JoinGroupNode && group.getContext() != null) { final TermNode innerGraphContext = group.getContext(); filterNode.getValueExpressionNode()); group.addChild(filterNode); if (group.isEmpty() && graphContext.isVariable()) { sp.setDistinctTermScanVar((VarNode)graphContext); group.addChild(sp); } else if (group.isEmpty() && graphContext.isConstant()) { subquery.setProjection(projection); subquery.addArg(new JoinGroupNode(sp)); group.addChild(sp);
.getProperty(ASTBase.Annotations.QUERY_HINTS)); && parent.getParent() != null && !((IGroupNode<?>)parent.getParent() instanceof UnionNode)) { final IGroupNode<IGroupMemberNode> pp = parent.getParent();
((IGroupNode) group).removeChild(childGroup);
sb.append(whereClause.toString(indent + 1));
@SuppressWarnings("unchecked") public GraphPatternGroup<IGroupMemberNode> getParentGraphPatternGroup() { IGroupNode<?> parent = getParent(); while (parent != null) { if (parent instanceof GraphPatternGroup) return (GraphPatternGroup<IGroupMemberNode>) parent; parent = parent.getParent(); } return null; }
parent.removeChild(op);
@Override public JoinGroupNode getParentJoinGroup() { IGroupNode<?> parent = getParent(); while (parent != null) { if (parent instanceof JoinGroupNode) return (JoinGroupNode) parent; parent = parent.getParent(); } return null; }
parent.removeChild(op);