MetricGeoHashGrid extends GeoHashGrid { @Override public Number computeCellValue(Map<String,Object> bucket) { return super.pluckMetricValue(bucket, metricKey, valueKey); }  @Override void setParams(List<String> params); @Override Number computeCellValue(Map<String,Object> bucket); String getMetricKey(); String getValueKey(); final static String DEFAULT_METRIC_KEY; }
@Test public void testComputeCellValue() { int value = 5; Map<String,Object> metricBucket = TestUtil.createMetricBucket(1, MetricGeoHashGrid.DEFAULT_METRIC_KEY, GeoHashGrid.VALUE_KEY, value); Number rasterValue = geohashGrid.computeCellValue(metricBucket); assertEquals(value, rasterValue); }