Package com.orchestranetworks.service.extensions

# Class AdaptationTreeOptimizerSpec_RemoveDuplicates

java.lang.Object
com.orchestranetworks.service.extensions.AdaptationTreeOptimizerSpec
com.orchestranetworks.service.extensions.AdaptationTreeOptimizerSpec_RemoveDuplicates

public class AdaptationTreeOptimizerSpec_RemoveDuplicates extends AdaptationTreeOptimizerSpec
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

  Constructors
  Constructor
  Description
  `AdaptationTreeOptimizerSpec_RemoveDuplicates(Adaptation aDataSet, boolean includeAllDescendants)`
  Constructs a specification for removing duplicates in a dataset tree.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `AdaptationTreeOptimizerIterator`
  `createOptimizerIterator(Session aSession)`
  Builds an iterator for dataset tree optimization.

  ### Methods inherited from class com.orchestranetworks.service.extensions.AdaptationTreeOptimizerSpec

  `getAdaptation, isIncludeAllDescendants`

  ### Methods inherited from class java.lang.Object

  `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 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 to `false`, 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

    public AdaptationTreeOptimizerIterator createOptimizerIterator(Session aSession)
    Description copied from class: `AdaptationTreeOptimizerSpec`
    Builds an iterator for dataset tree optimization.
    Specified by:
      `createOptimizerIterator` in class `AdaptationTreeOptimizerSpec`
    Parameters:
      `aSession` - session for running the optimization.