本文整理匯總了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"));
}