forked from riccardotommasini/polyflow-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathContinuousQuery.java
More file actions
53 lines (40 loc) · 1.2 KB
/
ContinuousQuery.java
File metadata and controls
53 lines (40 loc) · 1.2 KB
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
49
50
51
52
53
package graph;
import org.streamreasoning.polyflow.api.processing.Task;
import org.streamreasoning.polyflow.api.stream.data.DataStream;
import java.util.List;
//Seraph query
public class ContinuousQuery<I, W, R extends Iterable<?>, O> {
private final List<String> projections;
private final String id;
private final Task<I, W, R, O> task;
private DataStream<O> output;
private List<DataStream<I>> input;
public ContinuousQuery(String id, Task task, List<String> projections, DataStream<O> output, List<DataStream<I>> input) {
this.projections = projections;
this.id = id;
this.task = task;
this.output = output;
this.input = input;
}
public String id() {
return this.id;
}
public List<String> getResultVars() {
return projections;
}
public Task<I, W, R, O> getTask() {
return task;
}
public void setOutput(DataStream<O> output) {
this.output = output;
}
public DataStream<O> outstream() {
return output;
}
public void setInput(DataStream<I> output) {
this.input = input;
}
public List<DataStream<I>> instream() {
return input;
}
}