public class BatchHelper extends Object
Constructor and Description |
---|
BatchHelper(int batchSize,
OutputCollector collector) |
Modifier and Type | Method and Description |
---|---|
void |
ack() |
void |
addBatch(Tuple tuple) |
void |
fail(Exception e) |
int |
getBatchSize() |
List<Tuple> |
getBatchTuples() |
boolean |
shouldFlush() |
boolean |
shouldHandle(Tuple tuple) |
public BatchHelper(int batchSize, OutputCollector collector)
Copyright © 2019 The Apache Software Foundation. All rights reserved.