Class OrderBy

java.lang.Object
org.apache.druid.query.OrderBy
All Implemented Interfaces:
Cacheable

public class OrderBy extends Object implements Cacheable
  • Constructor Details

    • OrderBy

      public OrderBy(String columnName, Order order)
  • Method Details

    • ascending

      public static OrderBy ascending(String columnName)
    • descending

      public static OrderBy descending(String columnName)
    • getColumnName

      public String getColumnName()
    • getOrder

      public Order getOrder()
    • isExactReverse

      public boolean isExactReverse(OrderBy that)
      Returns true if the given OrderBy is the exact reverse, meaning they have the same column name in revrersed order.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getCacheKey

      public byte[] getCacheKey()
      Description copied from interface: Cacheable
      Get a byte array used as a cache key.
      Specified by:
      getCacheKey in interface Cacheable
      Returns:
      bytes to be used as cache key - or null if this object should not be cached.