public class Merge extends Object implements BarrelReader
| Constructor and Description |
|---|
Merge()
Constructor for the Merge object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(BarrelReader bf)
Add another barrel reader into this class.
|
void |
close()
Closes this Merger and all the inner structures.
|
SequenceWithClose<DocumentData> |
getDocuments()
Return an enumeration of
DocumentData
objects. |
SequenceWithClose<IListReader> |
getILists()
Return an enumeration of
IListReaders. |
long |
length()
Return the length of the final product of this object.
|
void |
rewind()
Restart operation is not supported.
|
int |
size()
How many readers are merged?
|
public Merge()
BarrelReaders.public SequenceWithClose<DocumentData> getDocuments()
DocumentData
objects. The first element represents the metadata of document
number 0, and the last element has an index number equal to length()-1.
The collection is generated without gapsgetDocuments in interface BarrelReaderpublic SequenceWithClose<IListReader> getILists()
IListReaders.getILists in interface BarrelReaderpublic int size()
public void add(BarrelReader bf)
bf - BarrelReader passed to this Mergerpublic void close()
close in interface AutoCloseableclose in interface BarrelReaderpublic long length()
length in interface BarrelReaderpublic void rewind()
throws UnsupportedOperationException
rewind in interface BarrelReaderUnsupportedOperationExceptionCopyright © 2016 Egothor. All Rights Reserved.