Class StatsTableComparator
- java.lang.Object
-
- org.apache.cassandra.tools.nodetool.stats.StatsTableComparator
-
- All Implemented Interfaces:
java.util.Comparator<StatsTable>
public class StatsTableComparator extends java.lang.Object implements java.util.Comparator<StatsTable>
Comparator to sort StatsTables by a named statistic.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String[]
supportedSortKeys
Names of supported sort keys as they should be specified on the command line.
-
Constructor Summary
Constructors Constructor Description StatsTableComparator(java.lang.String sortKey, boolean humanReadable)
StatsTableComparator(java.lang.String sortKey, boolean humanReadable, boolean ascending)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(StatsTable stx, StatsTable sty)
Compare StatsTable instances based on this instance's sortKey.
-
-
-
Method Detail
-
compare
public int compare(StatsTable stx, StatsTable sty)
Compare StatsTable instances based on this instance's sortKey.- Specified by:
compare
in interfacejava.util.Comparator<StatsTable>
-
-