org.objectweb.medor.eval.api
Interface EvaluationMetaData
- BasicEvaluationMetaData
public interface EvaluationMetaData
This interface is used for QueryTrees which can be optimized.
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 isTupleLoader) - Set a boolean for declaring parallel evaluation of sub-QueryTrees.
|
getLimitedRangeSize
public int getLimitedRangeSize()
Gets the maximum number of tuples to be returned by the evaluation in
the case of a range-limited evaluation.
- 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.
- 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.
- 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.
- 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.
- 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.
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.
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.
start
- the index of the first tuple to be returned by the
evaluation, stating at 0.
setParallel
public void setParallel(boolean isTupleLoader)
Set a boolean for declaring parallel evaluation of sub-QueryTrees.