|
Terrier IR Platform 2.2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uk.ac.gla.terrier.structures.indexing.singlepass.RunsMerger uk.ac.gla.terrier.structures.indexing.singlepass.hadoop.HadoopRunsMerger
public class HadoopRunsMerger
Nested Class Summary |
---|
Nested classes/interfaces inherited from class uk.ac.gla.terrier.structures.indexing.singlepass.RunsMerger |
---|
RunsMerger.PostingComparator |
Constructor Summary | |
---|---|
HadoopRunsMerger(RunIteratorFactory _runsSource)
|
Method Summary | |
---|---|
void |
beginMerge(java.util.LinkedList<MapData> _mapData)
Alternate Merge operation for merging a linked list of runs of the form Hadoop_MapData. |
void |
endMerge(LexiconOutputStream lexStream)
Ends the merging phase, writes the last entry and closes the streams. |
void |
mergeOne(LexiconOutputStream lexStream)
Mergers one term in the runs. |
Methods inherited from class uk.ac.gla.terrier.structures.indexing.singlepass.RunsMerger |
---|
beginMerge, getBitOffset, getBos, getByteOffset, getLastDocFreq, getLastFreq, getLastTermWritten, getNumberOfPointers, getNumberOfTerms, isDone, setBos, setLastTermWritten |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HadoopRunsMerger(RunIteratorFactory _runsSource)
Method Detail |
---|
public void beginMerge(java.util.LinkedList<MapData> _mapData)
_mapData
- - information about the number of documents per map and run. One element for every map.
java.io.IOException
public void endMerge(LexiconOutputStream lexStream)
RunsMerger
endMerge
in class RunsMerger
lexStream
- LexiconOutputStream used to write the lexicon.public void mergeOne(LexiconOutputStream lexStream) throws java.lang.Exception
RunsMerger
mergeOne
in class RunsMerger
lexStream
- LexiconOutputStream used to write the lexicon.
java.io.IOException
- if an I/O error occurs.
java.lang.Exception
|
Terrier IR Platform 2.2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |