The default implementation of a Top N table used by all runtimes
It accepts tuples as boxed objects that implements Comparable
Implements the following interface:
(since the code is generated it does not actually need to declare it with implements)
public interface SortTable
{
boolean add( T e );
void sort();
Iterator iterator();
}
Uses a max heap (Java's standard PriorityQueue) to collect a maximum of totalCount tuples in reverse order.