de.fuberlin.wiwiss.d2rq.algebra
Class ExpressionProjectionSpec

java.lang.Object
  extended by de.fuberlin.wiwiss.d2rq.algebra.ExpressionProjectionSpec
All Implemented Interfaces:
ProjectionSpec, Comparable<ProjectionSpec>

public class ExpressionProjectionSpec
extends Object
implements ProjectionSpec


Constructor Summary
ExpressionProjectionSpec(Expression expression)
           
 
Method Summary
 int compareTo(ProjectionSpec other)
          Compares columns alphanumerically by qualified name, case sensitive.
 boolean equals(Object other)
           
 int hashCode()
           
 Expression notNullExpression(ConnectedDB database, AliasMap aliases)
           
 ProjectionSpec renameAttributes(ColumnRenamer renamer)
           
 Set<Attribute> requiredAttributes()
           
 Expression toExpression()
           
 String toSQL(ConnectedDB database, AliasMap aliases)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExpressionProjectionSpec

public ExpressionProjectionSpec(Expression expression)
Method Detail

renameAttributes

public ProjectionSpec renameAttributes(ColumnRenamer renamer)
Specified by:
renameAttributes in interface ProjectionSpec

requiredAttributes

public Set<Attribute> requiredAttributes()
Specified by:
requiredAttributes in interface ProjectionSpec

toExpression

public Expression toExpression()
Specified by:
toExpression in interface ProjectionSpec

toSQL

public String toSQL(ConnectedDB database,
                    AliasMap aliases)
Specified by:
toSQL in interface ProjectionSpec

notNullExpression

public Expression notNullExpression(ConnectedDB database,
                                    AliasMap aliases)
Specified by:
notNullExpression in interface ProjectionSpec

equals

public boolean equals(Object other)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

compareTo

public int compareTo(ProjectionSpec other)
Compares columns alphanumerically by qualified name, case sensitive. Attributes with schema are larger than attributes without schema.

Specified by:
compareTo in interface Comparable<ProjectionSpec>