|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BarrelReader
The BarrelReader interface that can read a Barrel structure. A BarrelReader
returns just active (not removed) documents and all inverted lists without
items related to removed documents. You must read/iterate over all
documents first (getDocuments()
), then you can read inverted lists (getILists()
).
Method Summary | |
---|---|
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. |
Method Detail |
---|
SequenceWithClose<IListReader> getILists()
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.
SequenceWithClose<DocumentData> getDocuments()
DocumentData
s. If the enumeration contains no
elements, then the Barrel was destroyed completely.
long length()
void close()
void rewind() throws java.io.IOException, java.lang.UnsupportedOperationException
java.io.IOException
java.lang.UnsupportedOperationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |