本文整理汇总了Java中backtype.storm.topology.OutputFieldsDeclarer.declareStream方法的典型用法代码示例。如果您正苦于以下问题:Java OutputFieldsDeclarer.declareStream方法的具体用法?Java OutputFieldsDeclarer.declareStream怎么用?Java OutputFieldsDeclarer.declareStream使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类backtype.storm.topology.OutputFieldsDeclarer
的用法示例。
在下文中一共展示了OutputFieldsDeclarer.declareStream方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: declareOutputFields
import backtype.storm.topology.OutputFieldsDeclarer; //导入方法依赖的package包/类
public void declareOutputFields(OutputFieldsDeclarer declarer) {
declarer.declareStream(ChannelTopology.TRANSFER_STREAM,
new Fields("channel","code","timestamp","num","ratio"));
declarer.declareStream(ChannelTopology.OPENTSDB_STREAM,
new Fields("channel","code","timestamp","num","ratio"));
declarer.declareStream(ChannelTopology.HBASE_STREAM,
new Fields("rowkey","column","columnvalue"));
}
示例2: declareOutputFields
import backtype.storm.topology.OutputFieldsDeclarer; //导入方法依赖的package包/类
@Override
public void declareOutputFields(OutputFieldsDeclarer arg0) {
arg0.declare(new Fields("trade"));
arg0.declareStream("oddstream", new Fields("trade"));
arg0.declareStream("evenstream", new Fields("trade"));
}
示例3: declareOutputFields
import backtype.storm.topology.OutputFieldsDeclarer; //导入方法依赖的package包/类
@Override
public void declareOutputFields(OutputFieldsDeclarer declarer) {
declarer.declareStream("tdrstream", new Fields("tdrstream"));
}
示例4: declareOutputFields
import backtype.storm.topology.OutputFieldsDeclarer; //导入方法依赖的package包/类
@Override
public void declareOutputFields(OutputFieldsDeclarer declarer) {
declarer.declareStream("yes", new Fields( "map"));
declarer.declareStream("no", new Fields("map"));
}
示例5: declareOutputFields
import backtype.storm.topology.OutputFieldsDeclarer; //导入方法依赖的package包/类
@Override
public void declareOutputFields(OutputFieldsDeclarer declarer) {
declarer.declareStream("yes", new Fields( "map"));
declarer.declareStream("no", new Fields( "map"));
}
示例6: declareOutputFields
import backtype.storm.topology.OutputFieldsDeclarer; //导入方法依赖的package包/类
@Override
public void declareOutputFields(OutputFieldsDeclarer declarer) {
declarer.declareStream("yes", new Fields("map"));
declarer.declareStream("no", new Fields("map"));
}
示例7: declareOutputFields
import backtype.storm.topology.OutputFieldsDeclarer; //导入方法依赖的package包/类
public void declareOutputFields(OutputFieldsDeclarer declarer) {
declarer.declareStream("generate-loop", new Fields("p_globalinfo", "p_data"));
declarer.declareStream("store", new Fields("p_globalinfo", "p_data"));
}
示例8: declareOutputFields
import backtype.storm.topology.OutputFieldsDeclarer; //导入方法依赖的package包/类
public void declareOutputFields(OutputFieldsDeclarer declarer){
// declarer.declare(new Fields("type", "word"));
declarer.declareStream("stream-number-saver", new Fields("type", "word"));
declarer.declareStream("stream-string-saver", new Fields("type", "word"));
declarer.declareStream("stream-sign-saver", new Fields("type", "word"));
}
示例9: declareOutputFields
import backtype.storm.topology.OutputFieldsDeclarer; //导入方法依赖的package包/类
public void declareOutputFields(OutputFieldsDeclarer declarer) {
// declarer.declare(new Fields("p_globaleinfo","p_resouce"));
declarer.declareStream("loop", new Fields("type", "word"));
declarer.declareStream("store", new Fields("type", "word"));
}
示例10: declareOutputFields
import backtype.storm.topology.OutputFieldsDeclarer; //导入方法依赖的package包/类
@Override
public void declareOutputFields(OutputFieldsDeclarer arg0) {
arg0.declare(new Fields(TRD_FIELDS));
arg0.declareStream(REPORT_STREAM, new Fields(TRD_FIELDS));
arg0.declareStream(EXCLUDE_STREAM, new Fields(TRD_FIELDS));
}
示例11: declareOutputFields
import backtype.storm.topology.OutputFieldsDeclarer; //导入方法依赖的package包/类
/**
* Declare the output schema for all the streams of this topology.
*
* @param declarer this is used to declare output stream ids, output fields, and whether or not each output stream is a direct stream
*/
@Override
public void declareOutputFields(OutputFieldsDeclarer declarer) {
declarer.declareStream(STREAM_ID, new Fields(ImmutableList.of("outlier")));
}