protected FilterNode filter(final IValueExpressionNode f) { return new FilterNode(f); }
protected FilterNode filter(final IValueExpressionNode f) { return new FilterNode(f); }
public void addConstraint(final ValueExpressionNode constraint) { assertValid(); if (log.isInfoEnabled()) log.info("constraint=" + constraint); children.add(new FilterNode(constraint)); }
public void addConstraint(final ValueExpressionNode constraint) { assertValid(); if (log.isInfoEnabled()) log.info("constraint=" + constraint); children.add(new FilterNode(constraint)); }
protected FilterNode filter(final IValueExpressionNode f) { return new FilterNode(f); }
/** * Construct FILTERs for the given value expression node, exploiting * AND nodes at the top to split the node into multiple filters (if * possible). Particularly useful to get filter expressions for all * conjuncts when given a {@link ValueExpressionNode} in CNF as input. * * @param vexpNode the value expression node * @param filters set where to collect filters in * * @return the array of filters */ public List<FilterNode> constructFiltersForValueExpressionNode( final IValueExpressionNode vexp, final List<FilterNode> filters) { final List<IValueExpressionNode> topLevelConjuncts = StaticAnalysis.extractToplevelConjuncts( vexp, new ArrayList<IValueExpressionNode>()); for (IValueExpressionNode toplevelConjunct : topLevelConjuncts) { filters.add(new FilterNode(toplevelConjunct)); } return filters; }
/** * Construct FILTERs for the given value expression node, exploiting * AND nodes at the top to split the node into multiple filters (if * possible). Particularly useful to get filter expressions for all * conjuncts when given a {@link ValueExpressionNode} in CNF as input. * * @param vexpNode the value expression node * @param filters set where to collect filters in * * @return the array of filters */ public List<FilterNode> constructFiltersForValueExpressionNode( final IValueExpressionNode vexp, final List<FilterNode> filters) { final List<IValueExpressionNode> topLevelConjuncts = StaticAnalysis.extractToplevelConjuncts( vexp, new ArrayList<IValueExpressionNode>()); for (IValueExpressionNode toplevelConjunct : topLevelConjuncts) { filters.add(new FilterNode(toplevelConjunct)); } return filters; }
protected void addNegateds( final GraphPatternGroup<? extends IGroupMemberNode> group, final ArrayList<ConstantNode> constants, final PropertyPathInfo ppInfo, final ArbitraryLengthPathNode alpNode, final PropertyPathNode ppNode) { final VarNode p = anonVar(); if (alpNode != null) { alpNode.addDropVar(p); } final StatementPatternNode sp = ppInfo.toStatementPattern(p); final TermNode[] args = new TermNode[constants.size()+1]; args[0] = p; System.arraycopy(constants.toArray(new ConstantNode[constants.size()]), 0, args, 1, constants.size()); final FunctionNode function = new FunctionNode( FunctionRegistry.NOT_IN, null, args ); final FilterNode filter = new FilterNode(function); group.addArg(getPositionOfNodeInGroup(ppNode, group),sp); group.addArg(getPositionOfNodeInGroup(ppNode, group),filter); }
protected void addNegateds( final GraphPatternGroup<? extends IGroupMemberNode> group, final ArrayList<ConstantNode> constants, final PropertyPathInfo ppInfo, final ArbitraryLengthPathNode alpNode, final PropertyPathNode ppNode) { final VarNode p = anonVar(); if (alpNode != null) { alpNode.addDropVar(p); } final StatementPatternNode sp = ppInfo.toStatementPattern(p); final TermNode[] args = new TermNode[constants.size()+1]; args[0] = p; System.arraycopy(constants.toArray(new ConstantNode[constants.size()]), 0, args, 1, constants.size()); final FunctionNode function = new FunctionNode( FunctionRegistry.NOT_IN, null, args ); final FilterNode filter = new FilterNode(function); group.addArg(getPositionOfNodeInGroup(ppNode, group),sp); group.addArg(getPositionOfNodeInGroup(ppNode, group),filter); }
public FilterNode filter(final int id) { return new FilterNode(new LegacyTestValueExpressionNode(new Filter(id))); }
public FilterNode filter(final int id) { return new FilterNode(new LegacyTestValueExpressionNode(new Filter(id))); }
public FilterNode filter(final int id) { return new FilterNode(new LegacyTestValueExpressionNode(new Filter(id))); }
final StatementPatternNode p2 = new StatementPatternNode(y, r, z); p2.setOptional(true); p2.setAttachedJoinFilters(Collections.singletonList(new FilterNode(x)));
final StatementPatternNode p2 = new StatementPatternNode(y, r, z); p2.setOptional(true); p2.setAttachedJoinFilters(Collections.singletonList(new FilterNode(x)));
new VarNode("o") }); whereClause.addChild(new FilterNode(ve));
Scope.DEFAULT_CONTEXTS)); whereClause.addChild(new FilterNode(new FunctionNode( //
new VarNode("o") }); whereClause.addChild(new FilterNode(ve));
final StatementPatternNode p2 = new StatementPatternNode(y, r, z); p2.setOptional(true); p2.setAttachedJoinFilters(Collections.singletonList(new FilterNode(x)));
new VarNode("o") }); whereClause.addChild(new FilterNode(ve));
Scope.DEFAULT_CONTEXTS)); whereClause.addChild(new FilterNode(new FunctionNode( //