mirror of https://github.com/apache/lucene.git
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:
parent
7402c50058
commit
74a065a57f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue