blob: 24aa52e2fcb6c7f794762a4ddda2ddc9fa2d3d6e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
package tools.refinery.store.query.viatra;
import org.eclipse.viatra.query.runtime.api.ViatraQueryEngineOptions;
import org.eclipse.viatra.query.runtime.matchers.backend.IQueryBackendFactory;
import org.eclipse.viatra.query.runtime.matchers.backend.QueryEvaluationHint;
import tools.refinery.store.model.ModelStore;
import tools.refinery.store.query.Dnf;
import tools.refinery.store.query.ModelQueryBuilder;
import java.util.Collection;
import java.util.function.Function;
@SuppressWarnings("UnusedReturnValue")
public interface ViatraModelQueryBuilder extends ModelQueryBuilder {
ViatraModelQueryBuilder engineOptions(ViatraQueryEngineOptions engineOptions);
ViatraModelQueryBuilder defaultHint(QueryEvaluationHint queryEvaluationHint);
ViatraModelQueryBuilder backend(IQueryBackendFactory queryBackendFactory);
ViatraModelQueryBuilder cachingBackend(IQueryBackendFactory queryBackendFactory);
ViatraModelQueryBuilder searchBackend(IQueryBackendFactory queryBackendFactory);
@Override
default ViatraModelQueryBuilder queries(Dnf... queries) {
ModelQueryBuilder.super.queries(queries);
return this;
}
@Override
default ViatraModelQueryBuilder queries(Collection<Dnf> queries) {
ModelQueryBuilder.super.queries(queries);
return this;
}
@Override
ViatraModelQueryBuilder query(Dnf query);
ViatraModelQueryBuilder query(Dnf query, QueryEvaluationHint queryEvaluationHint);
ViatraModelQueryBuilder computeHint(Function<Dnf, QueryEvaluationHint> computeHint);
ViatraModelQueryBuilder hint(Dnf dnf, QueryEvaluationHint queryEvaluationHint);
@Override
ViatraModelQueryStoreAdapter createStoreAdapter(ModelStore store);
}
|