|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.nutch.db.EditSectionGroupReader
The EditSectionGroupReader will read in an edits-file that was built in a distributed way. It acts as a "meta-SequenceFile", incorporating knowledge of Section numbering as well as process-synchronization. If you had different ideas about how to make the db-edits distributed (apart from using NFS), you'd implement them here.
Constructor Summary | |
EditSectionGroupReader(NutchFileSystem nfs,
String label,
int readerNum,
int totalMachines)
Open the EditSectionGroupReader for the appropriate file. |
Method Summary | |
void |
delete()
Get rid of the edits encapsulated by this file. |
void |
mergeSectionComponents(File mergedEditsFile)
Merge all the components of the Section into a single file and return the location. |
int |
numEdits()
Return how many edits there are in this section. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public EditSectionGroupReader(NutchFileSystem nfs, String label, int readerNum, int totalMachines)
Method Detail |
public int numEdits() throws IOException
IOException
public void mergeSectionComponents(File mergedEditsFile) throws IOException
IOException
public void delete() throws IOException
IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |