Package noaa.coastwatch.util.chunk
Class ChunkCollector
java.lang.Object
noaa.coastwatch.util.chunk.ChunkCollector
- All Implemented Interfaces:
Iterable<ChunkProducer>
- Direct Known Subclasses:
CompositeMapApplicationCollector
The
ChunkCollector
class assembles chunks from a list of
producers and allows them to be accessed in one operation.- Since:
- 3.4.0
- Author:
- Peter Hollemans
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addProducer
(ChunkProducer producer) Adds a producer to the list of chunks to assemble.getChunks
(ChunkPosition pos) Assembles a set of chunks from the producers.iterator()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
producerList
The list of chunk producers.
-
-
Constructor Details
-
ChunkCollector
public ChunkCollector()
-
-
Method Details
-
addProducer
Adds a producer to the list of chunks to assemble.- Parameters:
producer
- the producer to add to the list.
-
getChunks
Assembles a set of chunks from the producers.- Parameters:
pos
- the chunk position to get.- Returns:
- the list of chunks assembled.
-
iterator
- Specified by:
iterator
in interfaceIterable<ChunkProducer>
-