Package io.trino.metadata
Class LanguageFunctionManager
java.lang.Object
io.trino.metadata.LanguageFunctionManager
- All Implemented Interfaces:
LanguageFunctionProvider
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interface -
Field Summary
FieldsFields inherited from interface io.trino.metadata.LanguageFunctionProvider
DISABLED -
Constructor Summary
ConstructorsConstructorDescriptionLanguageFunctionManager(SqlParser parser, TypeManager typeManager, GroupProvider groupProvider, BlockEncodingSerde blockEncodingSerde) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddInlineFunction(Session session, String sql, AccessControl accessControl) analyzeAndPlan(Session session, FunctionId functionId, AccessControl accessControl) getFunctionMetadata(Session session, FunctionId functionId) getFunctions(Session session, CatalogHandle catalogHandle, SchemaFunctionName name, LanguageFunctionManager.LanguageFunctionLoader languageFunctionLoader, LanguageFunctionManager.RunAsIdentityLoader identityLoader) getSignatureToken(List<ParameterDeclaration> parameters) static booleanisInlineFunction(CatalogSchemaFunctionName functionName) static booleanisTrinoSqlLanguageFunction(FunctionId functionId) listFunctions(Session session, Collection<LanguageFunction> languageFunctions) voidregisterQuery(Session session) voidregisterTask(TaskId taskId, Map<FunctionId, IrRoutine> languageFunctions) serializeFunctionsForWorkers(Session session) voidsetPlannerContext(PlannerContext plannerContext) specialize(FunctionId functionId, InvocationConvention invocationConvention, FunctionManager functionManager) voidtryRegisterQuery(Session session) voidunregisterQuery(Session session) voidunregisterTask(TaskId taskId) voidverifyForCreate(Session session, String sql, FunctionManager functionManager, AccessControl accessControl)
-
Field Details
-
QUERY_LOCAL_SCHEMA
- See Also:
-
-
Constructor Details
-
LanguageFunctionManager
@Inject public LanguageFunctionManager(SqlParser parser, TypeManager typeManager, GroupProvider groupProvider, BlockEncodingSerde blockEncodingSerde)
-
-
Method Details
-
setPlannerContext
-
tryRegisterQuery
-
registerQuery
-
unregisterQuery
-
registerTask
- Specified by:
registerTaskin interfaceLanguageFunctionProvider
-
unregisterTask
- Specified by:
unregisterTaskin interfaceLanguageFunctionProvider
-
listFunctions
public List<FunctionMetadata> listFunctions(Session session, Collection<LanguageFunction> languageFunctions) -
getFunctions
public List<FunctionMetadata> getFunctions(Session session, CatalogHandle catalogHandle, SchemaFunctionName name, LanguageFunctionManager.LanguageFunctionLoader languageFunctionLoader, LanguageFunctionManager.RunAsIdentityLoader identityLoader) -
getFunctionMetadata
-
analyzeAndPlan
public FunctionId analyzeAndPlan(Session session, FunctionId functionId, AccessControl accessControl) -
specialize
public ScalarFunctionImplementation specialize(FunctionId functionId, InvocationConvention invocationConvention, FunctionManager functionManager) - Specified by:
specializein interfaceLanguageFunctionProvider
-
serializeFunctionsForWorkers
-
verifyForCreate
public void verifyForCreate(Session session, String sql, FunctionManager functionManager, AccessControl accessControl) -
addInlineFunction
-
isInlineFunction
-
isTrinoSqlLanguageFunction
-
getSignatureToken
-