本文整理匯總了Java中org.apache.storm.topology.OutputFieldsDeclarer.declareStream方法的典型用法代碼示例。如果您正苦於以下問題:Java OutputFieldsDeclarer.declareStream方法的具體用法?Java OutputFieldsDeclarer.declareStream怎麽用?Java OutputFieldsDeclarer.declareStream使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.apache.storm.topology.OutputFieldsDeclarer
的用法示例。
在下文中一共展示了OutputFieldsDeclarer.declareStream方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: declareOutputFields
import org.apache.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
@Override
public void declareOutputFields(OutputFieldsDeclarer outputFieldsDeclarer) {
// outputFieldsDeclarer.declareStream(SimulatorTopology.SIMULATOR_COMMAND_STREAM,
// new Fields("dpid", "data"));
outputFieldsDeclarer.declareStream(SimulatorTopology.SIMULATOR_COMMAND_STREAM,
new Fields("dpid", "data", "command"));
}
示例2: declareOutputFields
import org.apache.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
/**
* {@inheritDoc}
*/
@Override
public void declareOutputFields(OutputFieldsDeclarer outputFieldsDeclarer) {
outputFieldsDeclarer.declareStream(StreamType.CREATE.toString(), FlowTopology.fieldsMessageSwitchIdFlowIdTransactionId);
outputFieldsDeclarer.declareStream(StreamType.DELETE.toString(), FlowTopology.fieldsMessageSwitchIdFlowIdTransactionId);
outputFieldsDeclarer.declareStream(StreamType.RESPONSE.toString(), FlowTopology.fieldMessage);
outputFieldsDeclarer.declareStream(StreamType.STATUS.toString(), FlowTopology.fieldsMessageFlowId);
}
示例3: declareOutputFields
import org.apache.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
/**
* {@inheritDoc}
*/
@Override
public void declareOutputFields(OutputFieldsDeclarer outputFieldsDeclarer) {
outputFieldsDeclarer.declareStream(StreamType.CREATE.toString(), FlowTopology.fieldsMessageFlowId);
outputFieldsDeclarer.declareStream(StreamType.READ.toString(), FlowTopology.fieldsMessageFlowId);
outputFieldsDeclarer.declareStream(StreamType.UPDATE.toString(), FlowTopology.fieldsMessageFlowId);
outputFieldsDeclarer.declareStream(StreamType.DELETE.toString(), FlowTopology.fieldsMessageFlowId);
outputFieldsDeclarer.declareStream(StreamType.PATH.toString(), FlowTopology.fieldsMessageFlowId);
outputFieldsDeclarer.declareStream(StreamType.STATUS.toString(), FlowTopology.fieldsMessageFlowId);
outputFieldsDeclarer.declareStream(StreamType.RESTORE.toString(), FlowTopology.fieldsMessageFlowId);
outputFieldsDeclarer.declareStream(StreamType.REROUTE.toString(), FlowTopology.fieldsMessageFlowId);
outputFieldsDeclarer.declareStream(StreamType.ERROR.toString(), FlowTopology.fieldsMessageErrorType);
}
示例4: declareOutputFields
import org.apache.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
/**
* {@inheritDoc}
*/
@Override
public void declareOutputFields(OutputFieldsDeclarer outputFieldsDeclarer) {
outputFieldsDeclarer.declareStream(StreamType.CREATE.toString(), FlowTopology.fieldsMessageSwitchIdFlowIdTransactionId);
outputFieldsDeclarer.declareStream(StreamType.DELETE.toString(), FlowTopology.fieldsMessageSwitchIdFlowIdTransactionId);
outputFieldsDeclarer.declareStream(StreamType.STATUS.toString(), FlowTopology.fieldsFlowIdStatus);
}
示例5: declareOutputFields
import org.apache.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
@Override
public void declareOutputFields(OutputFieldsDeclarer declarer) {
RecordTranslator<K, V> translator = kafkaSpoutConfig.getTranslator();
for (String stream : translator.streams()) {
declarer.declareStream(stream, translator.getFieldsFor(stream));
}
}
示例6: declareOutputFields
import org.apache.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
/**
* {@inheritDoc}
*/
@Override
public void declareOutputFields(OutputFieldsDeclarer outputFieldsDeclarer) {
outputFieldsDeclarer.declareStream(PORT_STATS_STREAM, fieldMessage);
outputFieldsDeclarer.declareStream(METER_CFG_STATS_STREAM, fieldMessage);
outputFieldsDeclarer.declareStream(FLOW_STATS_STREAM, fieldMessage);
}
示例7: declareOutputFields
import org.apache.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
@Override
public void declareOutputFields(OutputFieldsDeclarer declarer) {
Map<String, Fields> streamsOutputFields = rabbitMqMessageScheme.getStreamsOutputFields();
for (Entry<String, Fields> entry : streamsOutputFields.entrySet()) {
declarer.declareStream(entry.getKey(), entry.getValue());
}
}
示例8: declareOutputFields
import org.apache.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
@Override
public void declareOutputFields(OutputFieldsDeclarer declarer) {
declarer.declareStream(islDiscoveryTopic, new Fields("key", "message"));
declarer.declareStream(topoEngTopic, new Fields("key", "message"));
// FIXME(dbogun): use proper tuple format
declarer.declareStream(STREAM_ID_CTRL, AbstractTopology.fieldMessage);
}
示例9: declareOutputFields
import org.apache.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
@Override
public void declareOutputFields(OutputFieldsDeclarer declarer) {
// Declare Stream with streamId as parsedstream with fields parsedstream
declarer.declareStream("parsedstream", new Fields("parsedstream"));
}
示例10: declareOutputFields
import org.apache.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
@Override
public void declareOutputFields(OutputFieldsDeclarer declarer) {
declarer.declareStream("alertInfo", new Fields("alertInfo"));
}
開發者ID:PacktPublishing,項目名稱:Practical-Real-time-Processing-and-Analytics,代碼行數:5,代碼來源:CheckDistanceAndAlertBolt.java
示例11: declareOutputFields
import org.apache.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
@Override
public void declareOutputFields(OutputFieldsDeclarer declarer) {
declarer.declareStream("usagestream", new Fields("usagestream"));
declarer.declareStream("tdrstream", new Fields("tdrstream"));
}
開發者ID:PacktPublishing,項目名稱:Practical-Real-time-Processing-and-Analytics,代碼行數:6,代碼來源:ParseAndUsageBolt.java
示例12: declareOutputFields
import org.apache.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
@Override
public void declareOutputFields(OutputFieldsDeclarer declarer) {
declarer.declare(new Fields("url", "content", "metadata", "text"));
declarer.declareStream("tika", new Fields("url", "content", "metadata",
"text"));
}
示例13: declareOutputFields
import org.apache.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
@Override
public void declareOutputFields(OutputFieldsDeclarer declarer) {
declarer.declare(new Fields("url", "content", "metadata", "text"));
declarer.declareStream(StatusStreamName, new Fields("url", "metadata",
"status"));
}
示例14: declareOutputFields
import org.apache.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
public void declareOutputFields(OutputFieldsDeclarer declarer) {
declarer.declareStream(Constraints.coinFileds, new Fields(Constraints.wordFileds));
declarer.declareStream(Constraints.hotFileds, new Fields(Constraints.wordFileds));
declarer.declareStream(Constraints.nohotFileds, new Fields(Constraints.wordFileds));
}
示例15: declareOutputFields
import org.apache.storm.topology.OutputFieldsDeclarer; //導入方法依賴的package包/類
@Override
public void declareOutputFields(OutputFieldsDeclarer declarer) {
declarer.declare(new Fields("url", "metadata"));
declarer.declareStream(StatusStreamName, new Fields("url", "metadata", "status"));
}