public static class CompressingMetaIndex.InputStream extends Object implements Iterator<String[]>, Closeable
Modifier and Type | Field and Description |
---|---|
protected int |
compressionLevel |
protected long |
fileLength |
protected Inflater |
inflater |
protected int[] |
keyByteOffset |
protected int |
keyCount |
protected long |
lastOffset |
protected int |
recordLength |
protected int[] |
valueByteLengths |
Constructor and Description |
---|
InputStream(IndexOnDisk _index,
String structureName)
Constructs an instance of the class with
|
InputStream(IndexOnDisk _index,
String _structureName,
int _startingId,
int _endId)
Constructs an instance of the class with
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
int |
getIndex()
Return the position that we are at (entry number)
|
boolean |
hasNext() |
String[] |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
protected final int compressionLevel
protected final int recordLength
protected Inflater inflater
protected int keyCount
protected int[] keyByteOffset
protected int[] valueByteLengths
protected long lastOffset
protected long fileLength
public InputStream(IndexOnDisk _index, String _structureName, int _startingId, int _endId) throws IOException
_index
- _structureName
- _startingId
- _endId
- IOException
public InputStream(IndexOnDisk _index, String structureName) throws IOException
_index
- structureName
- IOException
public int getIndex()
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Terrier Information Retrieval Platform 5.1. Copyright © 2004-2019, University of Glasgow