Searched defs:mp (Results 1 - 5 of 5) sorted by relevance

/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...]
/lucene-3.6.0/lucene/test-framework/src/java/org/apache/lucene/util/
H A D_TestUtil.java186 public static void setUseCompoundFile(MergePolicy mp, boolean v) { argument
187 if (mp instanceof TieredMergePolicy) {
188 ((TieredMergePolicy) mp).setUseCompoundFile(v);
189 } else if (mp instanceof LogMergePolicy) {
190 ((LogMergePolicy) mp).setUseCompoundFile(v);
601 MergePolicy mp = w.getConfig().getMergePolicy();
602 if (mp instanceof LogMergePolicy) {
603 LogMergePolicy lmp = (LogMergePolicy) mp;
605 } else if (mp instanceof TieredMergePolicy) {
606 TieredMergePolicy tmp = (TieredMergePolicy) mp;
[all...]
H A DLuceneTestCase.java585 public static void setUseCompoundFile(MergePolicy mp, boolean useCompound) { argument
586 if (mp instanceof LogMergePolicy) {
587 ((LogMergePolicy) mp).setUseCompoundFile(useCompound);
588 } else if (mp instanceof TieredMergePolicy) {
589 ((TieredMergePolicy) mp).setUseCompoundFile(useCompound);
591 fail("MergePolicy (compound-file) not supported " + mp);
595 public static void setMergeFactor(MergePolicy mp, int mergeFactor) { argument
596 if (mp instanceof LogMergePolicy) {
597 ((LogMergePolicy) mp).setMergeFactor(mergeFactor);
598 } else if (mp instanceo
[all...]
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/index/
H A DIndexWriter.java1267 public void setMergePolicy(MergePolicy mp) { argument
1269 if (mp == null)
1272 if (mergePolicy != mp)
1274 mergePolicy = mp;
1278 message("setMergePolicy " + mp);
1281 config.setMergePolicy(mp);
1478 final MergePolicy mp = mergePolicy;
1479 if (mp instanceof LogDocMergePolicy) {
1480 LogDocMergePolicy lmp = (LogDocMergePolicy) mp;

Completed in 1976 milliseconds