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

  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)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### BatchHelper

    public BatchHelper(int batchSize, OutputCollector collector)

- ## Method Details

  - ### fail

    public void fail(Exception e)

  - ### ack

    public void ack()

  - ### shouldHandle

    public boolean shouldHandle(Tuple tuple)

  - ### addBatch

    public void addBatch(Tuple tuple)

  - ### getBatchTuples

    public List<Tuple> getBatchTuples()

  - ### getBatchSize

    public int getBatchSize()

  - ### shouldFlush

    public boolean shouldFlush()