org.apache.nutch.db
Class EditSectionWriter
java.lang.Object
org.apache.nutch.db.EditSectionWriter
- public class EditSectionWriter
- extends Object
EditSectionWriter writes a discrete portion of a WebDB.
The WebDBWriter class may instantiate many EditSectionWriter
objects to do its work (and always instantiates at
least one).
- Author:
- Mike Cafarella
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WRITE_METAINFO_PREFIX
public static final String WRITE_METAINFO_PREFIX
- See Also:
- Constant Field Values
EDITS_PREFIX
public static final String EDITS_PREFIX
- See Also:
- Constant Field Values
EditSectionWriter
public EditSectionWriter(NutchFileSystem nfs,
String label,
int targetNum,
int writerNum,
Class keyClass,
Class valClass)
throws IOException
- Make a EditSectionWriter for the appropriate file.
append
public void append(WritableComparable key,
Writable val)
throws IOException
- Add a key/val pair
- Throws:
IOException
close
public void close()
throws IOException
- Close down the EditSectionWriter. Afterwards, write down
the completion file (including the number of edits inside).
- Throws:
IOException
Copyright © 2006 The Apache Software Foundation