Class UnaryTransformation
- java.lang.Object
-
- it.bancaditalia.oss.vtl.impl.transform.TransformationImpl
-
- it.bancaditalia.oss.vtl.impl.transform.UnaryTransformation
-
- All Implemented Interfaces:
Transformation
,Serializable
- Direct Known Subclasses:
AggregateTransformation
,BetweenTransformation
,BooleanUnaryTransformation
,BracketTransformation
,CastTransformation
,DatasetUnaryTransformation
,InclusionTransformation
,IsNullTransformation
,NotTransformation
,NumericUnaryTransformation
,ParenthesesTransformation
,RatioToReportTransformation
,SimpleAnalyticTransformation
,StringUnaryTransformation
,StrlenTransformation
,TimeAggTransformation
,TimeSeriesTransformation
public abstract class UnaryTransformation extends TransformationImpl
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Transformation
operand
-
Constructor Summary
Constructors Constructor Description UnaryTransformation(Transformation operand)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Lineage
computeLineage()
protected abstract VTLValueMetadata
computeMetadata(TransformationScheme scheme)
boolean
equals(Object obj)
VTLValue
eval(TransformationScheme scheme)
Evaluates this transformation in the context of the givenTransformationScheme
.protected abstract VTLValue
evalOnDataset(DataSet dataset, VTLValueMetadata metadata)
protected abstract VTLValue
evalOnScalar(ScalarValue<?,?,?,?> scalar, VTLValueMetadata metadata)
VTLValueMetadata
getMetadata(TransformationScheme scheme)
Checks and returns the metadata of thisTransformation
within the givenTransformationScheme
.Transformation
getOperand()
Set<LeafTransformation>
getTerminals()
A set of all theLeafTransformation
s recursively referenced by thisTransformation
.int
hashCode()
boolean
isTerminal()
-
Methods inherited from class it.bancaditalia.oss.vtl.impl.transform.TransformationImpl
getLineage
-
-
-
-
Field Detail
-
operand
protected final Transformation operand
-
-
Constructor Detail
-
UnaryTransformation
public UnaryTransformation(Transformation operand)
-
-
Method Detail
-
isTerminal
public final boolean isTerminal()
- Returns:
- True if this
Transformation
do not require previous computations before returning a result.
-
getTerminals
public final 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 final VTLValue eval(TransformationScheme scheme)
Description copied from interface:Transformation
Evaluates this transformation in the context of the givenTransformationScheme
.- Parameters:
scheme
- the transformation scheme- Returns:
- the result of the computation of this
Transformation
.
-
getOperand
public Transformation getOperand()
-
evalOnScalar
protected abstract VTLValue evalOnScalar(ScalarValue<?,?,?,?> scalar, VTLValueMetadata metadata)
-
evalOnDataset
protected abstract VTLValue evalOnDataset(DataSet dataset, VTLValueMetadata metadata)
-
getMetadata
public final 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
.
-
computeMetadata
protected abstract VTLValueMetadata computeMetadata(TransformationScheme scheme)
-
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
-
-