Interface QueryDelegatableData
- All Known Implementing Classes:
RDBMSStore
public interface QueryDelegatableData
Data source able to delegate the evaluation of higher-level queries.
-
Method Summary
Modifier and TypeMethodDescriptiondefault Stream<Substitution> Try to evaluate a basic queryTry to evaluate a basic querybooleanisEvaluable(Query query) Checks if a query can be evaluated
-
Method Details
-
isEvaluable
Checks if a query can be evaluated- Parameters:
query- the query to check- Returns:
- true iff tryEvaluate returns a non-empty optional
-
evaluate
Try to evaluate a basic query- Parameters:
query- the query to evaluatedistinct- whether duplicate substitutions should be filtered out- Returns:
- Empty if the query is not evaluable, otherwise a stream containing substitutions that are the answers to the query
- Throws:
EvaluationException- if delegated evaluation fails
-
evaluate
Try to evaluate a basic query- Parameters:
query- the query to evaluate- Returns:
- Empty if the query is not evaluable, otherwise a stream containing substitutions that are the answers to the query
- Throws:
EvaluationException- if delegated evaluation fails
-