net.nutch.db
Class WebDBWriter.PageInstruction.PageComparator

java.lang.Object
  extended bynet.nutch.io.WritableComparator
      extended bynet.nutch.db.WebDBWriter.PageInstruction.PageComparator
Enclosing class:
WebDBWriter.PageInstruction

public static class WebDBWriter.PageInstruction.PageComparator
extends WritableComparator

Sorts the instruction first by Page, then by opcode.


Constructor Summary
WebDBWriter.PageInstruction.PageComparator()
           
 
Method Summary
 int compare(byte[] b1, int s1, int l1, byte[] b2, int s2, int l2)
          Optimized comparator.
 
Methods inherited from class net.nutch.io.WritableComparator
compare, compareBytes, getKeyClass, newKey, readFloat, readInt, readLong, readUnsignedShort
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebDBWriter.PageInstruction.PageComparator

public WebDBWriter.PageInstruction.PageComparator()
Method Detail

compare

public int compare(byte[] b1,
                   int s1,
                   int l1,
                   byte[] b2,
                   int s2,
                   int l2)
Optimized comparator.

Overrides:
compare in class WritableComparator


Copyright © 2004 The Nutch Organization.