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