public class MutableRelation extends Object implements RelationalOperators
DUMMY| Constructor and Description |
|---|
MutableRelation(Relation initialState) |
| Modifier and Type | Method and Description |
|---|---|
Relation |
empty() |
Relation |
immutableSnapshot() |
Relation |
limit(int limit) |
Relation |
orderBy(List<OrderSpec> orderSpecs) |
Relation |
project(Set<? extends ProjectionSpec> projectionSpecs)
Applies the projection operator to this relation.
|
Relation |
renameColumns(ColumnRenamer renamer)
Applies the rename operator to this relation.
|
Relation |
select(Expression condition)
Applies the selection operator to this relation.
|
Relation |
swapLimits() |
public MutableRelation(Relation initialState)
public Relation immutableSnapshot()
public Relation renameColumns(ColumnRenamer renamer)
RelationalOperatorsApplies the rename operator to this relation.
Renames of attributes that don't exist in the relation are ignored.
renameColumns in interface RelationalOperatorsrenamer - A map from original to replacement namespublic Relation empty()
public Relation select(Expression condition)
RelationalOperatorsApplies the selection operator to this relation. The new relation will contain only the tuples for which the expression evaluates to true.
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 RelationalOperatorscondition - A boolean expressionpublic Relation swapLimits()
public Relation project(Set<? extends ProjectionSpec> projectionSpecs)
RelationalOperatorsApplies the projection operator to this relation.
The new relation will contain only the attributes given as the argument.
project in interface RelationalOperatorsprojectionSpecs - A set of ProjectionSpec instancespublic Relation limit(int limit)