Package rasj
Class RasStorageLayout
java.lang.Object
rasj.RasStorageLayout
PURPOSE: This class is used to express the storage options for MDD objects. In the current version, either the tile-size (for example 256000 bytes) or the tiling-domain (for example "[0:127,0:511]") can be specified. If neither is done, the default tile-size will be 128 kBytes.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.Copy constructor taking another storage layout object as a parameter. -
Method Summary
Modifier and TypeMethodDescriptionfinal RasMIntervalReturns the current tiling-domain of this storage layout object.final intReturns the current tile-size (in bytes).booleanisCompatible(RasMInterval domain) This method tests if the current storageLayout object is compatible to a given domain.voidsetTileDomain(String domain) Sets the tiling-domain for this storage layout object and resets the tile-size to null.voidsetTileSize(int size) Sets the tile-size (in bytes) and resets the tiling-domain to null.toString()Returns a string representation of this class.
-
Constructor Details
-
RasStorageLayout
public RasStorageLayout()Default constructor. -
RasStorageLayout
Copy constructor taking another storage layout object as a parameter.- Parameters:
stl- the sorage layout object to be copied
-
-
Method Details
-
getSpatialDomain
Returns the current tiling-domain of this storage layout object.- Returns:
- the tiling-domain of this storage layout object
-
setTileSize
public void setTileSize(int size) Sets the tile-size (in bytes) and resets the tiling-domain to null.- Parameters:
size- the tile-size (in bytes)
-
getTileSize
public final int getTileSize()Returns the current tile-size (in bytes).- Returns:
- the tile-size
-
setTileDomain
public void setTileDomain(String domain) throws RasResultIsNoIntervalException, RasStreamInputOverflowException, RasIndexOutOfBoundsException Sets the tiling-domain for this storage layout object and resets the tile-size to null.- Parameters:
domain- the tiling-domain- Throws:
RasResultIsNoIntervalExceptionRasStreamInputOverflowExceptionRasIndexOutOfBoundsException
-
isCompatible
This method tests if the current storageLayout object is compatible to a given domain.- Parameters:
domain- the domain to be compared- Returns:
- true if the tiling-domain of this storage layout object is either null or has the same number of dimensions as the given domain, otherwise false
-
toString
Returns a string representation of this class.
-