public class RandomFeaturesSpout extends Object implements storm.trident.spout.IBatchSpout
| Constructor and Description |
|---|
RandomFeaturesSpout() |
RandomFeaturesSpout(boolean withLabel) |
RandomFeaturesSpout(boolean withLabel,
int featureSize,
double variance) |
RandomFeaturesSpout(int featureSize,
double variance) |
| Modifier and Type | Method and Description |
|---|---|
void |
ack(long batchId) |
void |
close() |
void |
emitBatch(long batchId,
storm.trident.operation.TridentCollector collector) |
Map |
getComponentConfiguration() |
int |
getFeatureSize() |
int |
getMaxBatchSize() |
backtype.storm.tuple.Fields |
getOutputFields() |
Random |
getRandom() |
double |
getVariance() |
boolean |
isWithLabel() |
void |
open(Map conf,
backtype.storm.task.TopologyContext context) |
void |
setFeatureSize(int featureSize) |
void |
setMaxBatchSize(int maxBatchSize) |
void |
setRandom(Random random) |
void |
setVariance(double variance) |
void |
setWithLabel(boolean withLabel) |
public RandomFeaturesSpout()
public RandomFeaturesSpout(boolean withLabel)
public RandomFeaturesSpout(int featureSize,
double variance)
public RandomFeaturesSpout(boolean withLabel,
int featureSize,
double variance)
public void open(Map conf, backtype.storm.task.TopologyContext context)
open in interface storm.trident.spout.IBatchSpoutpublic void emitBatch(long batchId,
storm.trident.operation.TridentCollector collector)
emitBatch in interface storm.trident.spout.IBatchSpoutpublic void ack(long batchId)
ack in interface storm.trident.spout.IBatchSpoutpublic void close()
close in interface storm.trident.spout.IBatchSpoutpublic Map getComponentConfiguration()
getComponentConfiguration in interface storm.trident.spout.IBatchSpoutpublic backtype.storm.tuple.Fields getOutputFields()
getOutputFields in interface storm.trident.spout.IBatchSpoutpublic int getMaxBatchSize()
public void setMaxBatchSize(int maxBatchSize)
public int getFeatureSize()
public void setFeatureSize(int featureSize)
public double getVariance()
public void setVariance(double variance)
public boolean isWithLabel()
public void setWithLabel(boolean withLabel)
public Random getRandom()
public void setRandom(Random random)
Copyright © 2013. All Rights Reserved.