org.apache.nutch.db
Class WebDBWriter.LinkInstructionWriter

java.lang.Object
  extended byorg.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())"


Constructor Summary
WebDBWriter.LinkInstructionWriter()
           
 
Method Summary
 void appendInstructionInfo(SequenceFile.Writer writer, Link link, int opcode, Writable val)
          Append the LinkInstruction info to the indicated SequenceFile and keep the LI for later reuse.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebDBWriter.LinkInstructionWriter

public WebDBWriter.LinkInstructionWriter()
Method Detail

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