org.apache.nutch.db
Class DistributedWebDBWriter.LinkInstructionWriter

java.lang.Object
  extended byorg.apache.nutch.db.DistributedWebDBWriter.LinkInstructionWriter
Enclosing class:
DistributedWebDBWriter

public static class DistributedWebDBWriter.LinkInstructionWriter
extends Object

LinkInstructionWriter very efficiently writes a LinkInstruction to an EditSectionGroupWriter. Much better than calling "writer.append(new LinkInstruction())"


Constructor Summary
DistributedWebDBWriter.LinkInstructionWriter()
           
 
Method Summary
 void appendInstructionInfo(EditSectionGroupWriter 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

DistributedWebDBWriter.LinkInstructionWriter

public DistributedWebDBWriter.LinkInstructionWriter()
Method Detail

appendInstructionInfo

public void appendInstructionInfo(EditSectionGroupWriter 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