use of org.apache.hyracks.storage.am.common.datagen.TupleGenerator in project asterixdb by apache.
the class AbstractInvertedIndexSearchTest method testWordInvIndexIndex.
private void testWordInvIndexIndex(LSMInvertedIndexTestContext testCtx) throws IOException {
TupleGenerator tupleGen = LSMInvertedIndexTestUtils.createStringDocumentTupleGen(harness.getRandom());
List<IInvertedIndexSearchModifier> searchModifiers = new ArrayList<>();
searchModifiers.add(new ConjunctiveSearchModifier());
searchModifiers.add(new JaccardSearchModifier(1.0f));
searchModifiers.add(new JaccardSearchModifier(0.8f));
searchModifiers.add(new JaccardSearchModifier(0.5f));
runTest(testCtx, tupleGen, searchModifiers);
}
use of org.apache.hyracks.storage.am.common.datagen.TupleGenerator in project asterixdb by apache.
the class AbstractInvertedIndexDeleteTest method wordTokensInvIndexTest.
@Test
public void wordTokensInvIndexTest() throws IOException {
LSMInvertedIndexTestContext testCtx = LSMInvertedIndexTestUtils.createWordInvIndexTestContext(harness, invIndexType);
TupleGenerator tupleGen = LSMInvertedIndexTestUtils.createStringDocumentTupleGen(harness.getRandom());
runTest(testCtx, tupleGen);
}
use of org.apache.hyracks.storage.am.common.datagen.TupleGenerator in project asterixdb by apache.
the class AbstractInvertedIndexDeleteTest method ngramTokensInvIndexTest.
@Test
public void ngramTokensInvIndexTest() throws IOException {
LSMInvertedIndexTestContext testCtx = LSMInvertedIndexTestUtils.createNGramInvIndexTestContext(harness, invIndexType);
TupleGenerator tupleGen = LSMInvertedIndexTestUtils.createPersonNamesTupleGen(harness.getRandom());
runTest(testCtx, tupleGen);
}
use of org.apache.hyracks.storage.am.common.datagen.TupleGenerator in project asterixdb by apache.
the class AbstractInvertedIndexLoadTest method wordTokensInvIndexTest.
@Test
public void wordTokensInvIndexTest() throws IOException {
LSMInvertedIndexTestContext testCtx = LSMInvertedIndexTestUtils.createWordInvIndexTestContext(harness, invIndexType);
TupleGenerator tupleGen = LSMInvertedIndexTestUtils.createStringDocumentTupleGen(harness.getRandom());
runTest(testCtx, tupleGen);
}
Aggregations