org.apache.nutch.db
Class WebDBWriter.LinkInstructionWriter
java.lang.Object
org.apache.nutch.db.WebDBWriter.LinkInstructionWriter
- Enclosing class:
- WebDBWriter
- public static class WebDBWriter.LinkInstructionWriter
- extends Object
LinkInstructionWriter very efficiently writes a
LinkInstruction to a SequenceFile.Writer. Much better
than calling "writer.append(new LinkInstruction())"
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WebDBWriter.LinkInstructionWriter
public WebDBWriter.LinkInstructionWriter()
appendInstructionInfo
public void appendInstructionInfo(SequenceFile.Writer writer,
Link link,
int opcode,
Writable val)
throws IOException
- Append the LinkInstruction info to the indicated SequenceFile
and keep the LI for later reuse.
- Throws:
IOException
Copyright © 2006 The Apache Software Foundation