當前位置: 首頁>>代碼示例>>Java>>正文


Java OutputFieldsDeclarer.declareStream方法代碼示例

本文整理匯總了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"));
}
 
開發者ID:zhai3516,項目名稱:storm-demos,代碼行數:9,代碼來源:CalculateBolt.java

示例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"));

}
 
開發者ID:techysoul,項目名稱:java,代碼行數:8,代碼來源:DeliveryCheckBolt.java

示例3: declareOutputFields

import backtype.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
@Override
public void declareOutputFields(OutputFieldsDeclarer declarer) {
	declarer.declareStream("tdrstream", new Fields("tdrstream"));
}
 
開發者ID:PacktPublishing,項目名稱:Practical-Real-time-Processing-and-Analytics,代碼行數:5,代碼來源:ParserBolt.java

示例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"));
}
 
開發者ID:telefonicaid,項目名稱:fiware-sinfonier,代碼行數:6,代碼來源:Exists.java

示例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"));
}
 
開發者ID:telefonicaid,項目名稱:fiware-sinfonier,代碼行數:6,代碼來源:ConditionalFields.java

示例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"));
}
 
開發者ID:telefonicaid,項目名稱:fiware-sinfonier,代碼行數:6,代碼來源:Conditional.java

示例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"));
}
 
開發者ID:cutoutsy,項目名稱:miner,代碼行數:5,代碼來源:ParseBolt.java

示例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"));
    }
 
開發者ID:cutoutsy,項目名稱:miner,代碼行數:7,代碼來源:DistributeWordByTypeBolt.java

示例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"));
	}
 
開發者ID:cutoutsy,項目名稱:miner,代碼行數:6,代碼來源:ParseLoopBolt.java

示例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));
}
 
開發者ID:techysoul,項目名稱:java,代碼行數:7,代碼來源:TradeEligibilityBolt.java

示例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")));
}
 
開發者ID:cestella,項目名稱:streaming_outliers,代碼行數:10,代碼來源:OutlierBolt.java


注:本文中的backtype.storm.topology.OutputFieldsDeclarer.declareStream方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。