public class WikipediaImport extends Benchmark
| Constructor and Description |
|---|
WikipediaImport(File dump,
boolean flat,
boolean doReport) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
batchDone(Session session,
long start,
int count) |
int |
importWikipedia(Session session) |
void |
issueHaltImport()
will issue an halt request for the
importWikipedia(Session) so that it will stop
importing. |
protected void |
pageAdded(String title,
String text) |
void |
run(Iterable<RepositoryFixture> fixtures)
Runs this benchmark against all the given repository fixtures.
|
protected Repository[] |
setupCluster(RepositoryFixture fixture) |
protected void |
tearDown(RepositoryFixture fixture) |
public WikipediaImport(File dump, boolean flat, boolean doReport)
public void run(Iterable<RepositoryFixture> fixtures)
Benchmarkprotected void tearDown(RepositoryFixture fixture) throws IOException
IOExceptionprotected Repository[] setupCluster(RepositoryFixture fixture) throws Exception
Exceptionpublic void issueHaltImport()
importWikipedia(Session) so that it will stop
importing.protected void batchDone(Session session, long start, int count) throws RepositoryException
RepositoryExceptionCopyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.