Class AggrClauseTransformation.AggrClauseItem
- java.lang.Object
-
- it.bancaditalia.oss.vtl.impl.transform.TransformationImpl
-
- it.bancaditalia.oss.vtl.impl.transform.dataset.AggrClauseTransformation.AggrClauseItem
-
- All Implemented Interfaces:
Transformation
,Serializable
- Enclosing class:
- AggrClauseTransformation
public static class AggrClauseTransformation.AggrClauseItem extends TransformationImpl
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AggrClauseItem(Class<? extends ComponentRole> role, String name, AggregateTransformation operand)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Lineage
computeLineage()
boolean
equals(Object obj)
VTLValue
eval(TransformationScheme session)
Evaluates this transformation in the context of the givenTransformationScheme
.String
getComponent()
VTLValueMetadata
getMetadata(TransformationScheme scheme)
Checks and returns the metadata of thisTransformation
within the givenTransformationScheme
.AggregateTransformation
getOperand()
Class<? extends ComponentRole>
getRole()
Set<LeafTransformation>
getTerminals()
A set of all theLeafTransformation
s recursively referenced by thisTransformation
.int
hashCode()
boolean
isTerminal()
String
toString()
AggrClauseTransformation.AggrClauseItem
withGroupBy(List<String> groupBy)
-
Methods inherited from class it.bancaditalia.oss.vtl.impl.transform.TransformationImpl
getLineage
-
-
-
-
Constructor Detail
-
AggrClauseItem
public AggrClauseItem(Class<? extends ComponentRole> role, String name, AggregateTransformation operand)
-
-
Method Detail
-
getComponent
public String getComponent()
-
getOperand
public AggregateTransformation getOperand()
-
getRole
public Class<? extends ComponentRole> getRole()
-
isTerminal
public boolean isTerminal()
- Returns:
- True if this
Transformation
do not require previous computations before returning a result.
-
getTerminals
public Set<LeafTransformation> getTerminals()
Description copied from interface:Transformation
A set of all theLeafTransformation
s recursively referenced by thisTransformation
. The set is empty ifTransformation.isTerminal()
is true.- Returns:
- the set
-
eval
public VTLValue eval(TransformationScheme session)
Description copied from interface:Transformation
Evaluates this transformation in the context of the givenTransformationScheme
.- Parameters:
session
- the transformation scheme- Returns:
- the result of the computation of this
Transformation
.
-
getMetadata
public VTLValueMetadata getMetadata(TransformationScheme scheme)
Description copied from interface:Transformation
Checks and returns the metadata of thisTransformation
within the givenTransformationScheme
.- Parameters:
scheme
- the transformation scheme- Returns:
- the metadata of this
Transformation
.
-
withGroupBy
public AggrClauseTransformation.AggrClauseItem withGroupBy(List<String> groupBy)
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfaceTransformation
- Specified by:
hashCode
in classTransformationImpl
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfaceTransformation
- Specified by:
equals
in classTransformationImpl
-
computeLineage
public Lineage computeLineage()
- Specified by:
computeLineage
in classTransformationImpl
-
-