|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsimpledb.materialize.RecordComparator
public class RecordComparator
A comparator for scans.
Constructor Summary | |
---|---|
RecordComparator(java.util.List<java.lang.String> fields)
Creates a comparator using the specified fields, using the ordering implied by its iterator. |
Method Summary | |
---|---|
int |
compare(Scan s1,
Scan s2)
Compares the current records of the two specified scans. |
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 |
---|
public RecordComparator(java.util.List<java.lang.String> fields)
fields
- a list of field namesMethod Detail |
---|
public int compare(Scan s1, Scan s2)
compare
in interface java.util.Comparator<Scan>
s1
- the first scans2
- the second scan
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |