|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.nutch.db.EditSectionGroupWriter
The EditSectionGroupWriter maintains a set of EditSectionWriter objects. It chooses the appropriate EditSectionWriter to carry out each operation.
Nested Class Summary | |
static class |
EditSectionGroupWriter.KeyExtractor
Edit instructions are Comparable, but they also have an "inner" key like MD5Hash or URL that is also Comparable. |
static class |
EditSectionGroupWriter.LinkMD5Extractor
Get the MD5 from a LinkInstruction |
static class |
EditSectionGroupWriter.LinkURLExtractor
Get the URL from a LinkInstruction |
static class |
EditSectionGroupWriter.PageMD5Extractor
Get the MD5 from a PageInstruction |
static class |
EditSectionGroupWriter.PageURLExtractor
Get the URL from a PageInstruction |
Field Summary | |
static String |
GROUP_METAINFO
|
static int |
MD5_KEYSPACE
|
static int |
URL_KEYSPACE
|
Constructor Summary | |
EditSectionGroupWriter(NutchFileSystem nfs,
int machineNum,
int totalMachines,
String label,
Class keyClass,
Class valClass,
EditSectionGroupWriter.KeyExtractor extractor)
Start a EditSectionGroupWriter at the indicated location, for a single emitter. |
Method Summary | |
void |
append(WritableComparable key,
Writable val)
Add an instruction and append it. |
void |
close()
Close down the writers |
static void |
createEditGroup(NutchFileSystem nfs,
File dbDir,
String label,
int numSections,
int keySpaceType)
Initialize an EditSectionGroup. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String GROUP_METAINFO
public static int URL_KEYSPACE
public static int MD5_KEYSPACE
Constructor Detail |
public EditSectionGroupWriter(NutchFileSystem nfs, int machineNum, int totalMachines, String label, Class keyClass, Class valClass, EditSectionGroupWriter.KeyExtractor extractor) throws IOException
Method Detail |
public static void createEditGroup(NutchFileSystem nfs, File dbDir, String label, int numSections, int keySpaceType) throws IOException
IOException
public void append(WritableComparable key, Writable val) throws IOException
IOException
public void close() throws IOException
IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |