Definition at line 29 of file FunctionProvider.cs.
Deveel.Data.Routines.FunctionProvider.FunctionProvider |
( |
| ) |
|
|
inlineprotected |
Deveel.Data.Routines.FunctionProvider.~FunctionProvider |
( |
| ) |
|
|
inlineprivate |
void Deveel.Data.Routines.FunctionProvider.CallInit |
( |
| ) |
|
|
inlineprivate |
void Deveel.Data.Routines.FunctionProvider.Dispose |
( |
| ) |
|
|
inline |
virtual void Deveel.Data.Routines.FunctionProvider.Dispose |
( |
bool |
disposing | ) |
|
|
inlineprotectedvirtual |
abstract void Deveel.Data.Routines.FunctionProvider.OnInit |
( |
| ) |
|
|
protectedpure virtual |
Definition at line 57 of file FunctionProvider.cs.
58 Register(
new DelegateFunction(functionInfo, body, returnType));
void Register(FunctionInfo functionInfo, Func< InvokeContext, InvokeResult > body, Func< InvokeContext, SqlType > returnType)
Definition at line 61 of file FunctionProvider.cs.
65 var configuration =
new FunctionConfiguration(
this);
66 config(configuration);
68 var functionInfos = configuration.FunctionInfo;
69 foreach (var functionInfo
in functionInfos) {
70 Register(functionInfo, configuration.ExecuteFunc, configuration.ReturnTypeFunc);
void Register(FunctionInfo functionInfo, Func< InvokeContext, InvokeResult > body, Func< InvokeContext, SqlType > returnType)
void Deveel.Data.Routines.FunctionProvider.Register |
( |
IFunction |
function | ) |
|
|
inlineprotected |
Definition at line 74 of file FunctionProvider.cs.
76 throw new ArgumentNullException(
"function");
78 var functionName =
function.FullName.FullName.ToUpperInvariant();
79 container.RegisterInstance(
function, serviceKey: functionName,reuse:Reuse.Singleton);
Definition at line 86 of file FunctionProvider.cs.
93 var functionName = name.FullName.ToUpperInvariant();
94 var functions =
container.ResolveMany<IFunction>(serviceKey:functionName).ToArrayOrSelf();
95 if (functions.Length == 0)
97 if (functions.Length == 1)
100 return functions.FirstOrDefault(x => x.RoutineInfo.MatchesInvoke(invoke, query));
abstract string SchemaName
virtual ObjectName NormalizeName(ObjectName name)
IRoutine IRoutineResolver. Deveel.Data.Routines.FunctionProvider.ResolveRoutine |
( |
Invoke |
request, |
|
|
IQuery |
query |
|
) |
| |
|
inlineprivate |
Resolves a routine that matches the given invocation within the context provided.
- Parameters
-
request | The routine invocation request used to resolve the routine. |
query | The parent query context. |
- Returns
- Returns an instance of IRoutine that matches the given request, or
null
if no routine was found in the underlying context.
Implements Deveel.Data.Routines.IRoutineResolver.
Definition at line 82 of file FunctionProvider.cs.
IFunction ResolveFunction(Invoke invoke, IQuery query)
Container Deveel.Data.Routines.FunctionProvider.container |
|
private |
abstract string Deveel.Data.Routines.FunctionProvider.SchemaName |
|
get |
The documentation for this class was generated from the following file:
- /var/calculate/remote/distfiles/egit-src/deveeldb.git/src/deveeldb/Deveel.Data.Routines/FunctionProvider.cs