Search in sources :

Example 1 with FunctionManagerImpl

use of org.apache.asterix.runtime.evaluators.common.FunctionManagerImpl in project asterixdb by apache.

the class NonTaggedDataFormat method registerRuntimeFunctions.

@Override
public void registerRuntimeFunctions(List<IFunctionDescriptorFactory> funcDescriptors) throws AlgebricksException {
    if (registered) {
        return;
    }
    registered = true;
    if (FunctionManagerHolder.getFunctionManager() != null) {
        return;
    }
    IFunctionManager mgr = new FunctionManagerImpl();
    for (IFunctionDescriptorFactory fdFactory : funcDescriptors) {
        mgr.registerFunction(fdFactory);
    }
    FunctionManagerHolder.setFunctionManager(mgr);
    registerTypeInferers();
}
Also used : IFunctionDescriptorFactory(org.apache.asterix.om.functions.IFunctionDescriptorFactory) FunctionManagerImpl(org.apache.asterix.runtime.evaluators.common.FunctionManagerImpl) IFunctionManager(org.apache.asterix.om.functions.IFunctionManager)

Aggregations

IFunctionDescriptorFactory (org.apache.asterix.om.functions.IFunctionDescriptorFactory)1 IFunctionManager (org.apache.asterix.om.functions.IFunctionManager)1 FunctionManagerImpl (org.apache.asterix.runtime.evaluators.common.FunctionManagerImpl)1