本文整理匯總了Java中org.apache.storm.topology.OutputFieldsDeclarer.declare方法的典型用法代碼示例。如果您正苦於以下問題:Java OutputFieldsDeclarer.declare方法的具體用法?Java OutputFieldsDeclarer.declare怎麽用?Java OutputFieldsDeclarer.declare使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.apache.storm.topology.OutputFieldsDeclarer
的用法示例。
在下文中一共展示了OutputFieldsDeclarer.declare方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: declareOutputFields
import org.apache.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
@Override
public void declareOutputFields(OutputFieldsDeclarer declarer) {
declarer.declare(new Fields("obj", "count"));
}
示例2: declareOutputFields
import org.apache.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
@Override
public void declareOutputFields(OutputFieldsDeclarer declarer) {
declarer.declare(FIELDS);
}
示例3: declareOutputFields
import org.apache.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
@Override
public void declareOutputFields(OutputFieldsDeclarer declarer) {
declarer.declare(new Fields(EmitFields.GROUP_FIELD, EmitFields.DATA, EmitFields.COMMAND, EmitFields.EMIT_TYPE));
}
示例4: declareOutputFields
import org.apache.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
public final void declareOutputFields(
final OutputFieldsDeclarer outputFieldsDeclarer) {
outputFieldsDeclarer.declare(new Fields("tweet","sentiment"));
}
示例5: declareOutputFields
import org.apache.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
public void declareOutputFields(OutputFieldsDeclarer declarer) {
declarer.declare(new Fields(Constraints.wordFileds,Constraints.typeFileds));
}
示例6: declareOutputFields
import org.apache.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
@Override
public void declareOutputFields(OutputFieldsDeclarer declarer) {
super.declareOutputFields(declarer);
declarer.declare(new Fields("url", "content", "metadata"));
}
示例7: declareOutputFields
import org.apache.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
@Override
public void declareOutputFields(OutputFieldsDeclarer declarer) {
declarer.declare(new Fields("obj", "count", "actualWindowLengthInSeconds"));
}
示例8: declareOutputFields
import org.apache.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
public void declareOutputFields(OutputFieldsDeclarer ofDeclarer) {
ofDeclarer.declare(new Fields("ip", "date", "request_url", "protocol_type", "status_code"));
}
開發者ID:PacktPublishing,項目名稱:Building-Data-Streaming-Applications-with-Apache-Kafka,代碼行數:4,代碼來源:IPFraudHiveBolt.java
示例9: declareOutputFields
import org.apache.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
public void declareOutputFields(OutputFieldsDeclarer declarer) {
declarer.declare(new Fields("fraudIP"));
}
開發者ID:PacktPublishing,項目名稱:Building-Data-Streaming-Applications-with-Apache-Kafka,代碼行數:4,代碼來源:StringToWordsSpliterBolt.java
示例10: declareOutputFields
import org.apache.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
public void declareOutputFields(OutputFieldsDeclarer declarer) {
declarer.declare(new Fields(Constraints.wordFileds,Constraints.coinCountFileds));
}
示例11: declareOutputFields
import org.apache.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
@Override
public void declareOutputFields(OutputFieldsDeclarer declarer) {
Fields fields = new Fields(this.descOfOutputFileds);
declarer.declare(fields);
}
示例12: declareOutputFields
import org.apache.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
@Override
public void declareOutputFields(OutputFieldsDeclarer declarer) {
declarer.declare(new Fields("sum"));
}
示例13: declareOutputFields
import org.apache.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
@Override
public void declareOutputFields(OutputFieldsDeclarer declarer) {
declarer.declare(new Fields(FIELD_SWITCH_ID));
}
示例14: declareOutputFields
import org.apache.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
public void declareOutputFields(OutputFieldsDeclarer declarer) {
declarer.declare(new Fields("ip", "dateTime", "request", "response",
"bytesSent", "referrer", "useragent", "country", "browser",
"os"));
}
示例15: declareOutputFields
import org.apache.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
public void declareOutputFields(OutputFieldsDeclarer declarer) {
// specify the name of output fields.
declarer.declare(new Fields("ip", "dateTime", "request", "response",
"bytesSent", "referrer", "useragent"));
}