org.apache.nutch.db
Class DistributedWebDBWriter.PageInstructionWriter

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

public static class DistributedWebDBWriter.PageInstructionWriter
extends Object

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


Constructor Summary
DistributedWebDBWriter.PageInstructionWriter()
           
 
Method Summary
 void appendInstructionInfo(EditSectionGroupWriter writer, Page page, int opcode, Writable val)
          Append the PageInstruction info to the indicated SequenceFile, and keep the PI for later reuse.
 void appendInstructionInfo(EditSectionGroupWriter writer, Page page, Link link, int opcode, Writable val)
          Append the PageInstruction info to the indicated SequenceFile, and keep the PI for later reuse.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DistributedWebDBWriter.PageInstructionWriter

public DistributedWebDBWriter.PageInstructionWriter()
Method Detail

appendInstructionInfo

public void appendInstructionInfo(EditSectionGroupWriter writer,
                                  Page page,
                                  int opcode,
                                  Writable val)
                           throws IOException
Append the PageInstruction info to the indicated SequenceFile, and keep the PI for later reuse.

Throws:
IOException

appendInstructionInfo

public void appendInstructionInfo(EditSectionGroupWriter writer,
                                  Page page,
                                  Link link,
                                  int opcode,
                                  Writable val)
                           throws IOException
Append the PageInstruction info to the indicated SequenceFile, and keep the PI for later reuse.

Throws:
IOException


Copyright © 2006 The Apache Software Foundation