use of co.cask.cdap.api.data.stream.Stream in project cdap by caskdata.
the class NoMapperStreamSpaceApp method configure.
@Override
public void configure() {
addStream(new Stream("nomapper"));
createDataset("results", KeyValueTable.class);
addMapReduce(new NoMapperMapReduce());
}
use of co.cask.cdap.api.data.stream.Stream in project cdap by caskdata.
the class TestBatchStreamIntegrationApp method configure.
@Override
public void configure() {
setName("TestFlowStreamIntegrationApp");
addStream(new Stream("s_1"));
createDataset("results", KeyValueTable.class);
addFlow(new StreamTestFlow());
addMapReduce(new StreamTestBatch());
addMapReduce(new StreamTestBatchIdDecoder());
}
use of co.cask.cdap.api.data.stream.Stream in project cdap by caskdata.
the class AppWithMapReduceUsingStream method configure.
@Override
public void configure() {
setName("AppWithMapReduceUsingStream");
setDescription("Application with MapReduce job using stream as input");
addStream(new Stream("mrStream"));
createDataset("prices", KeyValueTable.class);
addMapReduce(new BodyTracker());
}
use of co.cask.cdap.api.data.stream.Stream in project cdap by caskdata.
the class WordCountApp method configure.
@Override
public void configure() {
setName("WordCountApp");
addStream(new Stream("text"));
addDatasetModule("my-kv", MyKeyValueTableDefinition.Module.class);
createDataset("mydataset", "myKeyValueTable", DatasetProperties.EMPTY);
createDataset("totals", "myKeyValueTable", DatasetProperties.EMPTY);
addFlow(new WordCountFlow());
addService(new BasicService("WordFrequency", new WordFrequencyHandler()));
addMapReduce(new CountTotal());
addMapReduce(new CountFromStream());
}
use of co.cask.cdap.api.data.stream.Stream in project cdap by caskdata.
the class DefaultDatasetConfigurer method addStream.
@Override
public void addStream(String streamName) {
checkArgument(streamName != null && !streamName.isEmpty(), "Stream Name cannot be null or empty");
addStream(new Stream(streamName));
}
Aggregations