|
||||||||||
| 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<IGroupMemberNode>
com.bigdata.rdf.sparql.ast.service.ServiceNode
public class ServiceNode
An extension point for external service calls which produce solution
multisets (a SPARQL SERVICE).
TODO It would make the internal APIs significantly easier if we modeled this
as a type of GraphPatternGroup, similar to JoinGroupNode and
UnionNode.
| 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 | |
|---|---|
ServiceNode(BOp[] args,
Map<String,Object> anns)
Required shallow copy constructor. |
|
ServiceNode(ServiceNode op)
Required deep copy constructor. |
|
ServiceNode(TermNode serviceRef,
GraphPatternGroup<IGroupMemberNode> groupNode)
Construct a function node in the AST. |
|
| Method Summary | |
|---|---|
List<FilterNode> |
getAttachedJoinFilters()
Return the FILTER(s) associated with this IJoinNode. |
String |
getExprImage()
|
GraphPatternGroup<IGroupMemberNode> |
getGraphPattern()
Return the graph pattern. |
Map<String,String> |
getPrefixDecls()
|
Set<IVariable<?>> |
getProjectedVars()
|
TermNode |
getServiceRef()
The service reference. |
long |
getTimeout()
Return the timeout for evaluation of this SERVICE request. |
boolean |
isMinus()
Returns false. |
boolean |
isOptional()
Returns false. |
boolean |
isSilent()
|
void |
setAttachedJoinFilters(List<FilterNode> filters)
|
void |
setExprImage(String serviceExpressionString)
Set the text "image" of the SPARQL SERVICE clause. |
void |
setGraphPattern(GraphPatternGroup<IGroupMemberNode> graphPattern)
Set the graph pattern. |
void |
setPrefixDecls(Map<String,String> prefixDecls)
Set the prefix declarations for the group graph pattern. |
void |
setProjectedVars(Set<IVariable<?>> projectedVars)
|
void |
setServiceRef(TermNode serviceRef)
Set the service reference. |
void |
setSilent(boolean silent)
|
void |
setTimeout(Long timeout)
|
String |
toString(int indent)
Pretty print with an indent. |
| Methods inherited from class com.bigdata.rdf.sparql.ast.GroupMemberNodeBase |
|---|
getContext, 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 |
|---|
addArg, addArg, addArgIfAbsent, annotations, annotationsEqual, argIterator, args, arity, clearProperty, copyAll, get, getProperty, mutation, removeArg, replaceWith, setArg, setArgs, setId, setProperty, setUnboundProperty, toArray, toArray |
| Methods inherited from class com.bigdata.bop.CoreBaseBOp |
|---|
annotationsEqual, annotationsToString, checkArgs, clone, equals, getEvaluationContext, getId, getProperty, getRequiredProperty, hashCode, indent, isController, toShortString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ServiceNode(ServiceNode op)
public ServiceNode(BOp[] args,
Map<String,Object> anns)
public ServiceNode(TermNode serviceRef,
GraphPatternGroup<IGroupMemberNode> groupNode)
serviceRef - The value expression for the SERVICE URI.groupNode - The graph pattern used to invoke the service.ServiceRegistry| Method Detail |
|---|
public TermNode getServiceRef()
public void setServiceRef(TermNode serviceRef)
public GraphPatternGroup<IGroupMemberNode> getGraphPattern()
IGraphPatternContainer
getGraphPattern in interface IGraphPatternContainerpublic void setGraphPattern(GraphPatternGroup<IGroupMemberNode> graphPattern)
IGraphPatternContainer
setGraphPattern in interface IGraphPatternContainerpublic final boolean isOptional()
false.
isOptional in interface IJoinNodepublic final boolean isMinus()
false.
isMinus in interface IJoinNodepublic final boolean isSilent()
public final void setSilent(boolean silent)
public String getExprImage()
public void setExprImage(String serviceExpressionString)
public Map<String,String> getPrefixDecls()
public void setPrefixDecls(Map<String,String> prefixDecls)
public void setProjectedVars(Set<IVariable<?>> projectedVars)
projectedVars - public Set<IVariable<?>> getProjectedVars()
Annotations#PROJECTED_VARSpublic void setTimeout(Long timeout)
public long getTimeout()
Annotations#DEFAULT_TIMEOUT if the
timeout was not explicitly configured.Annotations#TIMEOUTpublic final List<FilterNode> getAttachedJoinFilters()
IJoinNodeIJoinNode. Such filters
will be run with the JOIN for this statement pattern. As such, they MUST
NOT rely on materialization of variables which would not have been bound
before that JOIN.
getAttachedJoinFilters in interface IJoinNodenull (it may
return an empty list)(.ASTSimpleOptionalOptimizer,
ASTAttachJoinFiltersOptimizerpublic final void setAttachedJoinFilters(List<FilterNode> filters)
setAttachedJoinFilters in interface IJoinNodepublic String toString(int indent)
IQueryNode
toString in interface IQueryNode
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||