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 Details

    • getExternalType

      DataChunk.DataType getExternalType()
      Gets the external type of chunks produced by this producer.
      Returns:
      the external data type.
      See Also:
    • getChunk

      DataChunk getChunk(ChunkPosition pos)
      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 to getChunk(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 the getChunk(noaa.coastwatch.util.chunk.ChunkPosition) method conform to the prototype.
      Returns:
      a prototype chunk for chunks produced by this producer.
      Since:
      3.5.0