Class CDXFile
java.lang.Object
org.archive.util.binsearch.SortedTextFile
org.archive.format.cdx.CDXFile
- All Implemented Interfaces:
CDXInputSource
-
Nested Class Summary
Nested classes/interfaces inherited from class org.archive.util.binsearch.SortedTextFile
SortedTextFile.CachedStringIterator, SortedTextFile.DefaultComparator, SortedTextFile.NumericComparator -
Field Summary
Fields inherited from class org.archive.util.binsearch.SortedTextFile
binsearchBlockSize, defaultComparator, factory, numericComparator -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BufferedReadercreateStreamingLineReader(String uri, boolean gzipped) static FiledecodeGZToTemp(String uriGZ) getCDXIterator(String key, String prefix, boolean exact, ZipNumParams params) getCDXIterator(String key, String start, String end, ZipNumParams params) longstatic SeekableLineReaderFactorygetUriFactory(String uri, boolean decodeToTemp) Methods inherited from class org.archive.util.binsearch.SortedTextFile
binaryFindOffset, getBinsearchBlockSize, getLastLine, getNthSplit, getRange, getRecordIterator, getRecordIterator, getRecordIterator, getRecordIteratorLT, getSLR, getSplitIterator, getStartEndOffsets, reloadFactory, setBinsearchBlockSize, setFactory
-
Constructor Details
-
CDXFile
- Throws:
IOException
-
CDXFile
-
-
Method Details
-
getCDXIterator
public CloseableIterator<String> getCDXIterator(String key, String start, String end, ZipNumParams params) throws IOException - Specified by:
getCDXIteratorin interfaceCDXInputSource- Throws:
IOException
-
getCDXIterator
public CloseableIterator<String> getCDXIterator(String key, String prefix, boolean exact, ZipNumParams params) throws IOException - Specified by:
getCDXIteratorin interfaceCDXInputSource- Throws:
IOException
-
getUriFactory
public static SeekableLineReaderFactory getUriFactory(String uri, boolean decodeToTemp) throws IOException - Throws:
IOException
-
decodeGZToTemp
- Throws:
IOException
-
createStreamingLineReader
public static BufferedReader createStreamingLineReader(String uri, boolean gzipped) throws IOException - Throws:
IOException
-
getTotalLines
public long getTotalLines()- Specified by:
getTotalLinesin interfaceCDXInputSource
-