public abstract class RENAME extends RelationalOperator
Constructor and Description |
---|
RENAME() |
Modifier and Type | Method and Description |
---|---|
static RelationBuffer |
computeRename(RelationBuffer relationBuffer,
java.util.Map<NameIdentifier,NameIdentifier> renames,
java.util.HashSet<NameIdentifier> retainedAttributeNames) |
static Relation |
computeRename(Relation relation,
java.util.Map<NameIdentifier,NameIdentifier> renames) |
int |
getMaximumArgumentCount()
Gets the maximum argument count for this operator.
|
int |
getMinimumArgumentCount()
Gets the minimum argument count for this operator.
|
java.lang.String |
getName()
Gets the operator name
|
boolean |
isMonoRelationOperator()
Checks if the operator takes only one Relation as input
|
static RENAMEInvocationResultDetails |
validateExpressionDetails(Heading heading,
java.util.Map<NameIdentifier,NameIdentifier> renameFromToMap,
java.lang.String inputPredicate,
java.util.Collection<? extends KeyDef> inputKeySpecifications) |
toString
public static RENAMEInvocationResultDetails validateExpressionDetails(Heading heading, java.util.Map<NameIdentifier,NameIdentifier> renameFromToMap, java.lang.String inputPredicate, java.util.Collection<? extends KeyDef> inputKeySpecifications) throws DuplicateAttributeException, NonExistingAttributeException
heading
- The heading of a relation to be subjected to a renamerenameFromToMap
- the set of rename entries to be appliedinputPredicate
- The predicate of which the relation subjected to a restriction is the extensioninputKeySpecifications
- The keys known to be satisfied by the relation subjected to a restrictionDuplicateAttributeException
- If more than one attribute is being renamed to the same attributeNonExistingAttributeException
- If an attribute is specified in the renames that does not appear in the headingpublic static Relation computeRename(Relation relation, java.util.Map<NameIdentifier,NameIdentifier> renames) throws EvaluationException
relation
- the relation to be subjected to a rename operationrenames
- the set of rename entries to be appliedEvaluationException
- If the evaluation failed for any reason. See the contained getCause() exception for more detail.public static RelationBuffer computeRename(RelationBuffer relationBuffer, java.util.Map<NameIdentifier,NameIdentifier> renames, java.util.HashSet<NameIdentifier> retainedAttributeNames)
relationBuffer
- the buffer holding a relation to be subjected to a rename operationrenames
- the set of rename entries to be appliedretainedAttributeNames
- The retained attribute namespublic final java.lang.String getName()
RelationalOperator
getName
in class RelationalOperator
public final boolean isMonoRelationOperator()
RelationalOperator
isMonoRelationOperator
in class RelationalOperator
public final int getMaximumArgumentCount()
RelationalOperator
getMaximumArgumentCount
in class RelationalOperator
public final int getMinimumArgumentCount()
RelationalOperator
getMinimumArgumentCount
in class RelationalOperator