Class StatsTableComparator
java.lang.Object
org.apache.cassandra.tools.nodetool.stats.StatsTableComparator
- All Implemented Interfaces:
Comparator<StatsTable>
Comparator to sort StatsTables by a named statistic.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String[]Names of supported sort keys as they should be specified on the command line. -
Constructor Summary
ConstructorsConstructorDescriptionStatsTableComparator(String sortKey, boolean humanReadable) StatsTableComparator(String sortKey, boolean humanReadable, boolean ascending) -
Method Summary
Modifier and TypeMethodDescriptionintcompare(StatsTable stx, StatsTable sty) Compare StatsTable instances based on this instance's sortKey.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Field Details
-
supportedSortKeys
Names of supported sort keys as they should be specified on the command line.
-
-
Constructor Details
-
StatsTableComparator
-
StatsTableComparator
-
-
Method Details
-
compare
Compare StatsTable instances based on this instance's sortKey.- Specified by:
comparein interfaceComparator<StatsTable>
-