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
IOExceptionpublic long length()
BarrelReaderlength in interface BarrelReaderpublic void rewind()
throws IOException
rewind in interface BarrelReaderIOExceptionpublic SequenceWithClose<IListReader> getILists()
BarrelReaderIListReaders. 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 BarrelReaderpublic SequenceWithClose<DocumentData> getDocuments()
BarrelReaderDocumentDatas. If the enumeration contains no
elements, then the Barrel was destroyed completely.getDocuments in interface BarrelReaderpublic void close()
BarrelReaderclose in interface AutoCloseableclose in interface BarrelReaderCopyright © 2016 Egothor. All Rights Reserved.