本文整理汇总了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"));
}
示例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));
}
示例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"));
}
示例4: declareOutputFields
import backtype.storm.topology.OutputFieldsDeclarer; //导入依赖的package包/类
@Override
public void declareOutputFields(OutputFieldsDeclarer declarer) {
if (spout != null) {
spout.declareOutputFields(declarer);
}
else {
declarer.declare(fields);
}
}
示例5: declareOutputFields
import backtype.storm.topology.OutputFieldsDeclarer; //导入依赖的package包/类
@Override
public void declareOutputFields(OutputFieldsDeclarer arg0) {
arg0.declare(new Fields("title",
"link",
"description",
"pubDate",
"thumbnail"));
}
示例6: declareOutputFields
import backtype.storm.topology.OutputFieldsDeclarer; //导入依赖的package包/类
@Override
public void declareOutputFields(OutputFieldsDeclarer declarer) {
Fields schema = new Fields("line");
declarer.declare(schema);
}
示例7: declareOutputFields
import backtype.storm.topology.OutputFieldsDeclarer; //导入依赖的package包/类
@Override
public void declareOutputFields(OutputFieldsDeclarer declarer) {
declarer.declareStream("tdrstream", new Fields("tdrstream"));
}
示例8: declareOutputFields
import backtype.storm.topology.OutputFieldsDeclarer; //导入依赖的package包/类
public void declareOutputFields(OutputFieldsDeclarer declarer) {
// emit the field site.
declarer.declare(new Fields("firstName","lastName","companyName"));
}
示例9: declareOutputFields
import backtype.storm.topology.OutputFieldsDeclarer; //导入依赖的package包/类
@Override
public void declareOutputFields(OutputFieldsDeclarer declarer) {
declarer.declare(_spoutConfig.scheme.getOutputFields());
}
示例10: declareOutputFields
import backtype.storm.topology.OutputFieldsDeclarer; //导入依赖的package包/类
@Override
public void declareOutputFields(OutputFieldsDeclarer arg0) {
arg0.declare(new Fields("trade"));
}
示例11: declareOutputFields
import backtype.storm.topology.OutputFieldsDeclarer; //导入依赖的package包/类
@Override
public void declareOutputFields(OutputFieldsDeclarer declarer) {
declarer.declare(new Fields("keyfield", "payload"));
}
示例12: declareOutputFields
import backtype.storm.topology.OutputFieldsDeclarer; //导入依赖的package包/类
@Override
public void declareOutputFields(OutputFieldsDeclarer declarer) {
declarer.declare(new Fields("keyfield"));
}
示例13: declareOutputFields
import backtype.storm.topology.OutputFieldsDeclarer; //导入依赖的package包/类
@Override
public void declareOutputFields(OutputFieldsDeclarer declarer) {}
示例14: declareOutputFields
import backtype.storm.topology.OutputFieldsDeclarer; //导入依赖的package包/类
public void declareOutputFields(OutputFieldsDeclarer declarer) {
declarer.declare(new Fields("word", "count"));
}
示例15: declareOutputFields
import backtype.storm.topology.OutputFieldsDeclarer; //导入依赖的package包/类
public void declareOutputFields(OutputFieldsDeclarer declarer) {
declarer.declare(new Fields("columnName","columnValue"));
}