public class TypeCastRules extends Object
| Constructor and Description |
|---|
TypeCastRules() |
| Modifier and Type | Method and Description |
|---|---|
static int |
getCost(List<TypeProtos.MajorType> argumentTypes,
DrillFuncHolder holder)
Decide whether it's legal to do implicit cast.
|
static TypeProtos.DataMode |
getLeastRestrictiveDataMode(List<TypeProtos.DataMode> dataModes) |
static TypeProtos.MinorType |
getLeastRestrictiveType(List<TypeProtos.MinorType> types) |
static boolean |
isCastable(TypeProtos.MinorType from,
TypeProtos.MinorType to) |
static boolean |
isCastableWithNullHandling(TypeProtos.MajorType argumentType,
TypeProtos.MajorType paramType,
FunctionTemplate.NullHandling nullHandling) |
static boolean |
isNumericType(TypeProtos.MinorType inputType) |
public static boolean isCastableWithNullHandling(TypeProtos.MajorType argumentType, TypeProtos.MajorType paramType, FunctionTemplate.NullHandling nullHandling)
public static boolean isCastable(TypeProtos.MinorType from, TypeProtos.MinorType to)
public static TypeProtos.DataMode getLeastRestrictiveDataMode(List<TypeProtos.DataMode> dataModes)
public static TypeProtos.MinorType getLeastRestrictiveType(List<TypeProtos.MinorType> types)
public static int getCost(List<TypeProtos.MajorType> argumentTypes, DrillFuncHolder holder)
public static boolean isNumericType(TypeProtos.MinorType inputType)
Copyright © 2021 The Apache Software Foundation. All rights reserved.