|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectariba.util.core.BatchSizer
public abstract class BatchSizer
Is a class that defines how a stream of objects should be batched.
Nested Class Summary | |
---|---|
static class |
BatchSizer.Fixed
Is a batch sizer that uses a simple fixed batch size. |
Constructor Summary | |
---|---|
BatchSizer()
|
Method Summary | |
---|---|
abstract boolean |
addToBatch(java.lang.Object object)
Returns true if, when object is considered
as the next object in the stream of objects, that after this
object a new batch should begin. |
abstract void |
reset()
Resets the internal state of this after a batch. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BatchSizer()
Method Detail |
---|
public abstract boolean addToBatch(java.lang.Object object)
true
if, when object
is considered
as the next object in the stream of objects, that after this
object a new batch should begin. Returns false
if
after object
is recognized a new batch should not begin.
If the addition of object
causes this method to return
true
, then this method should continue to return
true
until reset()
is called.
public abstract void reset()
this
after a batch.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |