Package io.trino.operator.scalar
Class TryFunction
- java.lang.Object
-
- io.trino.operator.scalar.TryFunction
-
public final class TryFunction extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceTryFunction.TryBooleanLambdastatic interfaceTryFunction.TryDoubleLambdastatic interfaceTryFunction.TryLongLambdastatic interfaceTryFunction.TryObjectLambda
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> Tevaluate(Supplier<T> supplier, T defaultValue)static BooleantryBoolean(TryFunction.TryBooleanLambda function)static DoubletryDouble(TryFunction.TryDoubleLambda function)static LongtryLong(TryFunction.TryLongLambda function)static ObjecttryObject(TryFunction.TryObjectLambda function)
-
-
-
Field Detail
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
tryLong
public static Long tryLong(TryFunction.TryLongLambda function)
-
tryDouble
public static Double tryDouble(TryFunction.TryDoubleLambda function)
-
tryBoolean
public static Boolean tryBoolean(TryFunction.TryBooleanLambda function)
-
tryObject
public static Object tryObject(TryFunction.TryObjectLambda function)
-
evaluate
public static <T> T evaluate(Supplier<T> supplier, T defaultValue)
-
-