public class MVStoreCrawlDataStoreFactory extends Object implements ICrawlDataStoreFactory, IXMLConfigurable
H2 MVStore crawl data store factory (http://h2database.com/html/mvstore.html).
Since 1.10.0, it possible to specify advanced MVStore configuration. It is
recommended you do not play with those unless you know what you are doing.
For information about these advanced options, have a look at methods offered
on MVStore.Builder
or
its source.
<crawlDataStoreFactory class="com.norconex.collector.core.data.store.impl.mvstore.MVStoreCrawlDataStoreFactory"> <!-- For advanced MVStore configuration: --> <pageSplitSize>(number)</pageSplitSize> <compress>(number: 0=none; 1=normal; 2=high)</compress> <cacheConcurrency>(number)</cacheConcurrency> <cacheSize>(number)</cacheSize> <autoCompactFillRate>(number)</autoCompactFillRate> <autoCommitBufferSize>(number)</autoCommitBufferSize> <autoCommitDelay>(number)</autoCommitDelay> </crawlDataStoreFactory>
Constructor and Description |
---|
MVStoreCrawlDataStoreFactory() |
Modifier and Type | Method and Description |
---|---|
ICrawlDataStore |
createCrawlDataStore(ICrawlerConfig config,
boolean resume)
Creates a new crawl data store.
|
boolean |
equals(Object other) |
MVStoreConfig |
getMVStoreConfig() |
int |
hashCode() |
void |
loadFromXML(Reader in) |
void |
saveToXML(Writer out) |
String |
toString() |
public ICrawlDataStore createCrawlDataStore(ICrawlerConfig config, boolean resume)
ICrawlDataStoreFactory
createCrawlDataStore
in interface ICrawlDataStoreFactory
config
- crawler configurationresume
- whether the crawler was started or resumedpublic MVStoreConfig getMVStoreConfig()
public void loadFromXML(Reader in) throws IOException
loadFromXML
in interface IXMLConfigurable
IOException
public void saveToXML(Writer out) throws IOException
saveToXML
in interface IXMLConfigurable
IOException
Copyright © 2014–2021 Norconex Inc.. All rights reserved.