|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bigdata.bop.CoreBaseBOp
com.bigdata.bop.ModifiableBOpBase
com.bigdata.rdf.sparql.ast.ASTBase
com.bigdata.rdf.sparql.ast.QueryNodeBase
com.bigdata.rdf.sparql.ast.GroupMemberNodeBase<E>
com.bigdata.rdf.sparql.ast.GroupNodeBase<E>
com.bigdata.rdf.sparql.ast.GraphPatternGroup<IGroupMemberNode>
com.bigdata.rdf.sparql.ast.JoinGroupNode
public class JoinGroupNode
An optional or non-optional collection of query nodes that run together in a group.
| Field Summary |
|---|
| Fields inherited from class com.bigdata.bop.CoreBaseBOp |
|---|
DEFAULT_INITIAL_CAPACITY |
| Fields inherited from interface com.bigdata.bop.BOp |
|---|
NOANNS, NOARGS |
| Constructor Summary | |
|---|---|
JoinGroupNode()
Construct a non-optional join group. |
|
JoinGroupNode(boolean optional)
|
|
JoinGroupNode(boolean optional,
IGroupMemberNode child)
Construct a possibly optional group having the specified child as its initial member. |
|
JoinGroupNode(BOp[] args,
Map<String,Object> anns)
Required shallow copy constructor. |
|
JoinGroupNode(IGroupMemberNode child)
Construct a non-optional join group having the specified child as its initial member. |
|
JoinGroupNode(JoinGroupNode op)
Required deep copy constructor. |
|
JoinGroupNode(TermNode context,
IGroupMemberNode child)
Construct a GRAPH group having the specified child as its initial member. |
|
| Method Summary | ||
|---|---|---|
List<FilterNode> |
getAllFiltersInGroup()
Return only the filter child nodes in this group. |
|
List<AssignmentNode> |
getAssignments()
Return any LET x:= expr or (expr AS ?x) nodes
in this group (these are modeled in exactly the same way by the
AST AssignmentNode). |
|
|
getChildren(Class<T> type)
Return only the NamedSubqueryInclude child nodes in this group. |
|
TermNode |
getContext()
Return the context for the group graph pattern dominating this node. |
|
List<FilterNode> |
getInFilters()
Return the set of IN filters for this group. |
|
List<NamedSubqueryInclude> |
getNamedSubqueryIncludes()
Return only the NamedSubqueryInclude child nodes in this group. |
|
int |
getRequiredStatementPatternCount()
Return the #of required statement patterns (does not include those flagged as OPTIONAL). |
|
List<ServiceNode> |
getServiceNodes()
Return only the ServiceNode child nodes in this group. |
|
int |
getStatementPatternCount()
Return the #of statement patterns. |
|
List<StatementPatternNode> |
getStatementPatterns()
Return only the statement pattern child nodes in this group. |
|
boolean |
isMinus()
Return true iff this is a join group representing a SPARQL
MINUS operator. |
|
boolean |
isOptional()
Return whether or not this is an join with "optional" semantics. |
|
void |
setContext(TermNode context)
Set the context for a GroupGraphPattern. |
|
void |
setMinus(boolean minus)
|
|
void |
setOptional(boolean optional)
|
|
| Methods inherited from class com.bigdata.rdf.sparql.ast.GraphPatternGroup |
|---|
getJoinVars, setJoinVars |
| Methods inherited from class com.bigdata.rdf.sparql.ast.GroupNodeBase |
|---|
addArg, addArg, addChild, clone, getAttachedJoinFilters, isEmpty, iterator, removeArg, removeChild, replaceWith, setArg, setAttachedJoinFilters, size, toString |
| Methods inherited from class com.bigdata.rdf.sparql.ast.GroupMemberNodeBase |
|---|
getParent, getParentGraphPatternGroup, getParentJoinGroup, setParent |
| Methods inherited from class com.bigdata.rdf.sparql.ast.QueryNodeBase |
|---|
toString |
| Methods inherited from class com.bigdata.rdf.sparql.ast.ASTBase |
|---|
getQueryHint, getQueryHint, getQueryHintAsBoolean, getQueryHintAsBoolean, getQueryHints, replaceAllWith, setQueryHint, setQueryHints |
| Methods inherited from class com.bigdata.bop.ModifiableBOpBase |
|---|
addArgIfAbsent, annotations, annotationsEqual, argIterator, args, arity, clearProperty, copyAll, get, getProperty, mutation, setArgs, setId, setProperty, setUnboundProperty, toArray, toArray |
| Methods inherited from class com.bigdata.bop.CoreBaseBOp |
|---|
annotationsEqual, annotationsToString, checkArgs, equals, getEvaluationContext, getId, getProperty, getRequiredProperty, hashCode, indent, isController, toShortString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.bigdata.rdf.sparql.ast.IJoinNode |
|---|
getAttachedJoinFilters, setAttachedJoinFilters |
| Methods inherited from interface com.bigdata.rdf.sparql.ast.IQueryNode |
|---|
toString |
| Methods inherited from interface com.bigdata.rdf.sparql.ast.IGroupMemberNode |
|---|
getParent, getParentGraphPatternGroup, getParentJoinGroup, setParent |
| Constructor Detail |
|---|
public JoinGroupNode(JoinGroupNode op)
public JoinGroupNode(BOp[] args,
Map<String,Object> anns)
public JoinGroupNode()
public JoinGroupNode(IGroupMemberNode child)
public JoinGroupNode(boolean optional)
public JoinGroupNode(boolean optional,
IGroupMemberNode child)
optional - true iff the group is optional.child - The initial child.
public JoinGroupNode(TermNode context,
IGroupMemberNode child)
context - The variable or constant for the GRAPH group.child - The initial child.| Method Detail |
|---|
public void setContext(TermNode context)
context - The context (may be null).public TermNode getContext()
Overridden to return the context associated with this
JoinGroupNode if it is defined and otherwise read up the parent
chain.
getContext in interface IGroupMemberNodegetContext in class GroupMemberNodeBase<IGroupMemberNode>null if there is no graph pattern
dominating this node.public final boolean isOptional()
IJoinNode
public final void setOptional(boolean optional)
public final boolean isMinus()
IJoinNodetrue iff this is a join group representing a SPARQL
MINUS operator.
public void setMinus(boolean minus)
public List<StatementPatternNode> getStatementPatterns()
public int getStatementPatternCount()
public int getRequiredStatementPatternCount()
public List<ServiceNode> getServiceNodes()
ServiceNode child nodes in this group.
public List<NamedSubqueryInclude> getNamedSubqueryIncludes()
NamedSubqueryInclude child nodes in this group.
public <T> List<T> getChildren(Class<T> type)
NamedSubqueryInclude child nodes in this group.
public List<AssignmentNode> getAssignments()
LET x:= expr or (expr AS ?x) nodes
in this group (these are modeled in exactly the same way by the
AST AssignmentNode).
Note: AssignmentNodes MUST NOT be reordered. They MUST be
evaluated left-to-right in the order given in the original query.
public List<FilterNode> getAllFiltersInGroup()
public List<FilterNode> getInFilters()
(Replace
DataSetJoin with an "inline" access path.)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||