Class URLPartitionerBolt
- java.lang.Object
-
- org.apache.storm.topology.base.BaseComponent
-
- org.apache.storm.topology.base.BaseRichBolt
-
- com.digitalpebble.stormcrawler.bolt.URLPartitionerBolt
-
- All Implemented Interfaces:
Serializable
,org.apache.storm.task.IBolt
,org.apache.storm.topology.IComponent
,org.apache.storm.topology.IRichBolt
public class URLPartitionerBolt extends org.apache.storm.topology.base.BaseRichBolt
Generates a partition key for a given URL based on the hostname, domain or IP address.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description URLPartitionerBolt()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
declareOutputFields(org.apache.storm.topology.OutputFieldsDeclarer declarer)
void
execute(org.apache.storm.tuple.Tuple tuple)
void
prepare(Map<String,Object> stormConf, org.apache.storm.task.TopologyContext context, org.apache.storm.task.OutputCollector collector)
-