/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/index/ |
H A D | TestNoMergePolicy.java | 32 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 D | TestForceMergeForever.java | 66 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 D | TestDeletionPolicy.java | 210 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 D | TestIndexWriterMergePolicy.java | 75 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 D | Test2BPostings.java | 53 MergePolicy mp = w.getConfig().getMergePolicy(); 54 if (mp instanceof LogByteSizeMergePolicy) { 56 ((LogByteSizeMergePolicy) mp).setMaxMergeMB(1024*1024*1024);
|
H A D | Test2BTerms.java | 109 MergePolicy mp = w.getConfig().getMergePolicy(); 110 if (mp instanceof LogByteSizeMergePolicy) { 112 ((LogByteSizeMergePolicy) mp).setMaxMergeMB(1024*1024*1024);
|
H A D | TestBackwardsCompatibility.java | 502 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 D | TestConcurrentMergeScheduler.java | 126 LogDocMergePolicy mp = new LogDocMergePolicy(); 130 mp.setMinMergeDocs(1000); 133 .setMergePolicy(mp));
|
H A D | TestTermInfosReaderIndex.java | 66 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 D | TestNoMergePolicy.java | 32 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 D | TestForceMergeForever.java | 66 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 D | TestIndexWriterMergePolicy.java | 75 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 D | Test2BPostings.java | 53 MergePolicy mp = w.getConfig().getMergePolicy(); 54 if (mp instanceof LogByteSizeMergePolicy) { 56 ((LogByteSizeMergePolicy) mp).setMaxMergeMB(1024*1024*1024);
|
H A D | Test2BTerms.java | 109 MergePolicy mp = w.getConfig().getMergePolicy(); 110 if (mp instanceof LogByteSizeMergePolicy) { 112 ((LogByteSizeMergePolicy) mp).setMaxMergeMB(1024*1024*1024);
|
H A D | TestBackwardsCompatibility.java | 498 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 D | TestMergePolicyConfig.java | 35 MergePolicy mp = iwc.getMergePolicy(); 36 assertTrue(mp instanceof TieredMergePolicy); 37 TieredMergePolicy tieredMP = (TieredMergePolicy) mp; 39 // mp-specific setter
|
H A D | TestPropInject.java | 53 LogByteSizeMergePolicy mp = (LogByteSizeMergePolicy)writer.getConfig().getMergePolicy(); 54 assertEquals(64.0, mp.getMaxMergeMB());
|
H A D | TestPropInjectDefaults.java | 51 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 D | TestSearch.java | 71 MergePolicy mp = conf.getMergePolicy(); 72 if (mp instanceof LogMergePolicy) { 73 ((LogMergePolicy) mp).setUseCompoundFile(useCompoundFile);
|
H A D | TestSearchForDuplicates.java | 75 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 D | TestSearch.java | 78 MergePolicy mp = conf.getMergePolicy(); 79 if (mp instanceof LogMergePolicy) { 80 ((LogMergePolicy) mp).setUseCompoundFile(useCompoundFile);
|
H A D | TestSearchForDuplicates.java | 84 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 D | FileBasedSpellChecker.java | 90 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.java | 185 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 D | LuceneTestCase.java | 450 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...] |