|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.fuberlin.wiwiss.d2rq.algebra.RelationImpl
public class RelationImpl
Field Summary |
---|
Fields inherited from interface de.fuberlin.wiwiss.d2rq.algebra.Relation |
---|
EMPTY, TRUE |
Constructor Summary | |
---|---|
RelationImpl(ConnectedDB database,
AliasMap aliases,
Map attributeConditions,
Expression condition,
Set joinConditions)
|
Method Summary | |
---|---|
AliasMap |
aliases()
The tables that are used to set up this relation, both in their aliased form, and with their original physical names. |
Map |
attributeConditions()
All tuples in the relation must have a certain value for an attribute if present in this map. |
Expression |
condition()
An expression that must be satisfied for all tuples in the relation. |
ConnectedDB |
database()
|
Set |
joinConditions()
Returns the join conditions that must hold between the tables in the relation. |
Relation |
renameColumns(ColumnRenamer renames)
Applies the rename operator to this relation. |
Relation |
select(Map newConditions)
Applies the selection operator to this relation, using equality conditions on a number of attributes as the selection expression. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RelationImpl(ConnectedDB database, AliasMap aliases, Map attributeConditions, Expression condition, Set joinConditions)
Method Detail |
---|
public ConnectedDB database()
database
in interface Relation
public AliasMap aliases()
Relation
aliases
in interface Relation
public Map attributeConditions()
Relation
attributeConditions
in interface Relation
Attribute
n to stringspublic Expression condition()
Relation
condition
in interface Relation
Expression.TRUE
indicates no conditionpublic Set joinConditions()
Relation
joinConditions
in interface Relation
Join
spublic Relation select(Map newConditions)
RelationalOperators
Applies the selection operator to this relation, using equality conditions on a number of attributes as the selection expression. The new relation will contain only tuples whose attribute values are equal to the string values in the argument map.
Selection on attributes that don't exist in the relation are considered to be always false and will cause an empty relation.
select
in interface RelationalOperators
newConditions
- A map from Attribute
s to Strings
public Relation renameColumns(ColumnRenamer renames)
RelationalOperators
Applies the rename operator to this relation.
Renames of attributes that don't exist in the relation are ignored.
renameColumns
in interface RelationalOperators
renames
- A map from original to replacement names
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |