Package org.apache.storm.utils
Class BatchHelper
- java.lang.Object
-
- org.apache.storm.utils.BatchHelper
-
public class BatchHelper extends Object
-
-
Constructor Summary
Constructors Constructor Description BatchHelper(int batchSize, OutputCollector collector)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidack()voidaddBatch(Tuple tuple)voidfail(Exception e)intgetBatchSize()List<Tuple>getBatchTuples()booleanshouldFlush()booleanshouldHandle(Tuple tuple)
-
-
-
Constructor Detail
-
BatchHelper
public BatchHelper(int batchSize, OutputCollector collector)
-
-