本文整理匯總了Java中backtype.storm.topology.OutputFieldsDeclarer.declare方法的典型用法代碼示例。如果您正苦於以下問題:Java OutputFieldsDeclarer.declare方法的具體用法?Java OutputFieldsDeclarer.declare怎麽用?Java OutputFieldsDeclarer.declare使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類backtype.storm.topology.OutputFieldsDeclarer
的用法示例。
在下文中一共展示了OutputFieldsDeclarer.declare方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: declareOutputFields
import backtype.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
@Override
public void declareOutputFields(OutputFieldsDeclarer declarer) {
Fields schema = new Fields("line");
declarer.declare(schema);
}
示例2: declareOutputFields
import backtype.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
public void declareOutputFields(OutputFieldsDeclarer declarer) {
// emit the field site.
declarer.declare(new Fields("firstName","lastName","companyName"));
}
示例3: declareOutputFields
import backtype.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
@Override
public void declareOutputFields(OutputFieldsDeclarer declarer) {
declarer.declare(new Fields("name"));
}
示例4: declareOutputFields
import backtype.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
public void declareOutputFields(OutputFieldsDeclarer declarer) {
declarer.declare(new Fields("type"));
}
示例5: declareOutputFields
import backtype.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
@Override
public void declareOutputFields(OutputFieldsDeclarer declarer) {
declarer.declare(new Fields(fieldName));
}
示例6: declareOutputFields
import backtype.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
@Override
public void declareOutputFields(OutputFieldsDeclarer declarer) {
declarer.declare(new Fields("sentence"));
}
示例7: declareOutputFields
import backtype.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
public void declareOutputFields(OutputFieldsDeclarer declarer) {
declarer.declare(new Fields("tweet_id", "tweet_text"));
}
示例8: declareOutputFields
import backtype.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
@Override
public void declareOutputFields(OutputFieldsDeclarer declarer) {
declarer.declare(new Fields("keyfield", "payload"));
}
示例9: declareOutputFields
import backtype.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
public void declareOutputFields(OutputFieldsDeclarer declarer) {
declarer.declare(new Fields("word", "count"));
}
示例10: declareOutputFields
import backtype.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
public void declareOutputFields(OutputFieldsDeclarer declarer) {
declarer.declare(new Fields("g_globalinfo","g_url"));
}
示例11: declareOutputFields
import backtype.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
public void declareOutputFields(OutputFieldsDeclarer declarer) {
declarer.declare(new Fields("tweet_id", "pos_score", "tweet_text"));
}
示例12: declareOutputFields
import backtype.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
public void declareOutputFields(OutputFieldsDeclarer declarer) {
declarer.declare(new Fields("total"));
}
示例13: declareOutputFields
import backtype.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
public void declareOutputFields(OutputFieldsDeclarer declarer) {
declarer.declare(new Fields("global_info","download_url"));
}
示例14: declareOutputFields
import backtype.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
@Override
public void declareOutputFields(OutputFieldsDeclarer outputFieldsDeclarer) {
outputFieldsDeclarer.declare(new Fields("trafficLog"));
}
示例15: declareOutputFields
import backtype.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
public void declareOutputFields(OutputFieldsDeclarer declarer) {
declarer.declare(new Fields("globalInfo","message"));
}