public final class SBIIndexMerger extends IndexMerger<SBIIndex>
out, partLengths
Constructor and Description |
---|
SBIIndexMerger(java.io.OutputStream out,
long headerLength)
Prepare to merge SBI indexes.
|
Modifier and Type | Method and Description |
---|---|
void |
finish(long dataFileLength)
Complete the index, and close the output stream.
|
void |
processIndex(SBIIndex index,
long partLength)
Add an index for a part of the data file to the merged index.
|
public SBIIndexMerger(java.io.OutputStream out, long headerLength)
out
- the stream to write the merged index toheaderLength
- the length of any header that precedes the first part of the data file with
an indexpublic void processIndex(SBIIndex index, long partLength)
processIndex
in class IndexMerger<SBIIndex>
index
- the index to mergepartLength
- the length of the part file corresponding to the index, in bytes.public void finish(long dataFileLength)
finish
in class IndexMerger<SBIIndex>
dataFileLength
- the length of the total data file, in bytes.