org.archive.wayback.resourceindex.cdx
Class CDXIndex
java.lang.Object
org.archive.wayback.util.flatfile.FlatFile
org.archive.wayback.resourceindex.cdx.CDXIndex
- All Implemented Interfaces:
- SearchResultSource
public class CDXIndex
- extends FlatFile
- implements SearchResultSource
- Version:
- $Date: 2008-07-01 16:33:35 -0700 (Tue, 01 Jul 2008) $, $Revision: 2364 $
- Author:
- brad
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CDXIndex
public CDXIndex()
getPrefixIterator
public CloseableIterator<CaptureSearchResult> getPrefixIterator(java.lang.String prefix)
throws ResourceIndexNotAvailableException
- Specified by:
getPrefixIterator in interface SearchResultSource
- Returns:
- CleanableIterator that will return SearchResults beginning with prefix
argument, with subsequent next() calls returning subsequent
results.
- Throws:
ResourceIndexNotAvailableException
getPrefixReverseIterator
public CloseableIterator<CaptureSearchResult> getPrefixReverseIterator(java.lang.String prefix)
throws ResourceIndexNotAvailableException
- Specified by:
getPrefixReverseIterator in interface SearchResultSource
- Returns:
- CleanableIterator that will return SearchResults starting *before* prefix
argument, with subsequent next() calls returning previous
results.
- Throws:
ResourceIndexNotAvailableException
getUrlIterator
public java.util.Iterator<CaptureSearchResult> getUrlIterator(java.lang.String prefix)
throws java.io.IOException
- Parameters:
prefix -
- Returns:
- Iterator of CaptureSearchResult of records starting with prefix
- Throws:
java.io.IOException
getClosestIterator
public java.util.Iterator<CaptureSearchResult> getClosestIterator(java.lang.String prefix,
java.util.Date wantDate)
throws java.io.IOException
- Parameters:
prefix - wantTS -
- Returns:
- Iterator of results in closest order to wantTS
- Throws:
java.io.IOException
cleanup
public void cleanup(CloseableIterator<CaptureSearchResult> c)
throws java.io.IOException
- Specified by:
cleanup in interface SearchResultSource
- Throws:
java.io.IOException
shutdown
public void shutdown()
throws java.io.IOException
- Specified by:
shutdown in interface SearchResultSource
- Throws:
java.io.IOException
Copyright © 2005-2009 Internet Archive. All Rights Reserved.