Java Code Examples for backtype.storm.topology.OutputFieldsDeclarer#declare()
The following examples show how to use
backtype.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: StormSpout.java From PoseidonX with Apache License 2.0 | 6 votes |
/** * {@inheritDoc} */ @Override public void declareOutputFields(OutputFieldsDeclarer declarer) { if (!StringUtils.isEmpty(input.getOutputStream())) { declarer.declareStream(input.getOutputStream(), new Fields(input.getOutputSchema().getAllAttributeNames())); } else { if (input.getOutputSchema() != null) { declarer.declare(new Fields(input.getOutputSchema().getAllAttributeNames())); } } }
Example 2
Source File: TalosStormSpout.java From galaxy-sdk-java with Apache License 2.0 | 4 votes |
@Override public void declareOutputFields(OutputFieldsDeclarer outputFieldsDeclarer) { outputFieldsDeclarer.declare(talosConfig.talosScheme.getOutputFields()); }
Example 3
Source File: ParseTicksBolt.java From hadoop-arch-book with Apache License 2.0 | 4 votes |
@Override public void declareOutputFields(OutputFieldsDeclarer declarer) { declarer.declare(new Fields("ticker", "price")); }
Example 4
Source File: WordCountTopology.java From flink-perf with Apache License 2.0 | 4 votes |
@Override public void declareOutputFields(OutputFieldsDeclarer declarer) { declarer.declare(new Fields("word")); }
Example 5
Source File: SentimentCalculatorBolt.java From StormTweetsSentimentD3Viz with Apache License 2.0 | 4 votes |
@Override public final void declareOutputFields(final OutputFieldsDeclarer outputFieldsDeclarer) { outputFieldsDeclarer.declare(new Fields("stateCode", "sentiment")); }
Example 6
Source File: SentenceSpout.java From storm-example with Apache License 2.0 | 4 votes |
public void declareOutputFields(OutputFieldsDeclarer declarer) { declarer.declare(new Fields("sentence")); }
Example 7
Source File: OozieAuditLogParserBolt.java From eagle with Apache License 2.0 | 4 votes |
@Override public void declareOutputFields(OutputFieldsDeclarer declarer) { declarer.declare(new Fields("f1")); }
Example 8
Source File: WordCountValueMapper.java From storm-hbase with Apache License 2.0 | 4 votes |
@Override public void declareOutputFields(OutputFieldsDeclarer declarer) { declarer.declare(new Fields("columnName","columnValue")); }
Example 9
Source File: ThroughputHostsTracking.java From flink-perf with Apache License 2.0 | 4 votes |
@Override public void declareOutputFields(OutputFieldsDeclarer declarer) { declarer.declare(FIELDS); }
Example 10
Source File: SplitSentenceBolt.java From storm-example with Apache License 2.0 | 4 votes |
public void declareOutputFields(OutputFieldsDeclarer declarer) { declarer.declare(new Fields("word")); }
Example 11
Source File: MultiStageAckingTopology.java From incubator-heron with Apache License 2.0 | 4 votes |
@Override public void declareOutputFields(OutputFieldsDeclarer declarer) { if (emit) { declarer.declare(new Fields("word")); } }
Example 12
Source File: FileReadSpout.java From storm-benchmark with Apache License 2.0 | 4 votes |
@Override public void declareOutputFields(OutputFieldsDeclarer declarer) { declarer.declare(new Fields(FIELDS)); }
Example 13
Source File: AuditLoginsCounterBolt.java From Kafka-Storm-ElasticSearch with Apache License 2.0 | 4 votes |
public void declareOutputFields(OutputFieldsDeclarer declarer) { declarer.declare(new Fields("id", "index", "type", "document")); }
Example 14
Source File: FilterBolt.java From storm-benchmark with Apache License 2.0 | 4 votes |
@Override public void declareOutputFields(OutputFieldsDeclarer declarer) { declarer.declare(new Fields(FIELDS)); }
Example 15
Source File: HdfsSensitivityDataEnrichBolt.java From eagle with Apache License 2.0 | 4 votes |
@Override public void declareOutputFields(OutputFieldsDeclarer declarer) { declarer.declare(new Fields("user", "message")); }
Example 16
Source File: WordCounter.java From flux with Apache License 2.0 | 4 votes |
public void declareOutputFields(OutputFieldsDeclarer declarer) { declarer.declare(new Fields("word", "count")); }
Example 17
Source File: SentenceSpout.java From storm-example with Apache License 2.0 | 4 votes |
public void declareOutputFields(OutputFieldsDeclarer declarer) { declarer.declare(new Fields("sentence")); }
Example 18
Source File: RandomSentenceSpout.java From ignite-book-code-samples with GNU General Public License v3.0 | 4 votes |
@Override public void declareOutputFields(OutputFieldsDeclarer declarer) { declarer.declare(new Fields("sentence")); }
Example 19
Source File: FileSourceSpout.java From ignite-book-code-samples with GNU General Public License v3.0 | 4 votes |
@Override public void declareOutputFields(OutputFieldsDeclarer outputFieldsDeclarer) { outputFieldsDeclarer.declare(new Fields("trafficLog")); }
Example 20
Source File: WordCount.java From storm-benchmark with Apache License 2.0 | 4 votes |
@Override public void declareOutputFields(OutputFieldsDeclarer declarer) { declarer.declare(new Fields(FIELDS_WORD, FIELDS_COUNT)); }