public class ChunkingElementCollector extends Object implements IElementCollector
IElementCollector
that adds new objects in chunks.IDeferredWorkbenchAdapter
Constructor and Description |
---|
ChunkingElementCollector(IElementCollector target,
int chunkSize)
Creates a new forwarding chunking element collector.
|
Modifier and Type | Method and Description |
---|---|
void |
add(Object[] elements,
IProgressMonitor monitor) |
void |
add(Object element,
IProgressMonitor monitor)
Adds the element to the internal cache.
|
void |
done() |
public ChunkingElementCollector(IElementCollector target, int chunkSize)
target
- The element collector that the elements are finally added to.chunkSize
- The maximum number of objects per chunkpublic void add(Object element, IProgressMonitor monitor)
add
in interface IElementCollector
public void add(Object[] elements, IProgressMonitor monitor)
add
in interface IElementCollector
public void done()
done
in interface IElementCollector