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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the native chunking scheme for chunks accepted by this producer.Gets a prototype chunk for this consumer.voidputChunk(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:ChunkConsumerConsumes a data chunk.- Specified by:
putChunkin interfaceChunkConsumer- Parameters:
pos- the position of the data chunk to consume.chunk- the data chunk to consume.
-
getNativeScheme
Description copied from interface:ChunkConsumerGets 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:
getNativeSchemein interfaceChunkConsumer- Returns:
- the native chunking scheme used by this consumer, or null if no native chunking scheme is used.
-
getPrototypeChunk
Description copied from interface:ChunkConsumerGets 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:
getPrototypeChunkin interfaceChunkConsumer- Returns:
- a prototype chunk for chunks accepted by this consumer.
-