use of org.apache.geode.cache.Cache in project geode by apache.
the class NonDistinctOrderByDUnitImpl method testMultiColOrderByWithIndexResultDefaultProjection.
@Test
public void testMultiColOrderByWithIndexResultDefaultProjection() throws Exception {
Host host = Host.getHost(0);
final VM vm0 = host.getVM(0);
final VM vm1 = host.getVM(1);
final VM vm2 = host.getVM(2);
final VM vm3 = host.getVM(3);
Cache cache = this.getCache();
NonDistinctOrderByTestImplementation test = createTestInstance();
test.testMultiColOrderByWithIndexResultDefaultProjection();
this.closeCache(vm0, vm1, vm2, vm3);
}
use of org.apache.geode.cache.Cache in project geode by apache.
the class NonDistinctOrderByDUnitImpl method testOrderByWithIndexResultDefaultProjection.
@Test
public void testOrderByWithIndexResultDefaultProjection() throws Exception {
Host host = Host.getHost(0);
final VM vm0 = host.getVM(0);
final VM vm1 = host.getVM(1);
final VM vm2 = host.getVM(2);
final VM vm3 = host.getVM(3);
Cache cache = this.getCache();
NonDistinctOrderByTestImplementation test = createTestInstance();
test.testOrderByWithIndexResultDefaultProjection();
this.closeCache(vm0, vm1, vm2, vm3);
}
use of org.apache.geode.cache.Cache in project geode by apache.
the class NonDistinctOrderByDUnitImpl method testMultiColOrderByWithMultiIndexResultDefaultProjection.
@Test
public void testMultiColOrderByWithMultiIndexResultDefaultProjection() throws Exception {
Host host = Host.getHost(0);
final VM vm0 = host.getVM(0);
final VM vm1 = host.getVM(1);
final VM vm2 = host.getVM(2);
final VM vm3 = host.getVM(3);
Cache cache = this.getCache();
NonDistinctOrderByTestImplementation test = createTestInstance();
test.testMultiColOrderByWithMultiIndexResultDefaultProjection();
this.closeCache(vm0, vm1, vm2, vm3);
}
use of org.apache.geode.cache.Cache in project geode by apache.
the class NonDistinctOrderByDUnitImpl method testOrderByWithIndexResultWithProjection.
@Test
public void testOrderByWithIndexResultWithProjection() throws Exception {
Host host = Host.getHost(0);
final VM vm0 = host.getVM(0);
final VM vm1 = host.getVM(1);
final VM vm2 = host.getVM(2);
final VM vm3 = host.getVM(3);
Cache cache = this.getCache();
NonDistinctOrderByTestImplementation test = createTestInstance();
test.testOrderByWithIndexResultWithProjection();
this.closeCache(vm0, vm1, vm2, vm3);
}
use of org.apache.geode.cache.Cache in project geode by apache.
the class NonDistinctOrderByPartitionedDUnitTest method createAccessor.
private Region createAccessor(String regionName, Class valueConstraint) {
Cache cache = getCache();
PartitionAttributesFactory paf = new PartitionAttributesFactory();
paf.setTotalNumBuckets(10);
paf.setLocalMaxMemory(0);
return cache.createRegionFactory(RegionShortcut.PARTITION_PROXY).setValueConstraint(valueConstraint).setPartitionAttributes(paf.create()).create(regionName);
}
Aggregations