|
||||||||||
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.IndexInverter.DocumentPartition
public class IndexInverter.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 | |
---|---|
IndexInverter.DocumentPartition()
|
Method Summary | |
---|---|
void |
createDocuments(DiskPartition partition)
Create the empty collection of documents to be maintained by this DocumentPartition |
com.sun.labs.minion.test.regression.IndexInverter.Document |
getDocument(int documentId)
Returns the document whose identifier is documentId |
void |
outputDocuments(java.lang.String outputDir)
Write out the documents into the output directory |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IndexInverter.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.IndexInverter.Document getDocument(int documentId)
documentId
- the integer identifier for the document (starts at 1)
public void outputDocuments(java.lang.String outputDir)
outputDir
- a String identifying the directory into which the recreated documents should be
written
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |