it.unipi.di.util
Class ExternalSort.SortingKey
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
key
public String key
row
public String row
ExternalSort.SortingKey
public ExternalSort.SortingKey(String row,
String key)
ExternalSort.SortingKey
public ExternalSort.SortingKey(String row,
String cols,
boolean reverse)
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>