public class ZiplinesSearchResultSource extends Object implements SearchResultSource
That implementation provides support for stream loading of blocks, as well as summary files
from http and hdfs as well as local filesystem| Modifier and Type | Field and Description |
|---|---|
protected int |
timestampDedupLength
Deprecated.
|
| Constructor and Description |
|---|
ZiplinesSearchResultSource()
Deprecated.
|
ZiplinesSearchResultSource(CDXFormat format)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected org.archive.util.iterator.CloseableIterator<CaptureSearchResult> |
adaptIterator(Iterator<String> itr)
Deprecated.
|
void |
cleanup(org.archive.util.iterator.CloseableIterator<CaptureSearchResult> c)
Deprecated.
|
BlockLoader |
getBlockLoader()
Deprecated.
|
String |
getChunkIndexPath()
Deprecated.
|
String |
getChunkMapPath()
Deprecated.
|
CDXFormat |
getFormat()
Deprecated.
|
int |
getMaxBlocks()
Deprecated.
|
org.archive.util.iterator.CloseableIterator<CaptureSearchResult> |
getPrefixIterator(String prefix)
Deprecated.
|
org.archive.util.iterator.CloseableIterator<CaptureSearchResult> |
getPrefixReverseIterator(String prefix)
Deprecated.
|
Iterator<String> |
getStringPrefixIterator(String prefix)
Deprecated.
|
int |
getTimestampDedupLength()
Deprecated.
|
Iterator<String> |
getZiplinesChunkIterator(String prefix,
String urlkey)
Deprecated.
|
void |
init()
Deprecated.
|
static void |
main(String[] args)
Deprecated.
|
void |
setBlockLoader(BlockLoader blockLoader)
Deprecated.
|
void |
setChunkIndexPath(String chunkIndexPath)
Deprecated.
|
void |
setChunkMapPath(String chunkMapPath)
Deprecated.
|
void |
setFormat(CDXFormat format)
Deprecated.
|
void |
setMaxBlocks(int maxBlocks)
Deprecated.
|
void |
setTimestampDedupLength(int timestampDedupLength)
Deprecated.
|
void |
shutdown()
Deprecated.
|
public ZiplinesSearchResultSource()
public ZiplinesSearchResultSource(CDXFormat format)
public int getTimestampDedupLength()
public void setTimestampDedupLength(int timestampDedupLength)
public void init()
throws IOException
IOExceptionprotected org.archive.util.iterator.CloseableIterator<CaptureSearchResult> adaptIterator(Iterator<String> itr) throws IOException
IOExceptionpublic void cleanup(org.archive.util.iterator.CloseableIterator<CaptureSearchResult> c) throws IOException
cleanup in interface SearchResultSourceIOExceptionpublic org.archive.util.iterator.CloseableIterator<CaptureSearchResult> getPrefixIterator(String prefix) throws ResourceIndexNotAvailableException
getPrefixIterator in interface SearchResultSourceResourceIndexNotAvailableExceptionpublic Iterator<String> getZiplinesChunkIterator(String prefix, String urlkey) throws ResourceIndexNotAvailableException, IOException
public Iterator<String> getStringPrefixIterator(String prefix) throws ResourceIndexNotAvailableException, IOException
public org.archive.util.iterator.CloseableIterator<CaptureSearchResult> getPrefixReverseIterator(String prefix) throws ResourceIndexNotAvailableException
getPrefixReverseIterator in interface SearchResultSourceResourceIndexNotAvailableExceptionpublic void shutdown()
throws IOException
shutdown in interface SearchResultSourceIOExceptionpublic CDXFormat getFormat()
public void setFormat(CDXFormat format)
format - the format to setpublic String getChunkIndexPath()
public void setChunkIndexPath(String chunkIndexPath)
chunkIndexPath - the chunkIndexPath to setpublic String getChunkMapPath()
public void setChunkMapPath(String chunkMapPath)
chunkMapPath - the chunkMapPath to setpublic int getMaxBlocks()
public void setMaxBlocks(int maxBlocks)
maxBlocks - the maxBlocks to setpublic BlockLoader getBlockLoader()
public void setBlockLoader(BlockLoader blockLoader)
blockLoader - the blockLoader to setpublic static void main(String[] args)
args - Copyright © 2005–2015 IIPC. All rights reserved.