Enum TileStatus

java.lang.Object
java.lang.Enum<TileStatus>
org.apache.sis.storage.tiling.TileStatus
All Implemented Interfaces:
Serializable, Comparable<TileStatus>, java.lang.constant.Constable

public enum TileStatus extends Enum<TileStatus>
Information about the availability of a tile. Some TileMatrix implementations may not know whether a tile exists or not before the first attempt to read that tile. Consequently, a tile status may be initially UNKNOWN and transitions at a later time to a state such as EXISTS, MISSING or IN_ERROR.
Since:
1.2
Version:
1.2
See Also:
  • Enum Constant Details

    • UNKNOWN

      public static final TileStatus UNKNOWN
      The tile status cannot be known unless the tile is read. This value is returned by some TileMatrix implementations when determining the availability of a tile would require relatively costly I/O operations.
    • EXISTS

      public static final TileStatus EXISTS
      The tile exists. However, this is not a guarantee that no I/O error will happen when reading the tile, neither that the tile will be non-empty. If an I/O error happens at tile reading time, then the tile status should transition from EXISTS to IN_ERROR.
    • MISSING

      public static final TileStatus MISSING
      The tile is flagged as missing. It may happen in regions where no data is available.
    • OUTSIDE_EXTENT

      public static final TileStatus OUTSIDE_EXTENT
      The tile for which a status has been requested is outside the TileMatrix extent.
    • IN_ERROR

      public static final TileStatus IN_ERROR
      The tile exists but attempt to read it failed. It may be because an IOException occurred while reading the tile.
  • Constructor Details

    • TileStatus

      private TileStatus()
  • Method Details

    • values

      public static TileStatus[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static TileStatus valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null