public class FunctionGenerationHelper extends Object
Modifier and Type | Field and Description |
---|---|
static String |
COMPARE_TO_NULLS_HIGH |
static String |
COMPARE_TO_NULLS_LOW |
Constructor and Description |
---|
FunctionGenerationHelper() |
Modifier and Type | Method and Description |
---|---|
static FunctionHolderExpression |
getFunctionExpression(String name,
TypeProtos.MajorType returnType,
FunctionImplementationRegistry registry,
ClassGenerator.HoldingContainer... args) |
static FunctionHolderExpression |
getOrderingComparator(boolean null_high,
ClassGenerator.HoldingContainer left,
ClassGenerator.HoldingContainer right,
FunctionImplementationRegistry registry)
Finds ordering comparator ("compare_to...") FunctionHolderExpression with
a specified ordering for NULL (and considering NULLS equal).
|
static FunctionHolderExpression |
getOrderingComparatorNullsHigh(ClassGenerator.HoldingContainer left,
ClassGenerator.HoldingContainer right,
FunctionImplementationRegistry registry)
Finds ordering comparator ("compare_to...") FunctionHolderExpression with
a "NULL high" ordering (and considering NULLS equal).
|
protected static boolean |
isComparableType(TypeProtos.MajorType type) |
public static final String COMPARE_TO_NULLS_HIGH
public static final String COMPARE_TO_NULLS_LOW
public static FunctionHolderExpression getOrderingComparator(boolean null_high, ClassGenerator.HoldingContainer left, ClassGenerator.HoldingContainer right, FunctionImplementationRegistry registry)
null_high
- whether NULL should compare as the lowest value (if
false
) or the highest value (if true
)left
- ...right
- ...registry
- ...public static FunctionHolderExpression getOrderingComparatorNullsHigh(ClassGenerator.HoldingContainer left, ClassGenerator.HoldingContainer right, FunctionImplementationRegistry registry)
left
- ...right
- ...registry
- ...#getComparator
public static FunctionHolderExpression getFunctionExpression(String name, TypeProtos.MajorType returnType, FunctionImplementationRegistry registry, ClassGenerator.HoldingContainer... args)
protected static boolean isComparableType(TypeProtos.MajorType type)
Copyright © 2015 The Apache Software Foundation. All rights reserved.