提交 937412cb 编写于 作者: M Márton Balassi 提交者: Stephan Ewen

[streaming] Package naming refactor

上级 8c219335
package eu.stratosphere.streaming;
package eu.stratosphere.streaming.api;
import java.util.HashMap;
import java.util.Map;
......@@ -14,6 +14,9 @@ import eu.stratosphere.nephele.jobgraph.JobOutputVertex;
import eu.stratosphere.nephele.jobgraph.JobTaskVertex;
import eu.stratosphere.nephele.template.AbstractInputTask;
import eu.stratosphere.pact.runtime.task.util.TaskConfig;
import eu.stratosphere.streaming.api.invokable.UserSinkInvokable;
import eu.stratosphere.streaming.api.invokable.UserSourceInvokable;
import eu.stratosphere.streaming.api.invokable.UserTaskInvokable;
import eu.stratosphere.streaming.partitioner.DefaultPartitioner;
import eu.stratosphere.types.Record;
......@@ -89,6 +92,7 @@ public class JobGraphBuilder {
components.put(sinkName, sink);
}
//TODO refactor connects
public void connect(String upStreamComponentName,
String downStreamComponentName,
ChannelType channelType) {
......
package eu.stratosphere.streaming;
package eu.stratosphere.streaming.api;
import eu.stratosphere.nephele.io.RecordReader;
import eu.stratosphere.nephele.template.AbstractOutputTask;
import eu.stratosphere.streaming.api.invokable.UserSinkInvokable;
import eu.stratosphere.streaming.test.TestSinkInvokable;
import eu.stratosphere.types.Record;
public class StreamSink extends AbstractOutputTask{
......
package eu.stratosphere.streaming;
package eu.stratosphere.streaming.api;
import eu.stratosphere.nephele.io.ChannelSelector;
import eu.stratosphere.nephele.io.RecordWriter;
import eu.stratosphere.nephele.template.AbstractInputTask;
import eu.stratosphere.streaming.api.invokable.UserSourceInvokable;
import eu.stratosphere.streaming.partitioner.DefaultPartitioner;
import eu.stratosphere.streaming.test.RandIS;
import eu.stratosphere.streaming.test.TestSourceInvokable;
import eu.stratosphere.types.Record;
public class StreamSource extends AbstractInputTask<RandIS> {
......
package eu.stratosphere.streaming;
package eu.stratosphere.streaming.api;
import java.util.LinkedList;
import java.util.List;
......@@ -7,7 +7,9 @@ import eu.stratosphere.nephele.io.ChannelSelector;
import eu.stratosphere.nephele.io.RecordReader;
import eu.stratosphere.nephele.io.RecordWriter;
import eu.stratosphere.nephele.template.AbstractTask;
import eu.stratosphere.streaming.api.invokable.UserTaskInvokable;
import eu.stratosphere.streaming.partitioner.DefaultPartitioner;
import eu.stratosphere.streaming.test.TestTaskInvokable;
import eu.stratosphere.types.Record;
public class StreamTask extends AbstractTask {
......
package eu.stratosphere.streaming;
package eu.stratosphere.streaming.api.invokable;
import eu.stratosphere.nephele.io.RecordWriter;
import eu.stratosphere.types.Record;
......
package eu.stratosphere.streaming;
package eu.stratosphere.streaming.api.invokable;
import eu.stratosphere.nephele.io.RecordWriter;
import eu.stratosphere.types.Record;
......
package eu.stratosphere.streaming;
package eu.stratosphere.streaming.api.invokable;
import eu.stratosphere.nephele.io.RecordReader;
import eu.stratosphere.types.Record;
......
package eu.stratosphere.streaming;
package eu.stratosphere.streaming.api.invokable;
import eu.stratosphere.nephele.io.RecordWriter;
import eu.stratosphere.types.Record;
......
package eu.stratosphere.streaming;
package eu.stratosphere.streaming.api.invokable;
import eu.stratosphere.nephele.io.RecordWriter;
import eu.stratosphere.types.Record;
......
package eu.stratosphere.streaming;
package eu.stratosphere.streaming.test;
import eu.stratosphere.nephele.io.channels.ChannelType;
import eu.stratosphere.nephele.jobgraph.JobGraph;
import eu.stratosphere.streaming.JobGraphBuilder.Partitioning;
import eu.stratosphere.streaming.api.JobGraphBuilder;
import eu.stratosphere.streaming.api.JobGraphBuilder.Partitioning;
import eu.stratosphere.test.util.TestBase2;
public class MyStream extends TestBase2 {
......@@ -15,10 +16,10 @@ public class MyStream extends TestBase2 {
graphBuilder.setTask("cellTask", TestTaskInvokable.class, Partitioning.BROADCAST, 2);
graphBuilder.setSink("sink", TestSinkInvokable.class);
graphBuilder.connect("infoSource", "cellTask",Partitioning.BROADCAST, ChannelType.INMEMORY);
graphBuilder.connect("querySource", "cellTask",Partitioning.BROADCAST, ChannelType.INMEMORY);
graphBuilder.connect("cellTask", "sink",Partitioning.BROADCAST, ChannelType.INMEMORY);
graphBuilder.connect("infoSource", "cellTask", Partitioning.BROADCAST, ChannelType.INMEMORY);
graphBuilder.connect("querySource", "cellTask", Partitioning.BROADCAST, ChannelType.INMEMORY);
graphBuilder.connect("cellTask", "sink", Partitioning.BROADCAST, ChannelType.INMEMORY);
return graphBuilder.getJobGraph();
}
......
package eu.stratosphere.streaming;
package eu.stratosphere.streaming.test;
import eu.stratosphere.nephele.io.RecordWriter;
import eu.stratosphere.streaming.api.invokable.UserSourceInvokable;
import eu.stratosphere.types.IntValue;
import eu.stratosphere.types.LongValue;
import eu.stratosphere.types.Record;
......
package eu.stratosphere.streaming;
package eu.stratosphere.streaming.test;
import java.io.DataInput;
import java.io.DataOutput;
......
package eu.stratosphere.streaming;
package eu.stratosphere.streaming.test;
import eu.stratosphere.nephele.io.RecordReader;
import eu.stratosphere.streaming.api.invokable.UserSinkInvokable;
import eu.stratosphere.types.Record;
import eu.stratosphere.types.StringValue;
......
package eu.stratosphere.streaming;
package eu.stratosphere.streaming.test;
import eu.stratosphere.nephele.io.RecordWriter;
import eu.stratosphere.streaming.api.invokable.UserSourceInvokable;
import eu.stratosphere.types.IntValue;
import eu.stratosphere.types.LongValue;
import eu.stratosphere.types.Record;
......
package eu.stratosphere.streaming;
package eu.stratosphere.streaming.test;
import eu.stratosphere.nephele.io.RecordWriter;
import eu.stratosphere.streaming.api.invokable.UserTaskInvokable;
import eu.stratosphere.streaming.cellinfo.WorkerEngineExact;
import eu.stratosphere.types.IntValue;
import eu.stratosphere.types.LongValue;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册