Package io.prestosql.metadata
Class LiteralFunction
- java.lang.Object
-
- io.prestosql.metadata.SqlScalarFunction
-
- io.prestosql.metadata.LiteralFunction
-
- All Implemented Interfaces:
SqlFunction
public class LiteralFunction extends SqlScalarFunction
-
-
Field Summary
Fields Modifier and Type Field Description static String
LITERAL_FUNCTION_NAME
-
Constructor Summary
Constructors Constructor Description LiteralFunction(Supplier<BlockEncodingSerde> blockEncodingSerdeSupplier)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
isSupportedLiteralType(Type type)
ScalarFunctionImplementation
specialize(FunctionBinding functionBinding)
static Type
typeForMagicLiteral(Type type)
-
Methods inherited from class io.prestosql.metadata.SqlScalarFunction
getFunctionMetadata, specialize
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.prestosql.metadata.SqlFunction
getFunctionDependencies, getFunctionDependencies
-
-
-
-
Field Detail
-
LITERAL_FUNCTION_NAME
public static final String LITERAL_FUNCTION_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
LiteralFunction
public LiteralFunction(Supplier<BlockEncodingSerde> blockEncodingSerdeSupplier)
-
-
Method Detail
-
specialize
public ScalarFunctionImplementation specialize(FunctionBinding functionBinding)
- Overrides:
specialize
in classSqlScalarFunction
-
isSupportedLiteralType
public static boolean isSupportedLiteralType(Type type)
-
-