|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.terrier.structures.CompressingMetaIndex.InputStream
public static class CompressingMetaIndex.InputStream
An iterator for reading a MetaIndex as a stream
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
CompressingMetaIndex.InputStream(Index _index,
String structureName)
Constructs an instance of the class with |
|
CompressingMetaIndex.InputStream(Index _index,
String _structureName,
int _startingId,
int _endId)
Constructs an instance of the class with |
|
| Method Summary | |
|---|---|
void |
close()
|
int |
getIndex()
Return the position that we are at (entry number) |
boolean |
hasNext()
|
String[] |
next()
|
void |
remove()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public CompressingMetaIndex.InputStream(Index _index,
String _structureName,
int _startingId,
int _endId)
throws IOException
_index - _structureName - _startingId - _endId -
IOException
public CompressingMetaIndex.InputStream(Index _index,
String structureName)
throws IOException
_index - structureName -
IOException| Method Detail |
|---|
public boolean hasNext()
hasNext in interface Iterator<String[]>public int getIndex()
public String[] next()
next in interface Iterator<String[]>public void remove()
remove in interface Iterator<String[]>
public void close()
throws IOException
close in interface CloseableIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||