public static interface SpatialValueTree2.SpatialRegion
Modifier and Type | Method and Description |
---|---|
Object |
getCellValue(Map<SpatialValueTree2.SpatialDimension,Object> coordinates)
Returns the value of a cell.
|
double |
getCellValueDouble(Map<SpatialValueTree2.SpatialDimension,Object> coordinates,
boolean[] wasNull)
Version of
getCellValue(java.util.Map) optimized for
double values. |
int |
getCellValueInt(Map<SpatialValueTree2.SpatialDimension,Object> coordinates,
boolean[] wasNull)
Version of
getCellValue(java.util.Map) optimized for
int values. |
SpatialValueTree2.SpatialRegionRequest |
getRequest()
Returns the specification of this region.
|
SpatialValueTree2.SpatialRegionRequest getRequest()
Object getCellValue(Map<SpatialValueTree2.SpatialDimension,Object> coordinates)
Assumes that this region body is valid for the request. (That is,
SpatialValueTree2.SpatialRegionRequest.mightContainCell(java.util.Map)
would
return true.) For example, suppose that the region request was
(gender=M, year=any, measure=sales)this region body is
(gender=M, year={2009, 2010}, measure=sales)and the cell coordinates are
(gender=F, year=2009, measure=sales)
Because the coordinate 'gender=F' falls outside the region request, behavior is unspecified. The implementation might return null, throw an error, or return a value for the cell (gender=M, year=2009, measure=sales); any of these behaviors would be valid.
coordinates
- Value for each dimensionint getCellValueInt(Map<SpatialValueTree2.SpatialDimension,Object> coordinates, boolean[] wasNull)
getCellValue(java.util.Map)
optimized for
int
values.
If value is null, writes 'true' into wasNull[0] and returns 0. Otherwise, does not modify wasNull.
coordinates
- Value of each dimensionwasNull
- 1-element array to be informed if value was nulldouble getCellValueDouble(Map<SpatialValueTree2.SpatialDimension,Object> coordinates, boolean[] wasNull)
getCellValue(java.util.Map)
optimized for
double
values.
If value is null, writes 'true' into wasNull[0] and returns 0. Otherwise, does not modify wasNull.
coordinates
- Value of each dimensionwasNull
- 1-element array to be informed if value was nullCopyright © 2020 Hitachi Vantara. All rights reserved.