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


Java OutputFieldsDeclarer類代碼示例

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


OutputFieldsDeclarer類屬於backtype.storm.topology包,在下文中一共展示了OutputFieldsDeclarer類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的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 declarer) {
    LOG.info("START declareOutputFields");
    if (terminalBolt || EmptyUtils.nullOrEmpty(outputFieldNames)) {
        LOG.info("This is TERMINAL BOLT");
        terminalBolt = true;
        return;
    }

    declarer.declare(new Fields(outputFieldNames));
}
 
開發者ID:qiozas,項目名稱:sourcevirtues-samples,代碼行數:12,代碼來源:MorphlinesBolt.java

示例3: 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

示例4: declareOutputFields

import backtype.storm.topology.OutputFieldsDeclarer; //導入依賴的package包/類
@Override
public void declareOutputFields(OutputFieldsDeclarer declarer) {
    if (spout != null) {
        spout.declareOutputFields(declarer);
    }
    else {
        declarer.declare(fields);
    }
}
 
開發者ID:xushjie1987,項目名稱:es-hadoop-v2.2.0,代碼行數:10,代碼來源:TestSpout.java

示例5: declareOutputFields

import backtype.storm.topology.OutputFieldsDeclarer; //導入依賴的package包/類
@Override
public void declareOutputFields(OutputFieldsDeclarer arg0) {
	arg0.declare(new Fields("title", 
			                "link",
			                "description",
			                "pubDate",
			                "thumbnail"));
}
 
開發者ID:bucaojit,項目名稱:RealEstate-Streaming,代碼行數:9,代碼來源:RouteBolt.java

示例6: 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

示例7: 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

示例8: 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

示例9: declareOutputFields

import backtype.storm.topology.OutputFieldsDeclarer; //導入依賴的package包/類
@Override
public void declareOutputFields(OutputFieldsDeclarer declarer) {
    declarer.declare(_spoutConfig.scheme.getOutputFields());
}
 
開發者ID:redBorder,項目名稱:rb-bi,代碼行數:5,代碼來源:KafkaSpout.java

示例10: declareOutputFields

import backtype.storm.topology.OutputFieldsDeclarer; //導入依賴的package包/類
@Override
public void declareOutputFields(OutputFieldsDeclarer arg0) {
  arg0.declare(new Fields("trade"));
}
 
開發者ID:techysoul,項目名稱:java,代碼行數:5,代碼來源:DeliveryCheckEvenBolt.java

示例11: declareOutputFields

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

示例12: declareOutputFields

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

示例13: declareOutputFields

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

示例14: 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

示例15: declareOutputFields

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


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