|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectariba.util.core.BatchMapProcessor
public abstract class BatchMapProcessor
Convenience class that abstracts the notion of processing a map of objects in batches.
Constructor Summary | |
---|---|
BatchMapProcessor()
|
Method Summary | |
---|---|
void |
process(java.util.Map map,
BatchSizer sizer)
Processes the supplied map which may be of any size. |
void |
process(java.util.Map map,
int batchSize)
Processes the supplied map which may be of any size. |
abstract void |
processBatch(java.util.Map map)
Processes the supplied map . |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BatchMapProcessor()
Method Detail |
---|
public abstract void processBatch(java.util.Map map) throws BatchProcessingException
map
.
BatchProcessingException
- if there is an exception procesing
collection
public final void process(java.util.Map map, BatchSizer sizer) throws BatchProcessingException
map
which may be of any size.
This implementation splits map
up into batches
and repeatedly calls processBatch(java.util.Map)
as necessary.
If map
is a SortedMap
, then this
method calls processBatch(java.util.Map)
with SortedMaps
.
Each of the calls to
process()
satisfies the following conditions: sizer
BatchProcessingException
- if there is an exception procesing
the batchespublic final void process(java.util.Map map, int batchSize) throws BatchProcessingException
map
which may be of any size.
This implementation splits map
up into batches
and repeatedly calls processBatch(java.util.Map)
as necessary.
If map
is a SortedMap
, then this
method calls processBatch(java.util.Map)
with SortedMaps
.
Each of the calls to
process()
satisfies the following conditions:
BatchProcessingException
- if there is an exception procesing
the batches
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |