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


Java OutputFieldsDeclarer.declare方法代碼示例

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


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

示例1: declareOutputFields

import org.apache.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
@Override
public void declareOutputFields(OutputFieldsDeclarer declarer) {
  declarer.declare(new Fields("obj", "count"));
}
 
開發者ID:Paleozoic,項目名稱:storm_spring_boot_demo,代碼行數:5,代碼來源:RollingCountAggBolt.java

示例2: declareOutputFields

import org.apache.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
@Override
public void declareOutputFields(OutputFieldsDeclarer declarer) {
    declarer.declare(FIELDS);
}
 
開發者ID:tokenmill,項目名稱:crawling-framework,代碼行數:5,代碼來源:UrlGeneratorSpout.java

示例3: declareOutputFields

import org.apache.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
@Override
public void declareOutputFields(OutputFieldsDeclarer declarer) {
    declarer.declare(new Fields(EmitFields.GROUP_FIELD, EmitFields.DATA, EmitFields.COMMAND, EmitFields.EMIT_TYPE));
}
 
開發者ID:BriData,項目名稱:DBus,代碼行數:5,代碼來源:WrapperBolt.java

示例4: declareOutputFields

import org.apache.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
public final void declareOutputFields(
		final OutputFieldsDeclarer outputFieldsDeclarer) {
	outputFieldsDeclarer.declare(new Fields("tweet","sentiment"));
}
 
開發者ID:PacktPublishing,項目名稱:Mastering-Apache-Storm,代碼行數:5,代碼來源:SentimentBolt.java

示例5: declareOutputFields

import org.apache.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
public void declareOutputFields(OutputFieldsDeclarer declarer) {
    declarer.declare(new Fields(Constraints.wordFileds,Constraints.typeFileds));
}
 
開發者ID:DStream-Storm,項目名稱:DStream,代碼行數:4,代碼來源:PredictorBolt.java

示例6: declareOutputFields

import org.apache.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
@Override
public void declareOutputFields(OutputFieldsDeclarer declarer) {
    super.declareOutputFields(declarer);
    declarer.declare(new Fields("url", "content", "metadata"));
}
 
開發者ID:eorliac,項目名稱:patent-crawler,代碼行數:6,代碼來源:FetcherBolt.java

示例7: declareOutputFields

import org.apache.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
@Override
public void declareOutputFields(OutputFieldsDeclarer declarer) {
  declarer.declare(new Fields("obj", "count", "actualWindowLengthInSeconds"));
}
 
開發者ID:Paleozoic,項目名稱:storm_spring_boot_demo,代碼行數:5,代碼來源:RollingCountBolt.java

示例8: declareOutputFields

import org.apache.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
public void declareOutputFields(OutputFieldsDeclarer ofDeclarer) {
    ofDeclarer.declare(new Fields("ip", "date", "request_url", "protocol_type", "status_code"));
}
 
開發者ID:PacktPublishing,項目名稱:Building-Data-Streaming-Applications-with-Apache-Kafka,代碼行數:4,代碼來源:IPFraudHiveBolt.java

示例9: declareOutputFields

import org.apache.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
public void declareOutputFields(OutputFieldsDeclarer declarer) {
    declarer.declare(new Fields("fraudIP"));
}
 
開發者ID:PacktPublishing,項目名稱:Building-Data-Streaming-Applications-with-Apache-Kafka,代碼行數:4,代碼來源:StringToWordsSpliterBolt.java

示例10: declareOutputFields

import org.apache.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
public void declareOutputFields(OutputFieldsDeclarer declarer) {
    declarer.declare(new Fields(Constraints.wordFileds,Constraints.coinCountFileds));
}
 
開發者ID:DStream-Storm,項目名稱:DStream,代碼行數:4,代碼來源:CoinBolt.java

示例11: declareOutputFields

import org.apache.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
@Override
public void declareOutputFields(OutputFieldsDeclarer declarer) {
    Fields fields = new Fields(this.descOfOutputFileds);
    declarer.declare(fields);
}
 
開發者ID:bigdataFlySQL,項目名稱:SQLonStorm,代碼行數:6,代碼來源:GroupByBolt.java

示例12: declareOutputFields

import org.apache.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
@Override
public void declareOutputFields(OutputFieldsDeclarer declarer) {
    declarer.declare(new Fields("sum"));
}
 
開發者ID:Paleozoic,項目名稱:storm_spring_boot_demo,代碼行數:5,代碼來源:SlidingWindowSumBolt.java

示例13: declareOutputFields

import org.apache.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
@Override
public void declareOutputFields(OutputFieldsDeclarer declarer) {
	declarer.declare(new Fields(FIELD_SWITCH_ID));	
}
 
開發者ID:telstra,項目名稱:open-kilda,代碼行數:5,代碼來源:CorrelationBolt.java

示例14: declareOutputFields

import org.apache.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
public void declareOutputFields(OutputFieldsDeclarer declarer) {
	declarer.declare(new Fields("ip", "dateTime", "request", "response",
			"bytesSent", "referrer", "useragent", "country", "browser",
			"os"));
}
 
開發者ID:PacktPublishing,項目名稱:Mastering-Apache-Storm,代碼行數:6,代碼來源:UserInformationGetterBolt.java

示例15: declareOutputFields

import org.apache.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
public void declareOutputFields(OutputFieldsDeclarer declarer) {
	// specify the name of output fields.
	declarer.declare(new Fields("ip", "dateTime", "request", "response",
			"bytesSent", "referrer", "useragent"));
}
 
開發者ID:PacktPublishing,項目名稱:Mastering-Apache-Storm,代碼行數:6,代碼來源:ApacheLogSplitterBolt.java


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