@Test
public void testSingleEntry() {
final Calendar cal = Calendar.getInstance();
final NumericData[] dataPerDimension1 = new NumericData[SPATIAL_TEMPORAL_DIMENSIONS.length];
dataPerDimension1[0] = new NumericValue(
45);
dataPerDimension1[1] = new NumericValue(
45);
dataPerDimension1[2] = new NumericValue(
cal.getTimeInMillis());
final int year = cal.get(Calendar.YEAR);
cal.set(
Calendar.DAY_OF_YEAR,
1);
final NumericData[] dataPerDimension2 = new NumericData[SPATIAL_TEMPORAL_DIMENSIONS.length];
dataPerDimension2[0] = new NumericValue(
45);
dataPerDimension2[1] = new NumericValue(
45);
dataPerDimension2[2] = new NumericValue(
cal.getTimeInMillis());
cal.set(
Calendar.YEAR,
year - 1);
final NumericData[] dataPerDimension3 = new NumericData[SPATIAL_TEMPORAL_DIMENSIONS.length];
dataPerDimension3[0] = new NumericValue(
45);
dataPerDimension3[1] = new NumericValue(
45);
dataPerDimension3[2] = new NumericValue(
cal.getTimeInMillis());
MultiDimensionalNumericData indexedData = new BasicNumericDataset(
dataPerDimension1);
final NumericIndexStrategy strategy = new SpatialTemporalFactory().createIndexStrategy(DataType.VECTOR);