public class ZipNumCluster extends ZipNumIndex
ZipNumIndex.PageResult| Modifier and Type | Field and Description |
|---|---|
protected String |
blockSizesFile |
protected boolean |
cacheRemoteLoc |
protected int |
checkInterval |
protected SimpleDateFormat |
dateFormat |
protected boolean |
disabled |
static String |
EARLIEST_TIMESTAMP |
protected static CloseableIterator<String> |
EMPTY_ITERATOR |
protected Date |
endDate |
protected org.archive.format.gzip.zipnum.ZipNumCluster.BlockSize[] |
lastBlockSizes |
protected long |
lastModTime |
static String |
LATEST_TIMESTAMP |
protected int |
locCacheExpireMillis |
protected ConcurrentHashMap<String,org.archive.format.gzip.zipnum.ZipNumCluster.LocCacheEntry> |
locCacheMap |
protected int |
locCacheMaxDuration |
protected String |
locFile |
protected HashMap<String,String[]> |
locMap |
protected SeekableLineReaderFactory |
locReaderFactory |
protected String |
locRoot |
protected Date |
newEndDate |
protected boolean |
newIsDisabled |
protected String |
newLocRoot |
protected Date |
newStartDate |
static String |
OFF |
protected Date |
startDate |
protected long |
totalAdjustment |
protected Thread |
updaterThread |
binsearchBlockSize, blockLoader, cdxLinesPerBlock, cdxLinesTotalCount, DEFAULT_USE_NIO, pathRoot, readaheadSize, required, summary, summaryFile, useNio| Constructor and Description |
|---|
ZipNumCluster() |
createIndexWithBasePath, createIndexWithSummaryPath, endKey, extractLineCount, extractLongField, getBinsearchBlockSize, getBlockLoader, getCDXIterator, getCDXIterator, getCDXIterator, getCDXIterator, getCDXIterator, getCdxLinesPerBlock, getClusterRange, getEstimateSplitSize, getLastBlockCDXLineIterator, getNthLine, getNthPage, getNumLines, getNumLines, getPathRoot, getReadaheadSize, getSummary, getSummaryFile, getTotalLength, getTotalLines, isRequired, isUseNio, setBinsearchBlockSize, setBlockLoader, setCdxLinesPerBlock, setPathRoot, setReadaheadSize, setRequired, setSummaryFile, setUseNio, wrapEndIterator, wrapPrefix, wrapReverseIterator, wrapStartEndIterator, wrapStartIteratorprotected static final CloseableIterator<String> EMPTY_ITERATOR
protected SeekableLineReaderFactory locReaderFactory
protected String locFile
protected long lastModTime
protected int checkInterval
protected Thread updaterThread
public static final String EARLIEST_TIMESTAMP
public static final String LATEST_TIMESTAMP
public static final String OFF
protected SimpleDateFormat dateFormat
protected Date startDate
protected Date endDate
protected org.archive.format.gzip.zipnum.ZipNumCluster.BlockSize[] lastBlockSizes
protected String blockSizesFile
protected String locRoot
protected String newLocRoot
protected long totalAdjustment
protected Date newStartDate
protected Date newEndDate
protected boolean newIsDisabled
protected boolean disabled
protected ConcurrentHashMap<String,org.archive.format.gzip.zipnum.ZipNumCluster.LocCacheEntry> locCacheMap
protected boolean cacheRemoteLoc
protected int locCacheExpireMillis
protected int locCacheMaxDuration
public void init()
throws IOException
init in class ZipNumIndexIOExceptionprotected void syncLoad(long newModTime)
public String getLocRoot()
public String getLocFile()
public void setLocFile(String locFile)
public int getLocCacheExpireMillis()
public void setLocCacheExpireMillis(int locCacheExpireMillis)
public int getLocCacheMaxDuration()
public void setLocCacheMaxDuration(int locCacheMaxDuration)
public boolean isCacheRemoteLoc()
public void setCacheRemoteLoc(boolean cacheRemoteLoc)
public boolean dateRangeCheck(String key)
protected void loadLastBlockSizes(String filename)
protected void loadPartLocations(HashMap<String,String[]> destMap) throws IOException
IOExceptionpublic int getCheckInterval()
public void setCheckInterval(int checkInterval)
public long getTotalAdjustment()
public int getNumBlocks()
public long getLastBlockDiff(String startKey, int startPart, int endPart)
public long computeTotalLines()
public CloseableIterator<String> getCDXIterator(String key, String start, String end, ZipNumParams params) throws IOException
getCDXIterator in interface CDXInputSourcegetCDXIterator in class ZipNumIndexIOExceptionpublic CloseableIterator<String> getCDXIterator(String key, String prefix, boolean exact, ZipNumParams params) throws IOException
getCDXIterator in interface CDXInputSourcegetCDXIterator in class ZipNumIndexIOExceptionpublic boolean isDisabled()
Copyright © 2015 The International Internet Preservation Consortium. All Rights Reserved.