Class FunctionGenerationHelper

java.lang.Object
org.apache.drill.exec.expr.fn.FunctionGenerationHelper
All Implemented Interfaces:
FunctionNames

public class FunctionGenerationHelper extends Object implements FunctionNames
  • Constructor Details

    • FunctionGenerationHelper

      public FunctionGenerationHelper()
  • Method Details

    • getOrderingComparator

      public static LogicalExpression getOrderingComparator(boolean null_high, ClassGenerator.HoldingContainer left, ClassGenerator.HoldingContainer right, FunctionLookupContext functionLookupContext)
      Finds ordering comparator ("compare_to...") FunctionHolderExpression with a specified ordering for NULL (and considering NULLS equal).
      Parameters:
      null_high - whether NULL should compare as the lowest value (if false) or the highest value (if true)
      left - ...
      right - ...
      functionLookupContext - ...
      Returns:
      FunctionHolderExpression containing the found function implementation
    • getOrderingComparatorNullsHigh

      public static LogicalExpression getOrderingComparatorNullsHigh(ClassGenerator.HoldingContainer left, ClassGenerator.HoldingContainer right, FunctionLookupContext registry)
      Finds ordering comparator ("compare_to...") FunctionHolderExpression with a "NULL high" ordering (and considering NULLS equal).
      Parameters:
      left - ...
      right - ...
      registry - ...
      Returns:
      FunctionHolderExpression containing the function implementation