public class StreamReader extends Object implements BarrelReader
Constructor and Description |
---|
StreamReader(DataInput in) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close this BarrelReader.
|
SequenceWithClose<DocumentData> |
getDocuments()
Returns an enumeration of all active documents.
|
SequenceWithClose<IListReader> |
getILists()
Returns an enumeration of all inverted lists.
|
long |
length()
Returns number of active documents in this Barrel.
|
void |
rewind()
Restart this BarrelReader so that the documents can be read again.
|
public StreamReader(DataInput in) throws IOException
IOException
public long length()
BarrelReader
length
in interface BarrelReader
public void rewind() throws IOException
rewind
in interface BarrelReader
IOException
public SequenceWithClose<IListReader> getILists()
BarrelReader
IListReader
s. The readers must be initialized
and the reader can represent a free list, that is, an IListReader that
has no items can be returned.getILists
in interface BarrelReader
public SequenceWithClose<DocumentData> getDocuments()
BarrelReader
DocumentData
s. If the enumeration contains no
elements, then the Barrel was destroyed completely.getDocuments
in interface BarrelReader
public void close()
BarrelReader
close
in interface AutoCloseable
close
in interface BarrelReader
Copyright © 2016 Egothor. All Rights Reserved.