src/java/org/apache/cassandra/db/Table.java
// Compare first on size and, if equal, sort by name (arbitrary & deterministic).
Compare first on size and, if equal, sort by name (arbitrary & deterministic).
Compare first on size and if equal sort by name ( arbitrary & deterministic ) .
@Override
            public int compare(ColumnFamilyStore cf1, ColumnFamilyStore cf2)
            {
                long diff = (cf1.getTotalDiskSpaceUsed() - cf2.getTotalDiskSpaceUsed());
                if (diff > 0)
                    return 1;
                if (diff < 0)
                    return -1;
                return cf1.columnFamily.compareTo(cf2.columnFamily);
            }
@ Override public int compare ( ColumnFamilyStore cf1 , ColumnFamilyStore cf2 ) { long diff = ( cf1 . getTotalDiskSpaceUsed ( ) - cf2 . getTotalDiskSpaceUsed ( ) ) ; if ( diff > 0 ) return 1 ; if ( diff < 0 ) return - 1 ; return cf1 . columnFamily . compareTo ( cf2 . columnFamily ) ; }
Compare first on size and, if equal, sort by name (arbitrary & deterministic).
Compare first on size and if equal sort by name ( arbitrary & deterministic ) .