|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.labs.minion.test.regression.DVPostingsTester.DocumentPartition
public class DVPostingsTester.DocumentPartition
The inner class DocumentPartition is an in-memory lightweight simulation of a DiskPartition. It provides the ability to maintain a collection of documents.
Constructor Summary | |
---|---|
DVPostingsTester.DocumentPartition()
|
Method Summary | |
---|---|
void |
compareFrequenciesFromDocumentIterator(java.util.Iterator documentIterator,
DiskPartition partition)
Compare the Frequencies of the document vector postings with those accumulated from the main dictionary |
void |
createDocuments(DiskPartition partition)
Create the empty collection of documents to be maintained by this DocumentPartition |
void |
createFrequenciesFromMainDictionaryIterator(DictionaryIterator mainDictionaryIterator,
DiskPartition partition)
Accumulate the frequencies from the main dictionary |
com.sun.labs.minion.test.regression.DVPostingsTester.Document |
getDocument(int documentId)
Returns the document whose identifier is documentId |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DVPostingsTester.DocumentPartition()
Method Detail |
---|
public void createDocuments(DiskPartition partition)
partition
- a DiskPartition, which can be asked for the documents it containspublic com.sun.labs.minion.test.regression.DVPostingsTester.Document getDocument(int documentId)
documentId
- the integer identifier for the document (starts at 1)
public void createFrequenciesFromMainDictionaryIterator(DictionaryIterator mainDictionaryIterator, DiskPartition partition)
mainDictionaryIterator
- an iterator over the main dictionarypartition
- the partition that contains the documents whose terms are in the main dictionarypublic void compareFrequenciesFromDocumentIterator(java.util.Iterator documentIterator, DiskPartition partition)
documentIterator
- an iterator that contains all the documents in a partitionpartition
- the partition containing the documents available from the documentIterator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |