public class ZipNumCluster extends ZipNumIndex
ZipNumIndex.PageResult| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
blockSizesFile |
protected boolean |
cacheRemoteLoc |
protected int |
checkInterval |
protected java.text.SimpleDateFormat |
dateFormat |
protected boolean |
disabled |
static java.lang.String |
EARLIEST_TIMESTAMP |
protected static CloseableIterator<java.lang.String> |
EMPTY_ITERATOR |
protected java.util.Date |
endDate |
protected org.archive.format.gzip.zipnum.ZipNumCluster.BlockSize[] |
lastBlockSizes |
protected long |
lastModTime |
static java.lang.String |
LATEST_TIMESTAMP |
protected int |
locCacheExpireMillis |
protected java.util.concurrent.ConcurrentHashMap<java.lang.String,org.archive.format.gzip.zipnum.ZipNumCluster.LocCacheEntry> |
locCacheMap |
protected int |
locCacheMaxDuration |
protected java.lang.String |
locFile |
protected java.util.HashMap<java.lang.String,java.lang.String[]> |
locMap |
protected SeekableLineReaderFactory |
locReaderFactory |
protected java.lang.String |
locRoot |
protected java.util.Date |
newEndDate |
protected boolean |
newIsDisabled |
protected java.lang.String |
newLocRoot |
protected java.util.Date |
newStartDate |
static java.lang.String |
OFF |
protected java.util.Date |
startDate |
protected long |
totalAdjustment |
protected java.lang.Thread |
updaterThread |
binsearchBlockSize, blockLoader, cdxLinesPerBlock, cdxLinesTotalCount, DEFAULT_USE_NIO, pathRoot, readaheadSize, required, summary, summaryFile, useNio| Constructor and Description |
|---|
ZipNumCluster() |
| Modifier and Type | Method and Description |
|---|---|
long |
computeTotalLines() |
boolean |
dateRangeCheck(java.lang.String key) |
CloseableIterator<java.lang.String> |
getCDXIterator(java.lang.String key,
java.lang.String prefix,
boolean exact,
ZipNumParams params) |
CloseableIterator<java.lang.String> |
getCDXIterator(java.lang.String key,
java.lang.String start,
java.lang.String end,
ZipNumParams params) |
int |
getCheckInterval() |
long |
getLastBlockDiff(java.lang.String startKey,
int startPart,
int endPart) |
java.lang.String[] |
getLocations(java.lang.String key) |
int |
getLocCacheExpireMillis() |
int |
getLocCacheMaxDuration() |
java.lang.String |
getLocFile() |
java.lang.String |
getLocRoot() |
int |
getNumBlocks() |
long |
getTotalAdjustment() |
void |
init() |
boolean |
isCacheRemoteLoc() |
boolean |
isDisabled() |
protected void |
loadLastBlockSizes(java.lang.String filename) |
protected void |
loadPartLocations(java.util.HashMap<java.lang.String,java.lang.String[]> destMap) |
protected java.lang.String |
locCacheGet(java.lang.String key) |
protected void |
locCachePut(java.lang.String key,
java.lang.String loc) |
protected java.util.Date |
parseDate(java.lang.String date) |
void |
setCacheRemoteLoc(boolean cacheRemoteLoc) |
void |
setCheckInterval(int checkInterval) |
void |
setLocCacheExpireMillis(int locCacheExpireMillis) |
void |
setLocCacheMaxDuration(int locCacheMaxDuration) |
void |
setLocFile(java.lang.String locFile) |
protected void |
syncLoad(long newModTime) |
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<java.lang.String> EMPTY_ITERATOR
protected java.util.HashMap<java.lang.String,java.lang.String[]> locMap
protected SeekableLineReaderFactory locReaderFactory
protected java.lang.String locFile
protected long lastModTime
protected int checkInterval
protected java.lang.Thread updaterThread
public static final java.lang.String EARLIEST_TIMESTAMP
public static final java.lang.String LATEST_TIMESTAMP
public static final java.lang.String OFF
protected java.text.SimpleDateFormat dateFormat
protected java.util.Date startDate
protected java.util.Date endDate
protected org.archive.format.gzip.zipnum.ZipNumCluster.BlockSize[] lastBlockSizes
protected java.lang.String blockSizesFile
protected java.lang.String locRoot
protected java.lang.String newLocRoot
protected long totalAdjustment
protected java.util.Date newStartDate
protected java.util.Date newEndDate
protected boolean newIsDisabled
protected boolean disabled
protected java.util.concurrent.ConcurrentHashMap<java.lang.String,org.archive.format.gzip.zipnum.ZipNumCluster.LocCacheEntry> locCacheMap
protected boolean cacheRemoteLoc
protected int locCacheExpireMillis
protected int locCacheMaxDuration
public void init()
throws java.io.IOException
init in class ZipNumIndexjava.io.IOExceptionprotected void syncLoad(long newModTime)
public java.lang.String[] getLocations(java.lang.String key)
public java.lang.String getLocRoot()
public java.lang.String getLocFile()
public void setLocFile(java.lang.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)
protected java.util.Date parseDate(java.lang.String date)
public boolean dateRangeCheck(java.lang.String key)
protected void loadLastBlockSizes(java.lang.String filename)
protected void loadPartLocations(java.util.HashMap<java.lang.String,java.lang.String[]> destMap)
throws java.io.IOException
java.io.IOExceptionpublic int getCheckInterval()
public void setCheckInterval(int checkInterval)
public long getTotalAdjustment()
public int getNumBlocks()
public long getLastBlockDiff(java.lang.String startKey,
int startPart,
int endPart)
public long computeTotalLines()
public CloseableIterator<java.lang.String> getCDXIterator(java.lang.String key, java.lang.String start, java.lang.String end, ZipNumParams params) throws java.io.IOException
getCDXIterator in interface CDXInputSourcegetCDXIterator in class ZipNumIndexjava.io.IOExceptionpublic CloseableIterator<java.lang.String> getCDXIterator(java.lang.String key, java.lang.String prefix, boolean exact, ZipNumParams params) throws java.io.IOException
getCDXIterator in interface CDXInputSourcegetCDXIterator in class ZipNumIndexjava.io.IOExceptionpublic boolean isDisabled()
protected java.lang.String locCacheGet(java.lang.String key)
protected void locCachePut(java.lang.String key,
java.lang.String loc)
Copyright © 2019 The International Internet Preservation Consortium. All Rights Reserved.