public class RandomSpout
extends backtype.storm.topology.base.BaseRichSpout
Modifier and Type | Field and Description |
---|---|
static String |
EVEN_STREAM |
static String |
ODD_STREAM |
Constructor and Description |
---|
RandomSpout(boolean split,
long seed) |
Modifier and Type | Method and Description |
---|---|
void |
declareOutputFields(backtype.storm.topology.OutputFieldsDeclarer declarer) |
void |
nextTuple() |
void |
open(Map conf,
backtype.storm.task.TopologyContext context,
backtype.storm.spout.SpoutOutputCollector collector) |
ack, activate, close, deactivate, fail
public static final String EVEN_STREAM
public static final String ODD_STREAM
public void open(Map conf, backtype.storm.task.TopologyContext context, backtype.storm.spout.SpoutOutputCollector collector)
public void nextTuple()
public void declareOutputFields(backtype.storm.topology.OutputFieldsDeclarer declarer)
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.