Class AdaptationTreeOptimizerSpec_RemoveDuplicates
java.lang.Object
com.orchestranetworks.service.extensions.AdaptationTreeOptimizerSpec
com.orchestranetworks.service.extensions.AdaptationTreeOptimizerSpec_RemoveDuplicates
Specifies an optimization by removing duplicates in a dataset tree.
The optimization is made by comparing the specified dataset A and each specified descendant B:
For each A and B pair compared:
if the value of B is defined and is equal to the corresponding value of A,
then the value in B is set to "inherited
".
For tables, it compares each child node of each record to the record with the same primary key in the parent.
-
Constructor Summary
ConstructorsConstructorDescriptionAdaptationTreeOptimizerSpec_RemoveDuplicates
(Adaptation aDataSet, boolean includeAllDescendants) Constructs a specification for removing duplicates in a dataset tree. -
Method Summary
Modifier and TypeMethodDescriptioncreateOptimizerIterator
(Session aSession) Builds an iterator for dataset tree optimization.Methods inherited from class com.orchestranetworks.service.extensions.AdaptationTreeOptimizerSpec
getAdaptation, isIncludeAllDescendants
-
Constructor Details
-
AdaptationTreeOptimizerSpec_RemoveDuplicates
public AdaptationTreeOptimizerSpec_RemoveDuplicates(Adaptation aDataSet, boolean includeAllDescendants) Constructs a specification for removing duplicates in a dataset tree.If the parameter
includeAllDescendants
is set tofalse
, the optimization will only handle the specified dataset and its children.- Parameters:
aDataSet
- top parent targeted by the dataset tree optimization.includeAllDescendants
- includes the specified dataset and all descendant datasets.
-
-
Method Details
-
createOptimizerIterator
Description copied from class:AdaptationTreeOptimizerSpec
Builds an iterator for dataset tree optimization.- Specified by:
createOptimizerIterator
in classAdaptationTreeOptimizerSpec
- Parameters:
aSession
- session for running the optimization.
-