Class OrderByProcessorUtil

java.lang.Object
com.espertech.esper.common.internal.epl.resultset.order.OrderByProcessorUtil

public class OrderByProcessorUtil extends Object
  • Constructor Details

    • OrderByProcessorUtil

      public OrderByProcessorUtil()
  • Method Details

    • sortGivenOutgoingAndSortKeys

      public static EventBean[] sortGivenOutgoingAndSortKeys(EventBean[] outgoingEvents, List<Object> sortValuesMultiKeys, Comparator<Object> comparator)
      NOTE: Code-generation-invoked method, method name and parameter order matters
      Parameters:
      outgoingEvents - outgoing
      sortValuesMultiKeys - keys
      comparator - comparator
      Returns:
      sorted
    • sortWOrderKeys

      public static EventBean[] sortWOrderKeys(EventBean[] outgoingEvents, Object[] orderKeys, Comparator<Object> comparator)
      NOTE: Code-generation-invoked method, method name and parameter order matters
      Parameters:
      outgoingEvents - events
      orderKeys - keys
      comparator - comparator
      Returns:
      sorted
    • determineLocalMinMaxWOrderKeys

      public static EventBean determineLocalMinMaxWOrderKeys(EventBean[] outgoingEvents, Object[] orderKeys, Comparator<Object> comparator)
      NOTE: Code-generation-invoked method, method name and parameter order matters
      Parameters:
      outgoingEvents - outgoing
      orderKeys - keys
      comparator - comparator
      Returns:
      min or max
    • sortWOrderKeysWLimit

      public static EventBean[] sortWOrderKeysWLimit(EventBean[] outgoingEvents, Object[] orderKeys, Comparator<Object> comparator, RowLimitProcessor rowLimitProcessor)
      NOTE: Code-generation-invoked method, method name and parameter order matters
      Parameters:
      outgoingEvents - outgoing
      orderKeys - keys
      comparator - comparator
      rowLimitProcessor - row limit
      Returns:
      min or max