Package noaa.coastwatch.util.chunk
Interface ChunkProducer
- All Known Implementing Classes:
GridChunkProducer
,SyntheticIntChunkProducer
public interface ChunkProducer
The
ChunkProducer
interface is implemented by all classes that
produce a data chunk on demand.- Since:
- 3.4.0
- Author:
- Peter Hollemans
-
Method Summary
Modifier and TypeMethodDescriptiongetChunk
(ChunkPosition pos) Produces a data chunk.Gets the external type of chunks produced by this producer.Gets the native chunking scheme for chunks obtained from this producer.Gets a prototype chunk for this producer.
-
Method Details
-
getExternalType
DataChunk.DataType getExternalType()Gets the external type of chunks produced by this producer.- Returns:
- the external data type.
- See Also:
-
getChunk
Produces a data chunk.- Parameters:
pos
- the position of the data chunk to produce.- Returns:
- the data chunk.
-
getNativeScheme
ChunkingScheme getNativeScheme()Gets the native chunking scheme for chunks obtained from this producer. Calls togetChunk(noaa.coastwatch.util.chunk.ChunkPosition)
are optimized to use chunk positions obtained from the native scheme.- Returns:
- the native chunking scheme used by this producer, or null if no native chunking scheme is used.
- Since:
- 3.5.0
-
getPrototypeChunk
DataChunk getPrototypeChunk()Gets a prototype chunk for this producer. Chunks received from thegetChunk(noaa.coastwatch.util.chunk.ChunkPosition)
method conform to the prototype.- Returns:
- a prototype chunk for chunks produced by this producer.
- Since:
- 3.5.0
-