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
IListReader s. |
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()
BarrelReader
s.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 BarrelReader
public SequenceWithClose<IListReader> getILists()
IListReader
s.getILists
in interface BarrelReader
public int size()
public void add(BarrelReader bf)
bf
- BarrelReader passed to this Mergerpublic void close()
close
in interface AutoCloseable
close
in interface BarrelReader
public long length()
length
in interface BarrelReader
public void rewind() throws UnsupportedOperationException
rewind
in interface BarrelReader
UnsupportedOperationException
Copyright © 2016 Egothor. All Rights Reserved.