Package noaa.coastwatch.util.chunk
Class GridChunkConsumer
java.lang.Object
noaa.coastwatch.util.chunk.GridChunkConsumer
- All Implemented Interfaces:
ChunkConsumer
The
GridChunkConsumer
class consumes data chunks and places
the chunk data into a Grid
object.- Since:
- 3.4.0
- Author:
- Peter Hollemans
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the native chunking scheme for chunks accepted by this producer.Gets a prototype chunk for this consumer.void
putChunk
(ChunkPosition pos, DataChunk chunk) Consumes a data chunk.
-
Constructor Details
-
GridChunkConsumer
Creates a new consumer.- Parameters:
grid
- the grid to use for setting chunk data.
-
-
Method Details
-
putChunk
Description copied from interface:ChunkConsumer
Consumes a data chunk.- Specified by:
putChunk
in interfaceChunkConsumer
- Parameters:
pos
- the position of the data chunk to consume.chunk
- the data chunk to consume.
-
getNativeScheme
Description copied from interface:ChunkConsumer
Gets the native chunking scheme for chunks accepted by this producer. Calls toChunkConsumer.putChunk(noaa.coastwatch.util.chunk.ChunkPosition, noaa.coastwatch.util.chunk.DataChunk)
are optimized to use chunk positions obtained from the native scheme.- Specified by:
getNativeScheme
in interfaceChunkConsumer
- Returns:
- the native chunking scheme used by this consumer, or null if no native chunking scheme is used.
-
getPrototypeChunk
Description copied from interface:ChunkConsumer
Gets a prototype chunk for this consumer. Chunks passed to theChunkConsumer.putChunk(noaa.coastwatch.util.chunk.ChunkPosition, noaa.coastwatch.util.chunk.DataChunk)
method must conform to the prototype.- Specified by:
getPrototypeChunk
in interfaceChunkConsumer
- Returns:
- a prototype chunk for chunks accepted by this consumer.
-