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 void
ack()
void
addBatch(Tuple tuple)
void
fail(Exception e)
int
getBatchSize()
List<Tuple>
getBatchTuples()
boolean
shouldFlush()
boolean
shouldHandle(Tuple tuple)
-
-
-
Constructor Detail
-
BatchHelper
public BatchHelper(int batchSize, OutputCollector collector)
-
-