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, stringToBytes
public void init() throws IOException, ConfigurationException
com.sleepycat.je.DatabaseException
ConfigurationException
IOException
public org.archive.util.iterator.CloseableIterator<CaptureSearchResult> getPrefixIterator(String prefix) throws ResourceIndexNotAvailableException
getPrefixIterator
in interface SearchResultSource
ResourceIndexNotAvailableException
public org.archive.util.iterator.CloseableIterator<CaptureSearchResult> getPrefixReverseIterator(String prefix) throws ResourceIndexNotAvailableException
getPrefixReverseIterator
in interface SearchResultSource
ResourceIndexNotAvailableException
public void cleanup(org.archive.util.iterator.CloseableIterator<CaptureSearchResult> c) throws IOException
cleanup
in interface SearchResultSource
IOException
public void addSearchResults(Iterator<CaptureSearchResult> itr, UrlCanonicalizer canonicalizer) throws IOException
addSearchResults
in interface UpdatableSearchResultSource
IOException
public 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 SearchResultSource
IOException
Copyright © 2005–2015 IIPC. All rights reserved.