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


Java OutputFieldsDeclarer.declare方法代碼示例

本文整理匯總了Java中backtype.storm.topology.OutputFieldsDeclarer.declare方法的典型用法代碼示例。如果您正苦於以下問題:Java OutputFieldsDeclarer.declare方法的具體用法?Java OutputFieldsDeclarer.declare怎麽用?Java OutputFieldsDeclarer.declare使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在backtype.storm.topology.OutputFieldsDeclarer的用法示例。


在下文中一共展示了OutputFieldsDeclarer.declare方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: declareOutputFields

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

示例2: declareOutputFields

import backtype.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
public void declareOutputFields(OutputFieldsDeclarer declarer) {
	// emit the field site.
	declarer.declare(new Fields("firstName","lastName","companyName"));
}
 
開發者ID:PacktPublishing,項目名稱:Mastering-Apache-Storm,代碼行數:5,代碼來源:SampleSpout.java

示例3: declareOutputFields

import backtype.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
@Override
public void declareOutputFields(OutputFieldsDeclarer declarer) {
    declarer.declare(new Fields("name"));
}
 
開發者ID:splicemachine,項目名稱:splice-community-sample-code,代碼行數:5,代碼來源:MySqlSpout.java

示例4: declareOutputFields

import backtype.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
public void declareOutputFields(OutputFieldsDeclarer declarer) {
	declarer.declare(new Fields("type"));
}
 
開發者ID:cutoutsy,項目名稱:miner,代碼行數:4,代碼來源:ParseLoopBolt.java

示例5: declareOutputFields

import backtype.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
@Override
public void declareOutputFields(OutputFieldsDeclarer declarer) {
    declarer.declare(new Fields(fieldName));
}
 
開發者ID:qiozas,項目名稱:sourcevirtues-samples,代碼行數:5,代碼來源:RandomSentenceTestSpout.java

示例6: declareOutputFields

import backtype.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
@Override
public void declareOutputFields(OutputFieldsDeclarer declarer) {
  declarer.declare(new Fields("sentence"));
}
 
開發者ID:mbad0la,項目名稱:Get-ENVS,代碼行數:5,代碼來源:RandomSentenceSpout.java

示例7: declareOutputFields

import backtype.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
public void declareOutputFields(OutputFieldsDeclarer declarer) {
    declarer.declare(new Fields("tweet_id", "tweet_text"));
}
 
開發者ID:mayconbordin,項目名稱:erad2016-streamprocessing,代碼行數:4,代碼來源:StemmingBolt.java

示例8: declareOutputFields

import backtype.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
@Override
public void declareOutputFields(OutputFieldsDeclarer declarer) {
    declarer.declare(new Fields("keyfield", "payload"));
}
 
開發者ID:uzh,項目名稱:storm-scheduler,代碼行數:5,代碼來源:UuidPayloadSpout.java

示例9: declareOutputFields

import backtype.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
public void declareOutputFields(OutputFieldsDeclarer declarer) {
    declarer.declare(new Fields("word", "count"));
}
 
開發者ID:mengzhiyi,項目名稱:storm-hbase-1.0.x,代碼行數:4,代碼來源:WordCounter.java

示例10: declareOutputFields

import backtype.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
public void declareOutputFields(OutputFieldsDeclarer declarer) {
    declarer.declare(new Fields("g_globalinfo","g_url"));
}
 
開發者ID:cutoutsy,項目名稱:miner,代碼行數:4,代碼來源:GenerateUrlBolt.java

示例11: declareOutputFields

import backtype.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
public void declareOutputFields(OutputFieldsDeclarer declarer) {
    declarer.declare(new Fields("tweet_id", "pos_score", "tweet_text"));
}
 
開發者ID:mayconbordin,項目名稱:erad2016-streamprocessing,代碼行數:4,代碼來源:PositiveSentimentBolt.java

示例12: declareOutputFields

import backtype.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
public void declareOutputFields(OutputFieldsDeclarer declarer) {
    declarer.declare(new Fields("total"));
}
 
開發者ID:mengzhiyi,項目名稱:storm-hbase-1.0.x,代碼行數:4,代碼來源:TotalWordCounter.java

示例13: declareOutputFields

import backtype.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
public void declareOutputFields(OutputFieldsDeclarer declarer) {
    declarer.declare(new Fields("global_info","download_url"));
}
 
開發者ID:cutoutsy,項目名稱:miner,代碼行數:4,代碼來源:RandomSpout.java

示例14: declareOutputFields

import backtype.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
@Override
public void declareOutputFields(OutputFieldsDeclarer outputFieldsDeclarer) {
    outputFieldsDeclarer.declare(new Fields("trafficLog"));

}
 
開發者ID:srecon,項目名稱:ignite-book-code-samples,代碼行數:6,代碼來源:FileSourceSpout.java

示例15: declareOutputFields

import backtype.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
public void declareOutputFields(OutputFieldsDeclarer declarer) {
	declarer.declare(new Fields("globalInfo","message"));
}
 
開發者ID:cutoutsy,項目名稱:miner,代碼行數:4,代碼來源:BeginSpout.java


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