|
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.DocumentIndexBuilder uk.ac.gla.terrier.structures.indexing.singlepass.hadoop.SimpleDocumentIndexBuilder
public class SimpleDocumentIndexBuilder
A simple DocumentIndexBuilder. Only records Docno and length of document
Constructor Summary | |
---|---|
SimpleDocumentIndexBuilder(Index i)
|
Method Summary | |
---|---|
void |
addEntryToBuffer(java.lang.String docno,
int docLength)
Adds to the index a new entry, giving to it the next available document id. |
void |
addEntryToBuffer(java.lang.String docno,
int docLength,
FilePosition directIndexOffset)
Adds to the index a new entry, giving to it the next available document id. |
void |
finishedCollections()
Closes the underlying file after finished processing the collections. |
Methods inherited from class uk.ac.gla.terrier.structures.indexing.DocumentIndexBuilder |
---|
close |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleDocumentIndexBuilder(Index i)
Method Detail |
---|
public void addEntryToBuffer(java.lang.String docno, int docLength, FilePosition directIndexOffset) throws java.io.IOException
DocumentIndexBuilder
addEntryToBuffer
in class DocumentIndexBuilder
docno
- String the document number.docLength
- int the number of indexed tokens in the document.directIndexOffset
- FilePosition the ending position of the
document's entry in the direct index.
java.io.IOException
- Throws an exception in the
case of an IO error.public void addEntryToBuffer(java.lang.String docno, int docLength) throws java.io.IOException
DocumentIndexBuilder
addEntryToBuffer
in class DocumentIndexBuilder
docno
- String the document number.docLength
- int the number of indexed tokens in the document.
java.io.IOException
- Throws an exception in the
case of an IO error.public void finishedCollections()
DocumentIndexBuilder
finishedCollections
in class DocumentIndexBuilder
|
Terrier IR Platform 2.2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |