use of org.locationtech.geowave.core.store.query.constraints.BasicQueryByClass in project geowave by locationtech.
the class ChooseLocalityPreservingQueryStrategyTest method testChooseTemporalWithoutStatsHouseHour.
@Test
public void testChooseTemporalWithoutStatsHouseHour() {
final ChooseLocalityPreservingQueryStrategy strategy = new ChooseLocalityPreservingQueryStrategy();
final Iterator<Index> it = getIndices(new BasicQueryByClass(createConstraints(HOUSE, HOUSE, HOUR)), strategy);
assertTrue(it.hasNext());
assertEquals(indices.get(1).getName(), it.next().getName());
assertFalse(it.hasNext());
}
use of org.locationtech.geowave.core.store.query.constraints.BasicQueryByClass in project geowave by locationtech.
the class ChooseLocalityPreservingQueryStrategyTest method testChooseTemporalWithoutStatsCityDay.
@Test
public void testChooseTemporalWithoutStatsCityDay() {
final ChooseLocalityPreservingQueryStrategy strategy = new ChooseLocalityPreservingQueryStrategy();
final Iterator<Index> it = getIndices(new BasicQueryByClass(createConstraints(CITY, CITY, DAY)), strategy);
assertTrue(it.hasNext());
assertEquals(indices.get(1).getName(), it.next().getName());
assertFalse(it.hasNext());
}
use of org.locationtech.geowave.core.store.query.constraints.BasicQueryByClass in project geowave by locationtech.
the class ChooseLocalityPreservingQueryStrategyTest method testChooseSpatialWithoutStatsHouseDay.
@Test
public void testChooseSpatialWithoutStatsHouseDay() {
final ChooseLocalityPreservingQueryStrategy strategy = new ChooseLocalityPreservingQueryStrategy();
final Iterator<Index> it = getIndices(new BasicQueryByClass(createConstraints(HOUSE, HOUSE, DAY)), strategy);
assertTrue(it.hasNext());
assertEquals(indices.get(3).getName(), it.next().getName());
assertFalse(it.hasNext());
}
use of org.locationtech.geowave.core.store.query.constraints.BasicQueryByClass in project geowave by locationtech.
the class ChooseLocalityPreservingQueryStrategyTest method testChooseTemporalWithoutStatsBlockDay.
@Test
public void testChooseTemporalWithoutStatsBlockDay() {
final ChooseLocalityPreservingQueryStrategy strategy = new ChooseLocalityPreservingQueryStrategy();
final Iterator<Index> it = getIndices(new BasicQueryByClass(createConstraints(BLOCK, BLOCK, DAY)), strategy);
assertTrue(it.hasNext());
assertEquals(indices.get(1).getName(), it.next().getName());
assertFalse(it.hasNext());
}
use of org.locationtech.geowave.core.store.query.constraints.BasicQueryByClass in project geowave by locationtech.
the class ChooseHeuristicMatchQueryStrategyTest method testChooseSpatialWithoutStatsCityWeek.
@Test
public void testChooseSpatialWithoutStatsCityWeek() {
final ChooseHeuristicMatchIndexQueryStrategy strategy = new ChooseHeuristicMatchIndexQueryStrategy();
final Iterator<Index> it = getIndices(null, new BasicQueryByClass(createConstraints(CITY, CITY, WEEK)), strategy);
assertTrue(it.hasNext());
assertEquals(indices.get(1).getName(), it.next().getName());
assertFalse(it.hasNext());
}
Aggregations