public final class CRAIIndexMerger extends IndexMerger<CRAIIndex>
CRAIIndexMerger.out, partLengths| Constructor and Description |
|---|
CRAIIndexMerger(java.io.OutputStream out,
long headerLength) |
| Modifier and Type | Method and Description |
|---|---|
void |
finish(long dataFileLength)
Finish merging the indexes, and close the output stream.
|
void |
processIndex(CRAIIndex index,
long partLength)
Process the next index and add to the merged index.
|
public CRAIIndexMerger(java.io.OutputStream out,
long headerLength)
throws java.io.IOException
java.io.IOExceptionpublic void processIndex(CRAIIndex index, long partLength)
IndexMergerprocessIndex in class IndexMerger<CRAIIndex>index - the index to mergepartLength - the length of the part file corresponding to the index, in bytes.public void finish(long dataFileLength)
throws java.io.IOException
IndexMergerfinish in class IndexMerger<CRAIIndex>dataFileLength - the length of the total data file, in bytes.java.io.IOException - if an error occurs