Class BatchHelper


  • public class BatchHelper
    extends Object
    • Constructor Detail

      • BatchHelper

        public BatchHelper​(int batchSize,
                           OutputCollector collector)
    • Method Detail

      • 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()