public class FunctionTree extends Object
getFunction(java.lang.String, java.lang.Class<?>[])
which is used to find a function
for execution.Constructor and Description |
---|
FunctionTree(String name,
FunctionMetadataSource source)
Construct a new tree with the given source of function metadata.
|
FunctionTree(String name,
FunctionMetadataSource source,
boolean validateClass)
Construct a new tree with the given source of function metadata.
|
Modifier and Type | Method and Description |
---|---|
FunctionDescriptor |
addFunction(String schema,
FunctionMetadataSource source,
FunctionMethod method,
boolean system)
Store the method for function resolution and invocation.
|
static FunctionTree |
getFunctionProcedures(Schema schema) |
Map<String,FunctionMethod> |
getFunctionsByUuid() |
String |
getSchemaName() |
boolean |
hasFunctionWithName(String name) |
public FunctionTree(String name, FunctionMetadataSource source)
source
- The metadata sourcepublic FunctionTree(String name, FunctionMetadataSource source, boolean validateClass)
source
- The metadata sourcepublic String getSchemaName()
public Map<String,FunctionMethod> getFunctionsByUuid()
public FunctionDescriptor addFunction(String schema, FunctionMetadataSource source, FunctionMethod method, boolean system)
source
- The function metadata source, which knows how to obtain the invocation classmethod
- The function metadata for a particular method signaturepublic static FunctionTree getFunctionProcedures(Schema schema)
public boolean hasFunctionWithName(String name)
Copyright © 2019. All rights reserved.