Java Code Examples for org.apache.storm.topology.OutputFieldsDeclarer#declare()
The following examples show how to use
org.apache.storm.topology.OutputFieldsDeclarer#declare() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DbusAppenderBolt.java From DBus with Apache License 2.0 | 4 votes |
@Override public void declareOutputFields(OutputFieldsDeclarer declarer) { declarer.declare(new Fields(EmitFields.GROUP_FIELD, EmitFields.DATA, EmitFields.COMMAND, EmitFields.EMIT_TYPE)); }
Example 2
Source File: ClusterSumStormExecutorsTopology.java From 163-bigdate-note with GNU General Public License v3.0 | 4 votes |
/** * 声明输出字段 * @param declarer */ @Override public void declareOutputFields(OutputFieldsDeclarer declarer) { declarer.declare(new Fields("num")); }
Example 3
Source File: IntervalWindowTopology.java From twister2 with Apache License 2.0 | 4 votes |
@Override public void declareOutputFields(OutputFieldsDeclarer declarer) { declarer.declare(new Fields("word")); }
Example 4
Source File: AdvertisingTopologyHighKeyCard.java From yahoo-streaming-benchmark with Apache License 2.0 | 4 votes |
@Override public void declareOutputFields(OutputFieldsDeclarer declarer) { declarer.declare(new Fields("user_id", "page_id", "campaign_id", "ad_type", "event_type", "event_time", "ip_address")); }
Example 5
Source File: LocalWordCountRedisStormTopology.java From 163-bigdate-note with GNU General Public License v3.0 | 4 votes |
@Override public void declareOutputFields(OutputFieldsDeclarer declarer) { declarer.declare(new Fields("word")); }
Example 6
Source File: LocalWordCountRedisStormTopology.java From 163-bigdate-note with GNU General Public License v3.0 | 4 votes |
@Override public void declareOutputFields(OutputFieldsDeclarer declarer) { declarer.declare(new Fields("line")); }
Example 7
Source File: WordCountTopology.java From storm-net-adapter with Apache License 2.0 | 4 votes |
@Override public void declareOutputFields(OutputFieldsDeclarer declarer) { declarer.declare(new Fields("word", "count")); }
Example 8
Source File: PagedBatchDataFetchingBolt.java From DBus with Apache License 2.0 | 4 votes |
@Override public void declareOutputFields(OutputFieldsDeclarer declarer) { declarer.declare(new Fields("progressInfo")); declarer.declareStream(FullPullConstants.CTRL_STREAM, new Fields("progressInfo")); }
Example 9
Source File: Db2DispatcherBout.java From DBus with Apache License 2.0 | 4 votes |
@Override public void declareOutputFields(OutputFieldsDeclarer declarer) { declarer.declare(new Fields("subPackage")); }
Example 10
Source File: ResourceAwareExampleTopology.java From storm-net-adapter with Apache License 2.0 | 4 votes |
@Override public void declareOutputFields(OutputFieldsDeclarer declarer) { declarer.declare(new Fields("word")); }
Example 11
Source File: FraudDetectorBolt.java From Building-Data-Streaming-Applications-with-Apache-Kafka with MIT License | 4 votes |
@Override public void declareOutputFields(OutputFieldsDeclarer outputFieldsDeclarer) { outputFieldsDeclarer.declare(new Fields("fraudip")); }
Example 12
Source File: WordCountBolt.java From storm_spring_boot_demo with MIT License | 4 votes |
@Override public void declareOutputFields(OutputFieldsDeclarer declarer) { declarer.declare(new Fields("targetDate", "word", "count", "count_0"));//定义输出域为word和count和targetDate }
Example 13
Source File: AdvertisingTopologyHighKeyCard.java From yahoo-streaming-benchmark with Apache License 2.0 | 4 votes |
@Override public void declareOutputFields(OutputFieldsDeclarer declarer) { declarer.declare(new Fields("campaign_id", "event_time")); }
Example 14
Source File: TestBolt.java From java-study with Apache License 2.0 | 4 votes |
/** * 声明数据格式 */ @Override public void declareOutputFields(OutputFieldsDeclarer declarer) { declarer.declare(new Fields("count")); }
Example 15
Source File: CustomIRichSpout.java From bullet-storm with Apache License 2.0 | 4 votes |
@Override public void declareOutputFields(OutputFieldsDeclarer declarer) { declarer.declare(new Fields("record", "timestamp")); }
Example 16
Source File: ManualDRPC.java From storm-net-adapter with Apache License 2.0 | 4 votes |
@Override public void declareOutputFields(OutputFieldsDeclarer declarer) { declarer.declare(new Fields("result", "return-info")); }
Example 17
Source File: StormExample.java From pulsar with Apache License 2.0 | 4 votes |
@Override public void declareOutputFields(OutputFieldsDeclarer declarer) { // declare the output fields declarer.declare(new Fields("string")); }
Example 18
Source File: DSLBolt.java From bullet-storm with Apache License 2.0 | 4 votes |
@Override public void declareOutputFields(OutputFieldsDeclarer declarer) { declarer.declare(new Fields(TopologyConstants.RECORD_FIELD, TopologyConstants.RECORD_TIMESTAMP_FIELD)); }
Example 19
Source File: ProfileSplitterBolt.java From metron with Apache License 2.0 | 3 votes |
/** * Each emitted tuple contains the following fields. * <p> * <ol> * <li>message - The message containing JSON-formatted data that needs applied to a profile. * <li>timestamp - The timestamp of the message. * <li>entity - The name of the entity. The actual result of executing the Stellar expression. * <li>profile - The profile definition that the message needs applied to. * </ol> * <p> */ @Override public void declareOutputFields(OutputFieldsDeclarer declarer) { // the order here must match 'createValues' Fields fields = new Fields(MESSAGE_TUPLE_FIELD, TIMESTAMP_TUPLE_FIELD, ENTITY_TUPLE_FIELD, PROFILE_TUPLE_FIELD); declarer.declare(fields); }
Example 20
Source File: TestStormSpout.java From ignite with Apache License 2.0 | 2 votes |
/** * Declares the output field for the component. * * @param outputFieldsDeclarer Declarer to declare fields on. */ @Override public void declareOutputFields(OutputFieldsDeclarer outputFieldsDeclarer) { outputFieldsDeclarer.declare(new Fields(IGNITE_TUPLE_FIELD)); }