fix collation benchmark to use byte terms

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1087529 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2011-04-01 00:47:16 +00:00
parent 7402c50058
commit 74a065a57f
1 changed files with 3 additions and 2 deletions

View File

@ -24,6 +24,7 @@ import java.util.StringTokenizer;
import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.benchmark.byTask.PerfRunData;
import org.apache.lucene.util.Version;
/**
* Task to support benchmarking collation.
@ -65,8 +66,8 @@ public class NewCollationAnalyzerTask extends PerfTask {
final Class<? extends Analyzer> clazz = Class.forName(impl.className)
.asSubclass(Analyzer.class);
Constructor<? extends Analyzer> ctor = clazz.getConstructor(collatorClazz);
return ctor.newInstance(collator);
Constructor<? extends Analyzer> ctor = clazz.getConstructor(Version.class, collatorClazz);
return ctor.newInstance(Version.LUCENE_CURRENT, collator);
}
@Override