Class TiledGridResource.CacheKey

java.lang.Object
org.apache.sis.internal.storage.TiledGridResource.CacheKey
Enclosing class:
TiledGridResource

static final class TiledGridResource.CacheKey extends Object
A key in the TiledGridResource.rasters cache of tiles. Each key shall be unique within its enclosing TiledGridResource instance.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final int[]
    Bands in strictly increasing order.
    private final int
    Index in a row-major array of tiles.
    private final int[]
    Subsampling factors at read time.
    private final int[]
    Remainder of subsampling divisions.
  • Constructor Summary

    Constructors
    Constructor
    Description
    CacheKey(int indexInTileVector, int[] includedBands, int[] subsampling, int[] subsamplingOffsets)
    Creates a key with given arrays hold be reference (no copy).
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Compares this key with the given object for equality.
    int
    Returns a hash-code value for this key.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • indexInTileVector

      private final int indexInTileVector
      Index in a row-major array of tiles.
    • includedBands

      private final int[] includedBands
      Bands in strictly increasing order.
    • subsampling

      private final int[] subsampling
      Subsampling factors at read time.
    • subsamplingOffsets

      private final int[] subsamplingOffsets
      Remainder of subsampling divisions.
  • Constructor Details

    • CacheKey

      CacheKey(int indexInTileVector, int[] includedBands, int[] subsampling, int[] subsamplingOffsets)
      Creates a key with given arrays hold be reference (no copy).
  • Method Details

    • hashCode

      public int hashCode()
      Returns a hash-code value for this key.
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Compares this key with the given object for equality.
      Overrides:
      equals in class Object