use of org.locationtech.geowave.core.geotime.store.query.ExplicitCQLQuery in project geowave by locationtech.
the class CQLQueryTest method testGeoWithTemporalIndex.
@Test
public void testGeoWithTemporalIndex() throws CQLException {
final ExplicitCQLQuery query = (ExplicitCQLQuery) OptimalCQLQuery.createOptimalQuery("BBOX(geometry,27.20,41.30,27.30,41.20)", adapter, null, null);
assertTrue(query.getIndexConstraints(SPATIAL_TEMPORAL_INDEX).isEmpty());
}
use of org.locationtech.geowave.core.geotime.store.query.ExplicitCQLQuery in project geowave by locationtech.
the class CQLQueryTest method testGeoAndTemporalWithNonMatchingIndex.
@Test
public void testGeoAndTemporalWithNonMatchingIndex() throws CQLException {
final ExplicitCQLQuery query = (ExplicitCQLQuery) OptimalCQLQuery.createOptimalQuery("BBOX(geometry,27.20,41.30,27.30,41.20) and when during 2005-05-19T20:32:56Z/2005-05-19T21:32:56Z", adapter, null, null);
final List<MultiDimensionalNumericData> constraints = query.getIndexConstraints(SPATIAL_INDEX);
assertTrue(Arrays.equals(constraints.get(0).getMinValuesPerDimension(), new Double[] { 27.2, 41.2 }));
assertTrue(Arrays.equals(constraints.get(0).getMaxValuesPerDimension(), new Double[] { 27.3, 41.3 }));
}
use of org.locationtech.geowave.core.geotime.store.query.ExplicitCQLQuery in project geowave by locationtech.
the class CQLQueryTest method testNoConstraintsWithTemporalIndex.
@Test
public void testNoConstraintsWithTemporalIndex() throws CQLException {
final ExplicitCQLQuery query = (ExplicitCQLQuery) OptimalCQLQuery.createOptimalQuery("pid = '10'", adapter, null, null);
assertTrue(query.getIndexConstraints(SPATIAL_TEMPORAL_INDEX).isEmpty());
}
use of org.locationtech.geowave.core.geotime.store.query.ExplicitCQLQuery in project geowave by locationtech.
the class CQLQueryTest method testNoConstraintsWithGeoIndex.
@Test
public void testNoConstraintsWithGeoIndex() throws CQLException {
final ExplicitCQLQuery query = (ExplicitCQLQuery) OptimalCQLQuery.createOptimalQuery("pid = '10'", adapter, null, null);
assertTrue(query.getIndexConstraints(SPATIAL_INDEX).isEmpty());
}
use of org.locationtech.geowave.core.geotime.store.query.ExplicitCQLQuery in project geowave by locationtech.
the class CQLQueryTest method testGeoWithMatchingIndex.
@Test
public void testGeoWithMatchingIndex() throws CQLException {
final ExplicitCQLQuery query = (ExplicitCQLQuery) OptimalCQLQuery.createOptimalQuery("BBOX(geometry,27.20,41.30,27.30,41.20)", adapter, null, null);
final List<MultiDimensionalNumericData> constraints = query.getIndexConstraints(SPATIAL_INDEX);
assertTrue(Arrays.equals(constraints.get(0).getMinValuesPerDimension(), new Double[] { 27.2, 41.2 }));
assertTrue(Arrays.equals(constraints.get(0).getMaxValuesPerDimension(), new Double[] { 27.3, 41.3 }));
}
Aggregations