public class WikipediaImport extends Benchmark
Constructor and Description |
---|
WikipediaImport(File dump,
boolean flat,
boolean doReport) |
Modifier and Type | Method and Description |
---|---|
protected void |
batchDone(javax.jcr.Session session,
long start,
int count) |
int |
importWikipedia(javax.jcr.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 javax.jcr.Repository[] |
setupCluster(RepositoryFixture fixture) |
protected void |
tearDown(RepositoryFixture fixture) |
public WikipediaImport(File dump, boolean flat, boolean doReport)
public void run(Iterable<RepositoryFixture> fixtures)
Benchmark
protected void tearDown(RepositoryFixture fixture) throws IOException
IOException
protected javax.jcr.Repository[] setupCluster(RepositoryFixture fixture) throws Exception
Exception
public void issueHaltImport()
importWikipedia(Session)
so that it will stop
importing.public int importWikipedia(javax.jcr.Session session) throws Exception
Exception
protected void batchDone(javax.jcr.Session session, long start, int count) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
Copyright © 2012-2016 The Apache Software Foundation. All Rights Reserved.