public final class BoltTokenizerByName extends Object implements backtype.storm.topology.IRichBolt
<String>) and splits it into multiple pairs in the form of "(word,1)" (output tuple schema:
<String,Integer>).
Same as BoltTokenizer, but accesses input attribute by name (instead of index).
| Modifier and Type | Field and Description |
|---|---|
static String |
ATTRIBUTE_COUNT |
static int |
ATTRIBUTE_COUNT_INDEX |
static String |
ATTRIBUTE_WORD |
static int |
ATTRIBUTE_WORD_INDEX |
| Constructor and Description |
|---|
BoltTokenizerByName() |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup() |
void |
declareOutputFields(backtype.storm.topology.OutputFieldsDeclarer declarer) |
void |
execute(backtype.storm.tuple.Tuple input) |
Map<String,Object> |
getComponentConfiguration() |
void |
prepare(Map stormConf,
backtype.storm.task.TopologyContext context,
backtype.storm.task.OutputCollector collector) |
public static final String ATTRIBUTE_WORD
public static final String ATTRIBUTE_COUNT
public static final int ATTRIBUTE_WORD_INDEX
public static final int ATTRIBUTE_COUNT_INDEX
public void prepare(Map stormConf, backtype.storm.task.TopologyContext context, backtype.storm.task.OutputCollector collector)
prepare in interface backtype.storm.task.IBoltpublic void execute(backtype.storm.tuple.Tuple input)
execute in interface backtype.storm.task.IBoltpublic void cleanup()
cleanup in interface backtype.storm.task.IBoltpublic void declareOutputFields(backtype.storm.topology.OutputFieldsDeclarer declarer)
declareOutputFields in interface backtype.storm.topology.IComponentCopyright © 2014–2016 The Apache Software Foundation. All rights reserved.