Searched refs:mp (Results 1 - 25 of 33) sorted by relevance

12

/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/index/
H A DTestNoMergePolicy.java32 MergePolicy mp = NoMergePolicy.NO_COMPOUND_FILES;
33 assertNull(mp.findMerges(null));
34 assertNull(mp.findForcedMerges(null, 0, null));
35 assertNull(mp.findForcedDeletesMerges(null));
36 assertFalse(mp.useCompoundFile(null, null));
37 mp.close();
H A DTestForceMergeForever.java66 MergePolicy mp = w.getConfig().getMergePolicy();
68 if (mp instanceof TieredMergePolicy) {
69 ((TieredMergePolicy) mp).setMaxMergeAtOnce(mergeAtOnce);
70 } else if (mp instanceof LogMergePolicy) {
71 ((LogMergePolicy) mp).setMergeFactor(mergeAtOnce);
H A DTestDeletionPolicy.java210 MergePolicy mp = conf.getMergePolicy();
211 if (mp instanceof LogMergePolicy) {
212 setUseCompoundFile(mp, true);
227 mp = conf.getMergePolicy();
228 if (mp instanceof LogMergePolicy) {
229 setUseCompoundFile(mp, true);
310 MergePolicy mp = conf.getMergePolicy();
311 if (mp instanceof LogMergePolicy) {
312 setUseCompoundFile(mp, useCompoundFile);
330 mp
[all...]
H A DTestIndexWriterMergePolicy.java75 LogDocMergePolicy mp = new LogDocMergePolicy();
76 mp.setMinMergeDocs(100);
77 mp.setMergeFactor(10);
80 .setMaxBufferedDocs(10).setMergePolicy(mp));
86 mp = new LogDocMergePolicy();
87 mp.setMergeFactor(10);
90 OpenMode.APPEND).setMaxBufferedDocs(10).setMergePolicy(mp));
91 mp.setMinMergeDocs(100);
H A DTest2BPostings.java53 MergePolicy mp = w.getConfig().getMergePolicy();
54 if (mp instanceof LogByteSizeMergePolicy) {
56 ((LogByteSizeMergePolicy) mp).setMaxMergeMB(1024*1024*1024);
H A DTest2BTerms.java109 MergePolicy mp = w.getConfig().getMergePolicy();
110 if (mp instanceof LogByteSizeMergePolicy) {
112 ((LogByteSizeMergePolicy) mp).setMaxMergeMB(1024*1024*1024);
H A DTestBackwardsCompatibility.java502 LogByteSizeMergePolicy mp = new LogByteSizeMergePolicy();
503 mp.setUseCompoundFile(doCFS);
504 mp.setNoCFSRatio(1.0);
506 .setMaxBufferedDocs(10).setMergePolicy(mp);
520 mp = new LogByteSizeMergePolicy();
521 mp.setUseCompoundFile(doCFS);
522 mp.setNoCFSRatio(1.0);
524 .setMaxBufferedDocs(10).setMergePolicy(mp);
812 MergePolicy mp = random.nextBoolean() ? newLogMergePolicy() : newTieredMergePolicy();
814 .setMergePolicy(mp);
[all...]
H A DTestConcurrentMergeScheduler.java126 LogDocMergePolicy mp = new LogDocMergePolicy();
130 mp.setMinMergeDocs(1000);
133 .setMergePolicy(mp));
H A DTestTermInfosReaderIndex.java66 LogMergePolicy mp = newLogMergePolicy();
68 mp.setUseCompoundFile(false);
69 config.setMergePolicy(mp);
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/index/
H A DTestNoMergePolicy.java32 MergePolicy mp = NoMergePolicy.NO_COMPOUND_FILES;
33 assertNull(mp.findMerges(null));
34 assertNull(mp.findForcedMerges(null, 0, null));
35 assertNull(mp.findForcedDeletesMerges(null));
36 assertFalse(mp.useCompoundFile(null, null));
37 mp.close();
H A DTestForceMergeForever.java66 MergePolicy mp = w.getConfig().getMergePolicy();
68 if (mp instanceof TieredMergePolicy) {
69 ((TieredMergePolicy) mp).setMaxMergeAtOnce(mergeAtOnce);
70 } else if (mp instanceof LogMergePolicy) {
71 ((LogMergePolicy) mp).setMergeFactor(mergeAtOnce);
H A DTestIndexWriterMergePolicy.java75 LogDocMergePolicy mp = new LogDocMergePolicy();
76 mp.setMinMergeDocs(100);
77 mp.setMergeFactor(10);
80 .setMaxBufferedDocs(10).setMergePolicy(mp));
86 mp = new LogDocMergePolicy();
87 mp.setMergeFactor(10);
90 OpenMode.APPEND).setMaxBufferedDocs(10).setMergePolicy(mp));
91 mp.setMinMergeDocs(100);
H A DTest2BPostings.java53 MergePolicy mp = w.getConfig().getMergePolicy();
54 if (mp instanceof LogByteSizeMergePolicy) {
56 ((LogByteSizeMergePolicy) mp).setMaxMergeMB(1024*1024*1024);
H A DTest2BTerms.java109 MergePolicy mp = w.getConfig().getMergePolicy();
110 if (mp instanceof LogByteSizeMergePolicy) {
112 ((LogByteSizeMergePolicy) mp).setMaxMergeMB(1024*1024*1024);
H A DTestBackwardsCompatibility.java498 LogByteSizeMergePolicy mp = new LogByteSizeMergePolicy();
499 mp.setUseCompoundFile(doCFS);
500 mp.setNoCFSRatio(1.0);
502 .setMaxBufferedDocs(10).setMergePolicy(mp);
516 mp = new LogByteSizeMergePolicy();
517 mp.setUseCompoundFile(doCFS);
518 mp.setNoCFSRatio(1.0);
520 .setMaxBufferedDocs(10).setMergePolicy(mp);
779 MergePolicy mp = random.nextBoolean() ? newLogMergePolicy() : newTieredMergePolicy();
781 .setMergePolicy(mp);
[all...]
/lucene-3.6.0/solr/core/src/test/org/apache/solr/core/
H A DTestMergePolicyConfig.java35 MergePolicy mp = iwc.getMergePolicy();
36 assertTrue(mp instanceof TieredMergePolicy);
37 TieredMergePolicy tieredMP = (TieredMergePolicy) mp;
39 // mp-specific setter
H A DTestPropInject.java53 LogByteSizeMergePolicy mp = (LogByteSizeMergePolicy)writer.getConfig().getMergePolicy();
54 assertEquals(64.0, mp.getMaxMergeMB());
H A DTestPropInjectDefaults.java51 LogByteSizeMergePolicy mp = (LogByteSizeMergePolicy)writer.getConfig().getMergePolicy();
52 assertEquals(32.0, mp.getMaxMergeMB());
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/
H A DTestSearch.java71 MergePolicy mp = conf.getMergePolicy();
72 if (mp instanceof LogMergePolicy) {
73 ((LogMergePolicy) mp).setUseCompoundFile(useCompoundFile);
H A DTestSearchForDuplicates.java75 final MergePolicy mp = conf.getMergePolicy();
76 if (mp instanceof LogMergePolicy) {
77 ((LogMergePolicy) mp).setUseCompoundFile(useCompoundFiles);
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/
H A DTestSearch.java78 MergePolicy mp = conf.getMergePolicy();
79 if (mp instanceof LogMergePolicy) {
80 ((LogMergePolicy) mp).setUseCompoundFile(useCompoundFile);
H A DTestSearchForDuplicates.java84 final MergePolicy mp = conf.getMergePolicy();
85 if (mp instanceof LogMergePolicy) {
86 ((LogMergePolicy) mp).setUseCompoundFile(useCompoundFiles);
/lucene-3.6.0/solr/core/src/java/org/apache/solr/spelling/
H A DFileBasedSpellChecker.java90 LogMergePolicy mp = new LogByteSizeMergePolicy();
91 mp.setMergeFactor(300);
97 setMergePolicy(mp).
/lucene-3.6.0/lucene/backwards/src/test-framework/java/org/apache/lucene/util/
H A D_TestUtil.java185 public static void setUseCompoundFile(MergePolicy mp, boolean v) { argument
186 if (mp instanceof TieredMergePolicy) {
187 ((TieredMergePolicy) mp).setUseCompoundFile(v);
188 } else if (mp instanceof LogMergePolicy) {
189 ((LogMergePolicy) mp).setUseCompoundFile(v);
396 MergePolicy mp = w.getConfig().getMergePolicy();
397 if (mp instanceof LogMergePolicy) {
398 LogMergePolicy lmp = (LogMergePolicy) mp;
400 } else if (mp instanceof TieredMergePolicy) {
401 TieredMergePolicy tmp = (TieredMergePolicy) mp;
[all...]
H A DLuceneTestCase.java450 public static void setUseCompoundFile(MergePolicy mp, boolean useCompound) { argument
451 if (mp instanceof LogMergePolicy) {
452 ((LogMergePolicy) mp).setUseCompoundFile(useCompound);
453 } else if (mp instanceof TieredMergePolicy) {
454 ((TieredMergePolicy) mp).setUseCompoundFile(useCompound);
456 fail("MergePolicy (compound-file) not supported " + mp);
460 public static void setMergeFactor(MergePolicy mp, int mergeFactor) { argument
461 if (mp instanceof LogMergePolicy) {
462 ((LogMergePolicy) mp).setMergeFactor(mergeFactor);
463 } else if (mp instanceo
[all...]

Completed in 3376 milliseconds

12