com.bigdata.rdf.sparql.ast
Interface IProjectionDecl

All Known Implementing Classes:
NamedSubqueryRoot, QuadsDataOrNamedSolutionSet, QueryBase, QueryRoot, SubqueryBase, SubqueryRoot

public interface IProjectionDecl

Interface and annotations for AST nodes which have a ProjectionNode.

Version:
$Id: IProjectionDecl.java 6196 2012-03-27 20:06:22Z thompsonbry $
Author:
Bryan Thompson

Nested Class Summary
static interface IProjectionDecl.Annotations
           
 
Method Summary
 Set<IVariable<?>> getProjectedVars(Set<IVariable<?>> vars)
          Return the set of variables projected out of this query (this is a NOP if there is no ProjectionNode for the query, which can happen for an ASK query).
 ProjectionNode getProjection()
          Return the projection -or- null if there is no projection.
 void setProjection(ProjectionNode projection)
          Set or clear the projection.
 

Method Detail

setProjection

void setProjection(ProjectionNode projection)
Set or clear the projection.

Parameters:
projection - The projection (may be null).

getProjection

ProjectionNode getProjection()
Return the projection -or- null if there is no projection.


getProjectedVars

Set<IVariable<?>> getProjectedVars(Set<IVariable<?>> vars)
Return the set of variables projected out of this query (this is a NOP if there is no ProjectionNode for the query, which can happen for an ASK query). This DOES NOT report the variables which are used by the SELECT expressions, just the variables which are PROJECTED out by the BINDs.

Parameters:
vars - The projected variables are added to this set.
Returns:
The caller's set.


Copyright © 2006-2012 SYSTAP, LLC. All Rights Reserved.