Search in sources :

Example 1 with LSMInvertedIndexTestContext

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

the class AbstractInvertedIndexSearchTest method ngramTokensInvIndexTest.

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

Example 2 with LSMInvertedIndexTestContext

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

the class AbstractInvertedIndexLoadTest method hashedWordTokensInvIndexTest.

@Test
public void hashedWordTokensInvIndexTest() throws IOException {
    LSMInvertedIndexTestContext testCtx = LSMInvertedIndexTestUtils.createHashedWordInvIndexTestContext(harness, invIndexType);
    TupleGenerator tupleGen = LSMInvertedIndexTestUtils.createStringDocumentTupleGen(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 3 with LSMInvertedIndexTestContext

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

the class AbstractInvertedIndexLoadTest method ngramTokensInvIndexTest.

@Test
public void ngramTokensInvIndexTest() throws IOException {
    LSMInvertedIndexTestContext testCtx = LSMInvertedIndexTestUtils.createNGramInvIndexTestContext(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 4 with LSMInvertedIndexTestContext

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

the class AbstractInvertedIndexSearchTest method hashedNGramTokensInvIndexTest.

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

Example 5 with LSMInvertedIndexTestContext

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

the class AbstractInvertedIndexDeleteTest method hashedWordTokensInvIndexTest.

@Test
public void hashedWordTokensInvIndexTest() throws IOException {
    LSMInvertedIndexTestContext testCtx = LSMInvertedIndexTestUtils.createHashedWordInvIndexTestContext(harness, invIndexType);
    TupleGenerator tupleGen = LSMInvertedIndexTestUtils.createStringDocumentTupleGen(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