Class TransformTopN

  • All Implemented Interfaces:
    Transform

    public class TransformTopN
    extends TransformCopy
    Optimization that changes queries that uses OFFSET/LIMIT and ORDER BY to execute using Top N: i.e. while executing, keep only the top N items seen. This avoids full sort of the whole results, saving space and time.