Examples of FunctionRegistry


Examples of com.facebook.presto.metadata.FunctionRegistry

        implements ByteCodeGenerator
{
    @Override
    public ByteCodeNode generateExpression(Signature signature, ByteCodeGeneratorContext context, Type returnType, List<RowExpression> arguments)
    {
        FunctionRegistry registry = context.getRegistry();

        FunctionInfo function = registry.getExactFunction(signature);
        if (function == null) {
            // TODO: temporary hack to deal with magic timestamp literal functions which don't have an "exact" form and need to be "resolved"
            function = registry.resolveFunction(QualifiedName.of(signature.getName()), signature.getArgumentTypes(), false);
        }

        Preconditions.checkArgument(function != null, "Function %s not found", signature);

        List<ByteCodeNode> argumentsByteCode = new ArrayList<>();
View Full Code Here

Examples of com.hp.hpl.jena.sparql.function.FunctionRegistry

    private void bindFunction(Context cxt)
    {
        if ( functionBound )
            return ;
       
        FunctionRegistry registry = chooseRegistry(cxt) ;
        FunctionFactory ff = registry.get(functionIRI) ;
       
        if ( ff == null )
        {
            functionBound = true ;
            throw new ExprEvalException("URI <"+functionIRI+"> not found as a function") ;
View Full Code Here

Examples of com.hp.hpl.jena.sparql.function.FunctionRegistry

        functionBound = true ;
    }
   
    private FunctionRegistry chooseRegistry(Context context)
    {
        FunctionRegistry registry = FunctionRegistry.get(context) ;
        if ( registry == null )
            registry = FunctionRegistry.get() ;
        return registry ;
    }
View Full Code Here

Examples of com.hp.hpl.jena.sparql.function.FunctionRegistry

    private void bindFunction(Context cxt)
    {
        if ( functionBound )
            return ;
       
        FunctionRegistry registry = chooseRegistry(cxt) ;
        FunctionFactory ff = registry.get(functionIRI) ;
       
        if ( ff == null )
        {
            functionBound = true ;
            throw new ExprEvalException("URI <"+functionIRI+"> not found as a function") ;
View Full Code Here

Examples of com.hp.hpl.jena.sparql.function.FunctionRegistry

        functionBound = true ;
    }
   
    private FunctionRegistry chooseRegistry(Context context)
    {
        FunctionRegistry registry = FunctionRegistry.get(context) ;
        if ( registry == null )
            registry = FunctionRegistry.get() ;
        return registry ;
    }
View Full Code Here

Examples of com.hp.hpl.jena.sparql.function.FunctionRegistry

    private void bindFunction(Context cxt)
    {
        if ( functionBound )
            return ;
       
        FunctionRegistry registry = chooseRegistry(cxt) ;
        FunctionFactory ff = registry.get(functionIRI) ;
       
        if ( ff == null )
        {
            functionBound = true ;
            throw new ExprEvalException("URI <"+functionIRI+"> not found as a function") ;
View Full Code Here

Examples of com.hp.hpl.jena.sparql.function.FunctionRegistry

        functionBound = true ;
    }
   
    private FunctionRegistry chooseRegistry(Context context)
    {
        FunctionRegistry registry = FunctionRegistry.get(context) ;
        if ( registry == null )
            registry = FunctionRegistry.get() ;
        return registry ;
    }
View Full Code Here

Examples of com.hp.hpl.jena.sparql.function.FunctionRegistry

    private void bindFunction(Context cxt)
    {
        if ( functionBound )
            return ;
       
        FunctionRegistry registry = chooseRegistry(cxt) ;
        FunctionFactory ff = registry.get(functionIRI) ;
       
        if ( ff == null )
        {
            functionBound = true ;
            throw new ExprEvalException("URI <"+functionIRI+"> not found as a function") ;
View Full Code Here

Examples of com.hp.hpl.jena.sparql.function.FunctionRegistry

        functionBound = true ;
    }
   
    private FunctionRegistry chooseRegistry(Context context)
    {
        FunctionRegistry registry = FunctionRegistry.get(context) ;
        if ( registry == null )
            registry = FunctionRegistry.get() ;
        return registry ;
    }
View Full Code Here

Examples of org.apache.drill.common.expression.FunctionRegistry

    // ExprLexer lexer = new ExprLexer(new ANTLRStringStream("2+2"));

    CommonTokenStream tokens = new CommonTokenStream(lexer);

    ExprParser parser = new ExprParser(tokens);
    parser.setRegistry(new FunctionRegistry(DrillConfig.create()));
    parse_return ret = parser.parse();
    LogicalExpression e = ret.e;
    ObjectMapper mapper = new ObjectMapper();
    mapper.enable(SerializationFeature.INDENT_OUTPUT);
    System.out.println(mapper.writeValueAsString(e));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.