private <T extends QueryBase> T select(T select, final ProjectionNode projection, final JoinGroupNode where, final HelperFlag... flags) { assert projection != null; // Set Projection and Where clause on QueryRoot. select.setProjection(projection); select.setWhereClause(where); // Apply helper flags. for (HelperFlag flag : flags) flag.apply(select); return select; }
private <T extends QueryBase> T select(T select, final ProjectionNode projection, final JoinGroupNode where, final HelperFlag... flags) { assert projection != null; // Set Projection and Where clause on QueryRoot. select.setProjection(projection); select.setWhereClause(where); // Apply helper flags. for (HelperFlag flag : flags) flag.apply(select); return select; }
private <T extends QueryBase> T select(T select, final ProjectionNode projection, final JoinGroupNode where, final HelperFlag... flags) { assert projection != null; // Set Projection and Where clause on QueryRoot. select.setProjection(projection); select.setWhereClause(where); // Apply helper flags. for (HelperFlag flag : flags) flag.apply(select); return select; }
/** * Handle the optional WHERE clause. (For example, DESCRIBE may be used * without a WHERE clause.) * <P> * Note: This delegates the translation to a helper visitor. A SubSelect * will wind up delegated back to an instance of this visitor. * * @param astQuery * The AST query node. This is an abstract base class. There are * concrete instances for SELECT, ASK, DESCRIBE, and CONSTRUCT. * @param queryRoot * The bigdata query root. */ @SuppressWarnings("unchecked") private void handleWhereClause(final ASTQuery astQuery, final QueryBase queryRoot) throws VisitorException { final ASTWhereClause whereClause = astQuery.getWhereClause(); if (whereClause != null) { final ASTGraphPatternGroup graphPatternGroup = whereClause .getGraphPatternGroup(); graphPattern = scopedGroupGraphPattern(astQuery); final GraphPatternGroup<IGroupMemberNode> ret = (GraphPatternGroup<IGroupMemberNode>) graphPatternGroup .jjtAccept(this, null/* data */); queryRoot.setWhereClause(ret); } }
/** * Handle the optional WHERE clause. (For example, DESCRIBE may be used * without a WHERE clause.) * <P> * Note: This delegates the translation to a helper visitor. A SubSelect * will wind up delegated back to an instance of this visitor. * * @param astQuery * The AST query node. This is an abstract base class. There are * concrete instances for SELECT, ASK, DESCRIBE, and CONSTRUCT. * @param queryRoot * The bigdata query root. */ @SuppressWarnings("unchecked") private void handleWhereClause(final ASTQuery astQuery, final QueryBase queryRoot) throws VisitorException { final ASTWhereClause whereClause = astQuery.getWhereClause(); if (whereClause != null) { final ASTGraphPatternGroup graphPatternGroup = whereClause .getGraphPatternGroup(); graphPattern = scopedGroupGraphPattern(astQuery); final GraphPatternGroup<IGroupMemberNode> ret = (GraphPatternGroup<IGroupMemberNode>) graphPatternGroup .jjtAccept(this, null/* data */); queryRoot.setWhereClause(ret); } }
queryBase.setWhereClause(child);
queryBase.setWhereClause(child);