public interface IRelation
Modifier and Type | Method and Description |
---|---|
IRelation |
aggregate(java.util.Map<NameIdentifier,java.lang.String> expressions)
Computes the aggregation of this relation, per the given aggregatin specs.
|
IRelation |
dividedyper(IRelation divisor,
IRelation per)
Computes the division of this relation by the given divisor, per the given 'per' relation.
|
IRelation |
extend(java.util.Map<NameIdentifier,java.lang.String> extendExpressions)
Computes the extend of this relation, according to the specs provided in extendExpressions.
|
java.lang.String |
getHostExpressionEvaluationText()
Gets The expression text for the expression to be evaluated by the host
|
RelationBuffer |
getRelationBuffer()
Gets the RelationBuffer holding the tuples collection.
|
IRelation |
group(java.util.Map<NameIdentifier,java.util.Set<NameIdentifier>> groupAttributes)
Computes the grouping of this relation, according to the specs provided in groupAttributes.
|
IRelation |
gtclose(java.util.Map<NameIdentifier,NameIdentifier> matchby,
java.util.Map<NameIdentifier,java.lang.String> expressions)
Computes the generalized transitive closure of this relation, according to the specs provided in matchby and expressions.
|
IRelation |
intersect(IRelation intersectWith)
Computes the intersection of this relation with the given one.
|
IRelation |
intersectUsing(IRelation intersectWith,
java.util.LinkedHashSet<NameIdentifier> usingAttributes)
Computes the intersection of this relation with the given one, with explicitly specified attributes (and only those) to be treated in 'USING' mode.
|
boolean |
isProxy()
Checks whether this object is a proxy for a relation.
|
IRelation |
join(IRelation joinwith)
Computes the join of this relation with the given one, with explicitly specified attributes (and only those) to be treated in 'USING' mode.
|
IRelation |
joinUsing(IRelation joinwith,
java.util.LinkedHashSet<NameIdentifier> usingAttributes)
Computes the join of this relation with the given one, with explicitly specified attributes (and only those) to be treated in 'USING' mode.
|
IRelation |
leftJoin(IRelation leftjoinwith,
java.util.Map<NameIdentifier,java.lang.String> missingAttributeValueExpressions)
Computes the leftjoin of this relation with the given one.
|
IRelation |
leftJoinUsing(IRelation leftjoinwith,
java.util.Map<NameIdentifier,java.lang.String> missingAttributeValueExpressions,
java.util.LinkedHashSet<NameIdentifier> usingAttributes)
Computes the leftjoin of this relation with the given one.
|
IRelation |
minus(IRelation subtrahend)
Computes the difference of this relation with the given subtrahend, with explicitly specified attributes (and only those) to be treated in 'USING' mode.
|
IRelation |
minusUsing(IRelation subtrahend,
java.util.LinkedHashSet<NameIdentifier> usingAttributes)
Computes the difference of this relation with the given subtrahend, with explicitly specified attributes (and only those) to be treated in 'USING' mode.
|
IRelation |
pack(NameIdentifier... packAttributes)
Computes an pack of this relation.
|
IRelation |
project(NameIdentifier... attributes)
Computes the projection of this relation over the attributes provided.
|
IRelation |
rename(java.util.Map<NameIdentifier,NameIdentifier> renames)
Computes the rename of this relation according to the provided rename specs.
|
IRelation |
restrict(java.lang.String restrictExpression)
Computes the restriction of this relation to the set of tuples that satisfy the given boolean expression.
|
IRelation |
semijoin(IRelation semiJoinWith)
Computes the semijoin between this relation and the given one.
|
IRelation |
semijoinUsing(IRelation semiJoinWith,
java.util.LinkedHashSet<NameIdentifier> usingAttributes)
Computes the semijoin between this relation and the given one.
|
IRelation |
semiminus(IRelation semiDiffWith)
Computes the semidifference between this relation and the given one.
|
IRelation |
semiminusUsing(IRelation semiDiffWith,
java.util.LinkedHashSet<NameIdentifier> usingAttributes)
Computes the semidifference between this relation and the given one.
|
IRelation |
summarizeby(java.util.Set<NameIdentifier> byAttributes,
java.util.Map<NameIdentifier,java.lang.String> expressions)
Computes the summaries specified by expressions groups of tuples in this relation, with the grouping as specified in byAttributes.
|
IRelation |
tclose(java.util.Map<NameIdentifier,NameIdentifier> matchby)
Computes the transitive closure of the given relation using the attribute matching as specified by matchby.
|
IRelation |
transform(java.util.Map<NameIdentifier,java.lang.String> transformSpecs)
Computes the specified transformation of this relation.
|
IRelation |
ungroup(NameIdentifier... ungroupAttributes)
Computes the ungrouping of this relation using the specified ungroup attributes.
|
IRelation |
union(IRelation unionWith)
Computes the union of this relation with another one, with explicitly specified attributes (and only those) to be treated in 'USING' mode.
|
IRelation |
unionUsing(IRelation unionWith,
java.util.LinkedHashSet<NameIdentifier> usingAttributes)
Computes the union of this relation with another one, with explicitly specified attributes (and only those) to be treated in 'USING' mode.
|
IRelation |
unpack(NameIdentifier... unpackAttributes)
Computes an unpack of this relation.
|
IRelation |
xminus(IRelation symdiffWith)
Computes the symmetric difference between this relation and the given one.
|
IRelation |
xminusUsing(IRelation symdiffWith,
java.util.LinkedHashSet<NameIdentifier> usingAttributes)
Computes the symmetric difference between this relation and the given one, with the attributes mentioned in usingAttributes treated in 'USING' mode.
|
IRelation aggregate(java.util.Map<NameIdentifier,java.lang.String> expressions)
AGGREGATE
.expressions
- the map defining the names for the attributes holding the computed aggregation values in the result, and the expressions texts of the expressions for computing themIRelation dividedyper(IRelation divisor, IRelation per) throws ValidationException, EvaluationException
DIVIDEBYPER
.divisor
- the divisor by which this relation is to be relationally dividedper
- the 'per' relation as per TTM divideEvaluationException
- If immediate evaluation was attempted and that evaluation failed for any reasonValidationException
- If the given combination of relations do not constitute a valid relational division operationIRelation extend(java.util.Map<NameIdentifier,java.lang.String> extendExpressions)
EXTEND
.extendExpressions
- the map defining the names for the attributes holding the computed extend values in the result, and the expressions texts of the expressions for computing themjava.lang.String getHostExpressionEvaluationText()
RelationBuffer getRelationBuffer() throws EvaluationException
EvaluationException
- If an expression evaluation on the server failed for any reason. The exception reflecting that reason will be contained as cause in the EvaluationException object.IRelation group(java.util.Map<NameIdentifier,java.util.Set<NameIdentifier>> groupAttributes) throws EvaluationException
GROUP
.groupAttributes
- The specification of the groupings to be applied. Each entry consists of an attribute name for the relation-valued attribute in the result, and the set of attributes of this relation that that relation-typed attribute is to include.EvaluationException
- If immediate evaluation was performed and that evaluation raised an exceptionIRelation gtclose(java.util.Map<NameIdentifier,NameIdentifier> matchby, java.util.Map<NameIdentifier,java.lang.String> expressions)
GTCLOSE
.matchby
- The specification of the closure's matching schemeexpressions
- the specifications of the expressions for determining the values of all the attributes of the involved relation that are not part of the closure's matching scheme (i.e. the attributes not mentioned in matchby)IRelation intersect(IRelation intersectWith) throws EvaluationException
INTERSECT
.intersectWith
- the relation to intersect with this oneEvaluationException
- If immediate evaluation was performed and that evaluation raised an exceptionIRelation intersectUsing(IRelation intersectWith, java.util.LinkedHashSet<NameIdentifier> usingAttributes) throws EvaluationException
INTERSECT
.intersectWith
- the relation to intersect with this oneusingAttributes
- the in-order list of interval-typed attributes to be treated in 'USING' mode for the intersection and the packing of the resultEvaluationException
- If immediate evaluation was performed and that evaluation raised an exceptionboolean isProxy()
getRelationBuffer()
method.IRelation join(IRelation joinwith) throws EvaluationException
JOIN
.joinwith
- the relation to join with this oneEvaluationException
- If immediate evaluation was performed and that evaluation raised an exceptionIRelation joinUsing(IRelation joinwith, java.util.LinkedHashSet<NameIdentifier> usingAttributes) throws EvaluationException
JOIN
.joinwith
- the relation to join with this oneusingAttributes
- the names of the interval-typed attributes to be treated in 'USING' mode by the joinEvaluationException
- If immediate evaluation was performed and that evaluation raised an exceptionIRelation leftJoin(IRelation leftjoinwith, java.util.Map<NameIdentifier,java.lang.String> missingAttributeValueExpressions) throws EvaluationException, ValidationException
LEFTJOIN
.leftjoinwith
- the relation to leftjoin this one tomissingAttributeValueExpressions
- The map of attributeName to default value epxression texts for all the attributes that appear in the leftjoinwith argument and are not join attributesEvaluationException
- If immediate evaluation was performed and that evaluation raised an exceptionValidationException
- if the leftjoinwith argument is not join-compatible with this one, or if the missingAttributeValueExpressions do not define a map with expressions of the appropriate type for all and exactly the attributes of the leftjoinwith argument that do not appear in this relationIRelation leftJoinUsing(IRelation leftjoinwith, java.util.Map<NameIdentifier,java.lang.String> missingAttributeValueExpressions, java.util.LinkedHashSet<NameIdentifier> usingAttributes) throws EvaluationException, ValidationException
LEFTJOIN
.leftjoinwith
- the relation to leftjoin this one tomissingAttributeValueExpressions
- The map of attributeName to default value epxression texts for all the attributes that appear in the leftjoinwith argument and are not join attributesusingAttributes
- the names of the interval-typed attributes to be treated in 'USING' mode by the joinEvaluationException
- If immediate evaluation was performed and that evaluation raised an exceptionValidationException
- if the leftjoinwith argument is not join-compatible with this one, or if the missingAttributeValueExpressions do not define a map with expressions of the appropriate type for all and exactly the attributes of the leftjoinwith argument that do not appear in this relationIRelation minus(IRelation subtrahend) throws EvaluationException
MINUS
.subtrahend
- the relation to subtract from this oneEvaluationException
- If immediate evaluation was performed and that evaluation raised an exceptionIRelation minusUsing(IRelation subtrahend, java.util.LinkedHashSet<NameIdentifier> usingAttributes) throws EvaluationException
MINUS
.subtrahend
- the relation to be 'subtracted' from this one, with the specified usingAttributes being treated in 'using' modeusingAttributes
- the in-order list of interval-typed attributes to be treated in 'USING' mode for the difference and the subsequent packing of the resultEvaluationException
- If immediate evaluation was performed and that evaluation raised an exceptionIRelation pack(NameIdentifier... packAttributes) throws EvaluationException, ValidationException
PACK
.packAttributes
- the interval-typed attributes over which this relation is to be packedEvaluationException
- If immediate evaluation was performed and that evaluation raised an exceptionValidationException
- If an invalid list of PACK attributes was providedIRelation project(NameIdentifier... attributes) throws EvaluationException, ValidationException
PROJECT
.attributes
- the attributes to be retained in a projection of this relationEvaluationException
- If immediate evaluation was performed and that evaluation raised an exceptionValidationException
- If an invalid list of projection attribute names was providedIRelation rename(java.util.Map<NameIdentifier,NameIdentifier> renames) throws EvaluationException
RENAME
.renames
- the specification of the renames to be applied to this relation. Each entry consists of the attribute name for an attribute in this relation, and the attribute name for the corresponding attribute in the resulting relation.EvaluationException
- If immediate evaluation was performed and that evaluation raised an exceptionIRelation restrict(java.lang.String restrictExpression) throws EvaluationException
RESTRICT
.restrictExpression
- the expression text of a boolean expression to be applied to this relationEvaluationException
- If immediate evaluation was performed and that evaluation raised an exceptionIRelation semijoin(IRelation semiJoinWith) throws EvaluationException, ValidationException
SEMIJOIN
.semiJoinWith
- the relation to which this relation is to be semijoinedEvaluationException
- If immediate evaluation was performed and that evaluation raised an exceptionValidationException
- if the given semiJoinWith argument is not join-compatible with this relationIRelation semijoinUsing(IRelation semiJoinWith, java.util.LinkedHashSet<NameIdentifier> usingAttributes) throws EvaluationException, ValidationException
SEMIJOIN
.semiJoinWith
- the relation to which this relation is to be semijoinedusingAttributes
- the interval-typed attributes that are to be treated in 'USING' mode by the semijoin. Must be a subset of the interval-typed attributes that are common between the heading of this relation and that of the semiJoinWith relation.EvaluationException
- If immediate evaluation was performed and that evaluation raised an exceptionValidationException
- if the given semiJoinWith argument is not join-compatible with this relationIRelation semiminus(IRelation semiDiffWith) throws EvaluationException, ValidationException
SEMIMINUS
.semiDiffWith
- the relation to which this relation is to be semidiffedEvaluationException
- If immediate evaluation was performed and that evaluation raised an exceptionValidationException
- If the given semiDiffWith relation is not join-compatible with this oneIRelation semiminusUsing(IRelation semiDiffWith, java.util.LinkedHashSet<NameIdentifier> usingAttributes) throws EvaluationException, ValidationException
SEMIMINUS
.semiDiffWith
- the relation to which this relation is to be semidiffedusingAttributes
- the interval-typed attributes that are to be treated in 'USING' mode by the semidifference. Must be a subset of the interval-typed attributes that are common between the heading of this relation and that of the semiDiffWith relation.EvaluationException
- If immediate evaluation was performed and that evaluation raised an exceptionValidationException
- If the given semiDiffWith relation is not join-compatible with this oneIRelation summarizeby(java.util.Set<NameIdentifier> byAttributes, java.util.Map<NameIdentifier,java.lang.String> expressions) throws EvaluationException
SUMMARIZEBY
.byAttributes
- The set of attributes per which summaries are to be included in the result.expressions
- The map of summary attributes to be computed and the expressions for computing their values in the resultEvaluationException
- If immediate evaluation was performed and that evaluation raised an exceptionIRelation tclose(java.util.Map<NameIdentifier,NameIdentifier> matchby) throws EvaluationException
TCLOSE
.matchby
- the specification of how attributes are matched in the closure to determine additional tuples in the resultEvaluationException
- If immediate evaluation was performed and that evaluation raised an exceptionIRelation transform(java.util.Map<NameIdentifier,java.lang.String> transformSpecs) throws EvaluationException
TRANSFORM
.transformSpecs
- The specification of how to transform the input relation.EvaluationException
- If immediate evaluation was performed and that evaluation raised an exceptionIRelation ungroup(NameIdentifier... ungroupAttributes) throws EvaluationException, ValidationException
UNGROUP
.ungroupAttributes
- the relation-typed attributes of this relation that are to be ungrouped in the resultEvaluationException
- If immediate evaluation was performed and that evaluation raised an exceptionValidationException
- if an invalid list of ungroupAttributes was providedIRelation union(IRelation unionWith) throws EvaluationException
UNION
unionWith
- the relation to be unioned with this oneEvaluationException
- If immediate evaluation was performed and that evaluation raised an exceptionIRelation unionUsing(IRelation unionWith, java.util.LinkedHashSet<NameIdentifier> usingAttributes) throws EvaluationException
UNION
unionWith
- the relation to be unioned with this oneusingAttributes
- the in-order list of interval-typed attributes to be treated in 'USING' mode for the union and the packing of the resultEvaluationException
- If immediate evaluation was performed and that evaluation raised an exceptionIRelation unpack(NameIdentifier... unpackAttributes) throws EvaluationException, ValidationException
UNPACK
unpackAttributes
- the interval-typed attributes over which this relation is to be unpackedEvaluationException
- If immediate evaluation was performed and that evaluation raised an exceptionValidationException
- If an invalid list of unpackAttributes was providedIRelation xminus(IRelation symdiffWith) throws EvaluationException
XMINUS
symdiffWith
- the relation to be symdiffed with this oneEvaluationException
- If immediate evaluation was performed and that evaluation raised an exceptionIRelation xminusUsing(IRelation symdiffWith, java.util.LinkedHashSet<NameIdentifier> usingAttributes) throws EvaluationException
XMINUS
symdiffWith
- the relation to be symdiffed with this oneusingAttributes
- the interval-typed attributes over which this relation is to be unpackedEvaluationException
- If immediate evaluation was performed and that evaluation raised an exception