diff options
Diffstat (limited to 'store/src/main/java/tools/refinery/data/query/view/KeyOnlyRelationView.java')
-rw-r--r-- | store/src/main/java/tools/refinery/data/query/view/KeyOnlyRelationView.java | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/store/src/main/java/tools/refinery/data/query/view/KeyOnlyRelationView.java b/store/src/main/java/tools/refinery/data/query/view/KeyOnlyRelationView.java new file mode 100644 index 00000000..2cc10752 --- /dev/null +++ b/store/src/main/java/tools/refinery/data/query/view/KeyOnlyRelationView.java | |||
@@ -0,0 +1,16 @@ | |||
1 | package tools.refinery.data.query.view; | ||
2 | |||
3 | import tools.refinery.data.model.Tuple; | ||
4 | import tools.refinery.data.model.representation.Relation; | ||
5 | |||
6 | public class KeyOnlyRelationView extends FilteredRelationView<Boolean>{ | ||
7 | |||
8 | public KeyOnlyRelationView(Relation<Boolean> representation) { | ||
9 | super(representation, (k,v)->true); | ||
10 | } | ||
11 | @Override | ||
12 | protected boolean filter(Tuple key, Boolean value) { | ||
13 | return true; | ||
14 | } | ||
15 | |||
16 | } | ||