当前位置: 首页>>代码示例>>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;未经允许,请勿转载。