Interface Transformation
-
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
LeafTransformation
- All Known Implementing Classes:
AggrClauseTransformation
,AggrClauseTransformation.AggrClauseItem
,AggregateTransformation
,ArithmeticTransformation
,BetweenTransformation
,BinaryTransformation
,BooleanTransformation
,BooleanUnaryTransformation
,BracketTransformation
,CalcClauseTransformation
,CalcClauseTransformation.CalcClauseItem
,CallTransformation
,CastTransformation
,CheckHierarchyTransformation
,CheckTransformation
,ComparisonTransformation
,ConcatTransformation
,ConditionalTransformation
,ConstantOperand
,CurrentDateOperand
,DatasetClauseTransformation
,DatasetUnaryTransformation
,DropClauseTransformation
,ExistsInTransformation
,FillTimeSeriesTransformation
,FilterClauseTransformation
,InclusionTransformation
,InStrTransformation
,IsNullTransformation
,JoinTransformation
,KeepClauseTransformation
,MatchTransformation
,NotTransformation
,NumericUnaryTransformation
,NvlTransformation
,OffsetTransformation
,ParenthesesTransformation
,PeriodIndicatorTransformation
,PivotClauseTransformation
,RankTransformation
,RatioToReportTransformation
,RenameClauseTransformation
,ReplaceTransformation
,SetTransformation
,SimpleAnalyticTransformation
,StringUnaryTransformation
,StrlenTransformation
,SubspaceClauseTransformation
,SubstrTransformation
,TimeAggTransformation
,TimeSeriesTransformation
,TimeShiftTransformation
,TransformationImpl
,UnaryTransformation
,UnpivotClauseTransformation
,VarIDOperand
public interface Transformation extends Serializable
The representation of a VTL transformation.- Author:
- Valentino Pinna
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
equals(Object obj)
VTLValue
eval(TransformationScheme scheme)
Evaluates this transformation in the context of the givenTransformationScheme
.Lineage
getLineage()
Get the lineage history of this transformation inside a givenTransformationScheme
.VTLValueMetadata
getMetadata(TransformationScheme scheme)
Checks and returns the metadata of thisTransformation
within the givenTransformationScheme
.Set<LeafTransformation>
getTerminals()
A set of all theLeafTransformation
s recursively referenced by thisTransformation
.int
hashCode()
boolean
isTerminal()
-
-
-
Method Detail
-
isTerminal
boolean isTerminal()
- Returns:
- True if this
Transformation
do not require previous computations before returning a result.
-
getTerminals
Set<LeafTransformation> getTerminals()
A set of all theLeafTransformation
s recursively referenced by thisTransformation
. The set is empty ifisTerminal()
is true.- Returns:
- the set
-
eval
VTLValue eval(TransformationScheme scheme)
Evaluates this transformation in the context of the givenTransformationScheme
.- Parameters:
scheme
- the transformation scheme- Returns:
- the result of the computation of this
Transformation
.
-
getMetadata
VTLValueMetadata getMetadata(TransformationScheme scheme)
Checks and returns the metadata of thisTransformation
within the givenTransformationScheme
.- Parameters:
scheme
- the transformation scheme- Returns:
- the metadata of this
Transformation
. - Throws:
VTLException
- if the metadata is incoherent within the givenTransformationScheme
.
-
getLineage
Lineage getLineage()
Get the lineage history of this transformation inside a givenTransformationScheme
.- Returns:
- the transformation lineage
-
-