Search in sources :

Example 6 with LSMInvertedIndexTestContext

use of org.apache.hyracks.storage.am.lsm.invertedindex.util.LSMInvertedIndexTestContext in project asterixdb by apache.

the class AbstractInvertedIndexLoadTest method hashedNGramTokensInvIndexTest.

@Test
public void hashedNGramTokensInvIndexTest() throws IOException {
    LSMInvertedIndexTestContext testCtx = LSMInvertedIndexTestUtils.createHashedNGramInvIndexTestContext(harness, invIndexType);
    TupleGenerator tupleGen = LSMInvertedIndexTestUtils.createPersonNamesTupleGen(harness.getRandom());
    runTest(testCtx, tupleGen);
}
Also used : LSMInvertedIndexTestContext(org.apache.hyracks.storage.am.lsm.invertedindex.util.LSMInvertedIndexTestContext) TupleGenerator(org.apache.hyracks.storage.am.common.datagen.TupleGenerator) Test(org.junit.Test)

Example 7 with LSMInvertedIndexTestContext

use of org.apache.hyracks.storage.am.lsm.invertedindex.util.LSMInvertedIndexTestContext in project asterixdb by apache.

the class AbstractInvertedIndexSearchTest method wordTokensInvIndexTest.

@Test
public void wordTokensInvIndexTest() throws IOException {
    LSMInvertedIndexTestContext testCtx = LSMInvertedIndexTestUtils.createWordInvIndexTestContext(harness, invIndexType);
    testWordInvIndexIndex(testCtx);
}
Also used : LSMInvertedIndexTestContext(org.apache.hyracks.storage.am.lsm.invertedindex.util.LSMInvertedIndexTestContext) Test(org.junit.Test)

Example 8 with LSMInvertedIndexTestContext

use of org.apache.hyracks.storage.am.lsm.invertedindex.util.LSMInvertedIndexTestContext in project asterixdb by apache.

the class LSMInvertedIndexMultiThreadTest method wordTokensInvIndexTest.

@Test
public void wordTokensInvIndexTest() throws IOException, InterruptedException {
    String dataMsg = "Documents";
    int[] numThreads = new int[] { REGULAR_NUM_THREADS, EXCESSIVE_NUM_THREADS };
    for (int i = 0; i < numThreads.length; i++) {
        for (TestWorkloadConf conf : workloadConfs) {
            setUp();
            LSMInvertedIndexTestContext testCtx = LSMInvertedIndexTestUtils.createWordInvIndexTestContext(harness, getIndexType());
            TupleGenerator tupleGen = LSMInvertedIndexTestUtils.createStringDocumentTupleGen(harness.getRandom());
            runTest(testCtx, tupleGen, numThreads[i], conf, dataMsg);
            tearDown();
        }
    }
}
Also used : TestWorkloadConf(org.apache.hyracks.storage.am.common.TestWorkloadConf) LSMInvertedIndexTestContext(org.apache.hyracks.storage.am.lsm.invertedindex.util.LSMInvertedIndexTestContext) TupleGenerator(org.apache.hyracks.storage.am.common.datagen.TupleGenerator) Test(org.junit.Test)

Example 9 with LSMInvertedIndexTestContext

use of org.apache.hyracks.storage.am.lsm.invertedindex.util.LSMInvertedIndexTestContext in project asterixdb by apache.

the class LSMInvertedIndexMultiThreadTest method hashedNGramTokensInvIndexTest.

@Test
public void hashedNGramTokensInvIndexTest() throws IOException, InterruptedException {
    String dataMsg = "Person Names";
    int[] numThreads = new int[] { REGULAR_NUM_THREADS, EXCESSIVE_NUM_THREADS };
    for (int i = 0; i < numThreads.length; i++) {
        for (TestWorkloadConf conf : workloadConfs) {
            setUp();
            LSMInvertedIndexTestContext testCtx = LSMInvertedIndexTestUtils.createHashedNGramInvIndexTestContext(harness, getIndexType());
            TupleGenerator tupleGen = LSMInvertedIndexTestUtils.createPersonNamesTupleGen(harness.getRandom());
            runTest(testCtx, tupleGen, numThreads[i], conf, dataMsg);
            tearDown();
        }
    }
}
Also used : TestWorkloadConf(org.apache.hyracks.storage.am.common.TestWorkloadConf) LSMInvertedIndexTestContext(org.apache.hyracks.storage.am.lsm.invertedindex.util.LSMInvertedIndexTestContext) TupleGenerator(org.apache.hyracks.storage.am.common.datagen.TupleGenerator) Test(org.junit.Test)

Example 10 with LSMInvertedIndexTestContext

use of org.apache.hyracks.storage.am.lsm.invertedindex.util.LSMInvertedIndexTestContext in project asterixdb by apache.

the class AbstractInvertedIndexDeleteTest method hashedNGramTokensInvIndexTest.

@Test
public void hashedNGramTokensInvIndexTest() throws IOException {
    LSMInvertedIndexTestContext testCtx = LSMInvertedIndexTestUtils.createHashedNGramInvIndexTestContext(harness, invIndexType);
    TupleGenerator tupleGen = LSMInvertedIndexTestUtils.createPersonNamesTupleGen(harness.getRandom());
    runTest(testCtx, tupleGen);
}
Also used : LSMInvertedIndexTestContext(org.apache.hyracks.storage.am.lsm.invertedindex.util.LSMInvertedIndexTestContext) TupleGenerator(org.apache.hyracks.storage.am.common.datagen.TupleGenerator) Test(org.junit.Test)

Aggregations

LSMInvertedIndexTestContext (org.apache.hyracks.storage.am.lsm.invertedindex.util.LSMInvertedIndexTestContext)14 Test (org.junit.Test)14 TupleGenerator (org.apache.hyracks.storage.am.common.datagen.TupleGenerator)10 TestWorkloadConf (org.apache.hyracks.storage.am.common.TestWorkloadConf)2