本文整理匯總了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")));
}