org.objectweb.medor.eval.lib

Class BasicEvaluationMetaData

Implemented Interfaces:
EvaluationMetaData

public class BasicEvaluationMetaData
extends java.lang.Object
implements EvaluationMetaData

Author:
Sebastien Chassande-Barrioz

Method Summary

int
getLimitedRangeSize()
Gets the maximum number of tuples to be returned by the evaluation in the case of a range-limited evaluation.
int
getLimitedRangeStartAt()
Gets the value for the rank of the first tuple to be returned by the evaluation in the case of a range-limited evaluation.
boolean
isCache()
Get the value of the boolean indicating whether cache is used for materialization of intermediate results at evaluation time.
boolean
isLimitedRange()
Gets the value of the boolean indicating whether a limited range of evaluation is performed.
boolean
isParallel()
Get the value of the boolean indicating whether parallel evaluation of sub-QueryTrees is performed.
void
setCache(boolean isCache)
Set a boolean for declaring the use of a cache for intermediate materialization of results at evaluation time.
void
setLimitedRangeSize(int number)
Sets the maximum number of tuples to be returned by the evaluation in the case of a range-limited evaluation.
void
setLimitedRangeStartAt(int start)
Sets the value for the rank of the first tuple to be returned by the evaluation in the case of a range-limited evaluation.
void
setParallel(boolean isParallel)
Set a boolean for declaring parallel evaluation of sub-QueryTrees.

Method Details

getLimitedRangeSize

public int getLimitedRangeSize()
Gets the maximum number of tuples to be returned by the evaluation in the case of a range-limited evaluation.
Specified by:
getLimitedRangeSize in interface EvaluationMetaData

Returns:
the maximum number of tuples to be returned by the evaluation.


getLimitedRangeStartAt

public int getLimitedRangeStartAt()
Gets the value for the rank of the first tuple to be returned by the evaluation in the case of a range-limited evaluation.
Specified by:
getLimitedRangeStartAt in interface EvaluationMetaData

Returns:
the value for the first tuple to be returned by the evaluation, starting at 0.


isCache

public boolean isCache()
Get the value of the boolean indicating whether cache is used for materialization of intermediate results at evaluation time.
Specified by:
isCache in interface EvaluationMetaData

Returns:
the boolean indicating whether the cache is used for materialization of intermediate results.


isLimitedRange

public boolean isLimitedRange()
Gets the value of the boolean indicating whether a limited range of evaluation is performed.

If true, there should be a value for the first tuple index and a value for the maximum number of tuples to be returned by the evaluation.

Specified by:
isLimitedRange in interface EvaluationMetaData

Returns:
true if limited range evaluation is to be performed.


isParallel

public boolean isParallel()
Get the value of the boolean indicating whether parallel evaluation of sub-QueryTrees is performed.
Specified by:
isParallel in interface EvaluationMetaData

Returns:
the boolean indicating parallel evaluation of sub-QueryTrees is performed.


setCache

public void setCache(boolean isCache)
Set a boolean for declaring the use of a cache for intermediate materialization of results at evaluation time.
Specified by:
setCache in interface EvaluationMetaData


setLimitedRangeSize

public void setLimitedRangeSize(int number)
Sets the maximum number of tuples to be returned by the evaluation in the case of a range-limited evaluation.
Specified by:
setLimitedRangeSize in interface EvaluationMetaData

Parameters:
number - the maximum number of tuples to be returned by the evaluation


setLimitedRangeStartAt

public void setLimitedRangeStartAt(int start)
Sets the value for the rank of the first tuple to be returned by the evaluation in the case of a range-limited evaluation.
Specified by:
setLimitedRangeStartAt in interface EvaluationMetaData

Parameters:
start - the index of the first tuple to be returned by the evaluation, stating at 0.


setParallel

public void setParallel(boolean isParallel)
Set a boolean for declaring parallel evaluation of sub-QueryTrees.
Specified by:
setParallel in interface EvaluationMetaData