public class RandomFeaturesForClusteringSpout extends Object implements storm.trident.spout.IBatchSpout
| Constructor and Description |
|---|
RandomFeaturesForClusteringSpout() |
RandomFeaturesForClusteringSpout(boolean withLabel) |
RandomFeaturesForClusteringSpout(boolean withLabel,
int featureSize) |
RandomFeaturesForClusteringSpout(boolean withLabel,
int featureSize,
int nbClasses) |
| 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() |
boolean |
isWithLabel() |
void |
open(Map conf,
backtype.storm.task.TopologyContext context) |
void |
setFeatureSize(int featureSize) |
void |
setMaxBatchSize(int maxBatchSize) |
void |
setWithLabel(boolean withLabel) |
public RandomFeaturesForClusteringSpout()
public RandomFeaturesForClusteringSpout(boolean withLabel)
public RandomFeaturesForClusteringSpout(boolean withLabel,
int featureSize)
public RandomFeaturesForClusteringSpout(boolean withLabel,
int featureSize,
int nbClasses)
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 boolean isWithLabel()
public void setWithLabel(boolean withLabel)
Copyright © 2013. All rights reserved.