aboutsummaryrefslogtreecommitdiffstats
path: root/subprojects/store-query/src/main/java/tools/refinery/store/query/view/AnyRelationView.java
blob: bc3ac1eaf83051c1d5a0a3903c58dcbb54252fd0 (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
package tools.refinery.store.query.view;

import tools.refinery.store.model.Model;
import tools.refinery.store.query.FunctionalDependency;
import tools.refinery.store.representation.AnySymbol;
import tools.refinery.store.query.RelationLike;

import java.util.Set;

public sealed interface AnyRelationView extends RelationLike permits RelationView {
	AnySymbol getSymbol();

	String getViewName();

	default Set<FunctionalDependency<Integer>> getFunctionalDependencies() {
		return Set.of();
	}

	default Set<RelationViewImplication> getImpliedRelationViews() {
		return Set.of();
	}

	boolean get(Model model, Object[] tuple);

	Iterable<Object[]> getAll(Model model);
}