org.apache.nutch.db
Class DistributedWebDBWriter.PageInstruction.PageComparator

java.lang.Object
  extended byorg.apache.nutch.io.WritableComparator
      extended byorg.apache.nutch.db.DistributedWebDBWriter.PageInstruction.PageComparator
All Implemented Interfaces:
Comparator
Enclosing class:
DistributedWebDBWriter.PageInstruction

public static class DistributedWebDBWriter.PageInstruction.PageComparator
extends WritableComparator

Sorts the instruction first by Page, then by opcode.


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

Constructor Detail

DistributedWebDBWriter.PageInstruction.PageComparator

public DistributedWebDBWriter.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 © 2006 The Apache Software Foundation