it.unipi.di.util
Class ExternalSort.SortingKey

java.lang.Object
  extended by it.unipi.di.util.ExternalSort.SortingKey
All Implemented Interfaces:
Comparable<ExternalSort.SortingKey>
Enclosing class:
ExternalSort

protected class ExternalSort.SortingKey
extends Object
implements Comparable<ExternalSort.SortingKey>

Used to compare two strings by their sorting columns (aka sorted keys).

Author:
Claudio Corsi

Field Summary
 String key
           
 String row
           
 
Constructor Summary
ExternalSort.SortingKey(String row, String key)
           
ExternalSort.SortingKey(String row, String cols, boolean reverse)
           
 
Method Summary
 int compareTo(ExternalSort.SortingKey k)
           
 int length()
           
 void setReverse(boolean reverse)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

key

public String key

row

public String row
Constructor Detail

ExternalSort.SortingKey

public ExternalSort.SortingKey(String row,
                               String key)

ExternalSort.SortingKey

public ExternalSort.SortingKey(String row,
                               String cols,
                               boolean reverse)
Method Detail

setReverse

public void setReverse(boolean reverse)

length

public int length()

compareTo

public final int compareTo(ExternalSort.SortingKey k)
Specified by:
compareTo in interface Comparable<ExternalSort.SortingKey>