Interface AdaptationTreeOptimizerIterator
public interface AdaptationTreeOptimizerIterator
Iterator for optimization.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the current dataset, which will be optimized on the next call toexecuteCurrent()
.void
Optimizes all remaining datasets in the iterator.Optimizes current dataset and sets the cursor to the next one.boolean
hasNext()
Returnstrue
if there are still datasets to optimize,false
otherwise.boolean
Returnstrue
if the optimizer is handling duplicates in the dataset tree.boolean
Returnstrue
if the optimizer is refactoring the dataset treeReturns the next dataset, which will become the current one after the next call toexecuteCurrent()
.
-
Method Details
-
hasNext
boolean hasNext()Returnstrue
if there are still datasets to optimize,false
otherwise. -
currentAdaptation
Adaptation currentAdaptation()Returns the current dataset, which will be optimized on the next call toexecuteCurrent()
. -
nextAdaptation
Adaptation nextAdaptation()Returns the next dataset, which will become the current one after the next call toexecuteCurrent()
. -
executeAll
Optimizes all remaining datasets in the iterator.- Throws:
OperationException
-
executeCurrent
Optimizes current dataset and sets the cursor to the next one. Returns the optimized dataset, ornull
if there are no more to optimize.- Throws:
OperationException
-
isForRefactor
boolean isForRefactor()Returnstrue
if the optimizer is refactoring the dataset tree -
isForHandleDuplicates
boolean isForHandleDuplicates()Returnstrue
if the optimizer is handling duplicates in the dataset tree.
-