public class BDBIndex extends BDBRecordSet implements UpdatableSearchResultSource
| Constructor and Description |
|---|
BDBIndex() |
| Modifier and Type | Method and Description |
|---|---|
void |
addSearchResults(Iterator<CaptureSearchResult> itr,
UrlCanonicalizer canonicalizer) |
void |
cleanup(org.archive.util.iterator.CloseableIterator<CaptureSearchResult> c) |
String |
getBdbName() |
String |
getBdbPath() |
org.archive.util.iterator.CloseableIterator<CaptureSearchResult> |
getPrefixIterator(String prefix) |
org.archive.util.iterator.CloseableIterator<CaptureSearchResult> |
getPrefixReverseIterator(String prefix) |
void |
init() |
static void |
main(String[] args) |
void |
setBdbName(String bdbName) |
void |
setBdbPath(String bdbPath) |
void |
shutdown() |
bytesToString, delete, get, getDbName, getPath, initializeDB, insertRecords, put, recordIterator, recordIterator, setDbName, setPath, shutdownDB, stringToBytespublic void init()
throws IOException,
ConfigurationException
com.sleepycat.je.DatabaseExceptionConfigurationExceptionIOExceptionpublic org.archive.util.iterator.CloseableIterator<CaptureSearchResult> getPrefixIterator(String prefix) throws ResourceIndexNotAvailableException
getPrefixIterator in interface SearchResultSourceResourceIndexNotAvailableExceptionpublic org.archive.util.iterator.CloseableIterator<CaptureSearchResult> getPrefixReverseIterator(String prefix) throws ResourceIndexNotAvailableException
getPrefixReverseIterator in interface SearchResultSourceResourceIndexNotAvailableExceptionpublic void cleanup(org.archive.util.iterator.CloseableIterator<CaptureSearchResult> c) throws IOException
cleanup in interface SearchResultSourceIOExceptionpublic void addSearchResults(Iterator<CaptureSearchResult> itr, UrlCanonicalizer canonicalizer) throws IOException
addSearchResults in interface UpdatableSearchResultSourceIOExceptionpublic static void main(String[] args)
args - public String getBdbPath()
public void setBdbPath(String bdbPath)
bdbPath - the bdbPath to setpublic String getBdbName()
public void setBdbName(String bdbName)
bdbName - the bdbName to setpublic void shutdown()
throws IOException
shutdown in interface SearchResultSourceIOExceptionCopyright © 2005–2015 IIPC. All rights reserved.