Class BinaryTransformation
- java.lang.Object
-
- it.bancaditalia.oss.vtl.impl.transform.TransformationImpl
-
- it.bancaditalia.oss.vtl.impl.transform.BinaryTransformation
-
- All Implemented Interfaces:
Transformation
,Serializable
- Direct Known Subclasses:
ArithmeticTransformation
,BooleanTransformation
,ComparisonTransformation
,ConcatTransformation
,ExistsInTransformation
,MatchTransformation
public abstract class BinaryTransformation extends TransformationImpl
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BinaryTransformation(Transformation left, Transformation right)
-
Method Summary
-
Methods inherited from class it.bancaditalia.oss.vtl.impl.transform.TransformationImpl
getLineage
-
-
-
-
Constructor Detail
-
BinaryTransformation
public BinaryTransformation(Transformation left, Transformation right)
-
-
Method Detail
-
isTerminal
public boolean isTerminal()
- Returns:
- True if this
Transformation
do not require previous computations before returning a result.
-
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
.
-
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
.
-
evalTwoScalars
protected abstract VTLValue evalTwoScalars(VTLValueMetadata metadata, ScalarValue<?,?,?,?> left, ScalarValue<?,?,?,?> right)
-
evalDatasetWithScalar
protected abstract VTLValue evalDatasetWithScalar(VTLValueMetadata metadata, boolean datasetIsLeftOp, DataSet dataset, ScalarValue<?,?,?,?> scalar)
-
evalTwoDatasets
protected abstract VTLValue evalTwoDatasets(VTLValueMetadata metadata, DataSet left, DataSet right)
-
getMetadataTwoScalars
protected abstract VTLValueMetadata getMetadataTwoScalars(ScalarValueMetadata<?,?> left, ScalarValueMetadata<?,?> right)
-
getMetadataDatasetWithScalar
protected abstract VTLValueMetadata getMetadataDatasetWithScalar(boolean datasetIsLeftOp, DataSetMetadata dataset, ScalarValueMetadata<?,?> scalar)
-
getMetadataTwoDatasets
protected abstract VTLValueMetadata getMetadataTwoDatasets(DataSetMetadata left, DataSetMetadata right)
-
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
-
getLeftOperand
public Transformation getLeftOperand()
-
getRightOperand
public Transformation getRightOperand()
-
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
-
-