backtype.storm.topology.OutputFieldsDeclarer Java Examples
The following examples show how to use
backtype.storm.topology.OutputFieldsDeclarer.
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: FlowmixBuilder.java From flowmix with Apache License 2.0 | 6 votes |
public static void declareOutputStreams(OutputFieldsDeclarer declarer, Fields fields) { declarer.declareStream(PARTITION, fields); declarer.declareStream(FILTER, fields); declarer.declareStream(SELECT, fields); declarer.declareStream(AGGREGATE, fields); declarer.declareStream(SWITCH, fields); declarer.declareStream(SORT, fields); declarer.declareStream(JOIN, fields); declarer.declareStream(SPLIT, fields); declarer.declareStream(EACH, fields); declarer.declareStream(OUTPUT, fields); declarer.declareStream(BROADCAST_STREAM + PARTITION, fields); declarer.declareStream(BROADCAST_STREAM + FILTER, fields); declarer.declareStream(BROADCAST_STREAM + SELECT, fields); declarer.declareStream(BROADCAST_STREAM + AGGREGATE, fields); declarer.declareStream(BROADCAST_STREAM + SWITCH, fields); declarer.declareStream(BROADCAST_STREAM + SORT, fields); declarer.declareStream(BROADCAST_STREAM + JOIN, fields); declarer.declareStream(BROADCAST_STREAM + EACH, fields); declarer.declareStream(BROADCAST_STREAM + SPLIT, fields); }
Example #2
Source File: JavaMapperStormExecutor.java From Eagle with Apache License 2.0 | 5 votes |
@Override public void declareOutputFields(OutputFieldsDeclarer declarer) { List<String> fields = new ArrayList<String>(); for(int i=0; i<numOutputFields; i++){ fields.add(OutputFieldNameConst.FIELD_PREFIX() + i); } declarer.declare(new Fields(fields)); }
Example #3
Source File: FileReadSpoutTest.java From storm-benchmark with Apache License 2.0 | 5 votes |
@BeforeMethod public void setUp() { declarer = mock(OutputFieldsDeclarer.class); collector = mock(SpoutOutputCollector.class); context = mock(TopologyContext.class); reader = mock(FileReader.class); when(reader.nextLine()).thenReturn(NEXT_LINE); }
Example #4
Source File: PcapParserBolt.java From opensoc-streaming with Apache License 2.0 | 5 votes |
public void declareOutputFields(OutputFieldsDeclarer declarer) { declarer.declareStream("message", new Fields("key", "message")); //declarer.declareStream("pcap_index_stream", new Fields("index_json", "pcap_id")); declarer.declareStream("pcap_header_stream", new Fields("header_json", "pcap_id")); declarer.declareStream("pcap_data_stream", new Fields("pcap_id", "timestamp", "pcap")); declarer.declareStream("error", new Fields("error")); }
Example #5
Source File: WordCountTest.java From storm-benchmark with Apache License 2.0 | 5 votes |
@Test public void countBoltShouldDeclareOutputFields() { WordCount.Count bolt = new WordCount.Count(); OutputFieldsDeclarer declarer = mock(OutputFieldsDeclarer.class); bolt.declareOutputFields(declarer); verify(declarer, times(1)).declare(any(Fields.class)); }
Example #6
Source File: TrafficParserBolt.java From eagle with Apache License 2.0 | 4 votes |
@Override public void declareOutputFields(OutputFieldsDeclarer declarer) { declarer.declare(new Fields("f1", "f2")); }
Example #7
Source File: MockStreamReceiver.java From eagle with Apache License 2.0 | 4 votes |
@Override public void declareOutputFields(OutputFieldsDeclarer declarer) { for (String streamId : outputStreamIds) { declarer.declareStream(streamId, new Fields(AlertConstants.FIELD_0)); } }
Example #8
Source File: HdfsAuditLogParserBolt.java From eagle with Apache License 2.0 | 4 votes |
@Override public void declareOutputFields(OutputFieldsDeclarer declarer) { declarer.declare(new Fields("f1")); }
Example #9
Source File: IPZoneDataEnrichBolt.java From eagle with Apache License 2.0 | 4 votes |
@Override public void declareOutputFields(OutputFieldsDeclarer declarer) { declarer.declare(new Fields("user", "message")); }
Example #10
Source File: AlertPublisherBolt.java From eagle with Apache License 2.0 | 4 votes |
@Override public void declareOutputFields(OutputFieldsDeclarer declarer) { declarer.declare(new Fields()); }
Example #11
Source File: TickSpout.java From flowmix with Apache License 2.0 | 4 votes |
@Override public void declareOutputFields(OutputFieldsDeclarer outputFieldsDeclarer) { outputFieldsDeclarer.declareStream("tick", new Fields()); }
Example #12
Source File: MetricStreamPersist.java From eagle with Apache License 2.0 | 4 votes |
@Override public void declareOutputFields(OutputFieldsDeclarer declarer) { declarer.declare(new Fields(METRIC_NAME_FIELD, METRIC_EVENT_FIELD)); }
Example #13
Source File: FluxShellBolt.java From flux with Apache License 2.0 | 4 votes |
@Override public void declareOutputFields(OutputFieldsDeclarer declarer) { declarer.declare(new Fields(this.outputFields)); }
Example #14
Source File: TestStormApplication.java From eagle with Apache License 2.0 | 4 votes |
@Override public void declareOutputFields(OutputFieldsDeclarer outputFieldsDeclarer) { outputFieldsDeclarer.declare(new Fields("metric","timestamp","fromStream","value")); }
Example #15
Source File: TestStormParallelism.java From eagle with Apache License 2.0 | 4 votes |
@Override public void declareOutputFields(OutputFieldsDeclarer declarer) { declarer.declare(new Fields("a")); }
Example #16
Source File: Latency.java From flink-perf with Apache License 2.0 | 4 votes |
@Override public void declareOutputFields(OutputFieldsDeclarer declarer) { }
Example #17
Source File: Throughput.java From flink-perf with Apache License 2.0 | 4 votes |
@Override public void declareOutputFields(OutputFieldsDeclarer outputFieldsDeclarer) { outputFieldsDeclarer.declare(FIELDS); }
Example #18
Source File: HiveSensitivityDataEnrichBolt.java From eagle with Apache License 2.0 | 4 votes |
@Override public void declareOutputFields(OutputFieldsDeclarer declarer) { declarer.declare(new Fields("user", "message")); }
Example #19
Source File: TestStormStreamIdRouting.java From eagle with Apache License 2.0 | 4 votes |
@Override public void declareOutputFields(OutputFieldsDeclarer declarer) { declarer.declare(new Fields("a")); }
Example #20
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 #21
Source File: HadoopLogAccumulatorBolt.java From eagle with Apache License 2.0 | 4 votes |
@Override public void declareOutputFields(OutputFieldsDeclarer declarer) { }
Example #22
Source File: SecurityLogParserBolt.java From eagle with Apache License 2.0 | 4 votes |
@Override public void declareOutputFields(OutputFieldsDeclarer outputFieldsDeclarer) { outputFieldsDeclarer.declare(new Fields(FieldNameBasedTupleToKafkaMapper.BOLT_KEY, FieldNameBasedTupleToKafkaMapper.BOLT_MESSAGE)); }
Example #23
Source File: Latency.java From flink-perf with Apache License 2.0 | 4 votes |
@Override public void declareOutputFields(OutputFieldsDeclarer outputFieldsDeclarer) { outputFieldsDeclarer.declare(new Fields("id", "host", "time", "payload")); }
Example #24
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 #25
Source File: TelemetryIndexingBolt.java From opensoc-streaming with Apache License 2.0 | 4 votes |
@Override public void declareOutputFields(OutputFieldsDeclarer declearer) { declearer.declareStream("error", new Fields("Index")); }
Example #26
Source File: WordSpout.java From storm-hbase with Apache License 2.0 | 4 votes |
public void declareOutputFields(OutputFieldsDeclarer declarer) { declarer.declare(new Fields("word")); }
Example #27
Source File: OozieResourceSensitivityDataJoinBolt.java From eagle with Apache License 2.0 | 4 votes |
@Override public void declareOutputFields(OutputFieldsDeclarer declarer) { declarer.declare(new Fields("user", "message")); }
Example #28
Source File: HBaseResourceSensitivityDataJoinBolt.java From eagle with Apache License 2.0 | 4 votes |
@Override public void declareOutputFields(OutputFieldsDeclarer declarer) { declarer.declare(new Fields("user", "message")); }
Example #29
Source File: HBaseAuditLogParserBolt.java From eagle with Apache License 2.0 | 4 votes |
@Override public void declareOutputFields(OutputFieldsDeclarer declarer) { declarer.declare(new Fields("f1")); }
Example #30
Source File: FlowInitializerBolt.java From flowmix with Apache License 2.0 | 4 votes |
@Override public void declareOutputFields(OutputFieldsDeclarer outputFieldsDeclarer) { FlowmixBuilder.declareOutputStreams(outputFieldsDeclarer, fields); }