| java.lang.Object org.apache.lucene.benchmark.AbstractBenchmarker org.apache.lucene.benchmark.standard.StandardBenchmarker
Method Summary | |
public TestData[] | benchmark(File workingDir, BenchmarkOptions opts) | public static Query[] | createQueries(List qs, Analyzer a) Parse the strings containing Lucene queries. | public static void | getAllFiles(File srcDir, FileFilter filter, List allFiles) | protected File | getSourceDirectory(File workingDir) | protected Document | makeDocument(File in, String[] tags, boolean stored, boolean tokenized, boolean tfv) | protected void | makeIndex(TestRunData trd, File srcDir, IndexWriter iw, boolean stored, boolean tokenized, boolean tfv, StandardOptions options) Make index, and collect time data. | protected void | reset(File indexDir) Remove existing index. | protected void | runBenchmark(TestData params, StandardOptions options) Run benchmark using supplied parameters. | protected void | saveStream(InputStream is, File out, boolean closeInput) Save a stream to a file. |
StandardBenchmarker | public StandardBenchmarker()(Code) | | |
createQueries | public static Query[] createQueries(List qs, Analyzer a)(Code) | | Parse the strings containing Lucene queries.
Parameters: qs - array of strings containing query expressions Parameters: a - analyzer to use when parsing queries array of Lucene queries |
getSourceDirectory | protected File getSourceDirectory(File workingDir)(Code) | | |
makeDocument | protected Document makeDocument(File in, String[] tags, boolean stored, boolean tokenized, boolean tfv) throws Exception(Code) | | Parse the Reuters SGML and index:
Date, Title, Dateline, Body
Parameters: in - input file Lucene document |
makeIndex | protected void makeIndex(TestRunData trd, File srcDir, IndexWriter iw, boolean stored, boolean tokenized, boolean tfv, StandardOptions options) throws Exception(Code) | | Make index, and collect time data.
Parameters: trd - run data to populate Parameters: srcDir - directory with source files Parameters: iw - index writer, already open Parameters: stored - store values of fields Parameters: tokenized - tokenize fields Parameters: tfv - store term vectors throws: Exception - |
saveStream | protected void saveStream(InputStream is, File out, boolean closeInput) throws Exception(Code) | | Save a stream to a file.
Parameters: is - input stream Parameters: out - output file Parameters: closeInput - if true, close the input stream when done. throws: Exception - |
|
|