Package com.facebook.presto.operator.window

Examples of com.facebook.presto.operator.window.WindowFunctionSupplier


        private final List<FunctionInfo> functions = new ArrayList<>();
        private final Multimap<OperatorType, FunctionInfo> operators = ArrayListMultimap.create();

        public FunctionListBuilder window(String name, Type returnType, List<? extends Type> argumentTypes, Class<? extends WindowFunction> functionClass)
        {
            WindowFunctionSupplier windowFunctionSupplier = new ReflectionWindowFunctionSupplier<>(
                    new Signature(name, returnType, ImmutableList.copyOf(argumentTypes), false),
                    functionClass);

            functions.add(new FunctionInfo(windowFunctionSupplier.getSignature(), windowFunctionSupplier.getDescription(), windowFunctionSupplier));
            return this;
        }
View Full Code Here


        private final List<FunctionInfo> functions = new ArrayList<>();
        private final Multimap<OperatorType, FunctionInfo> operators = ArrayListMultimap.create();

        public FunctionListBuilder window(String name, Type returnType, List<? extends Type> argumentTypes, Class<? extends WindowFunction> functionClass)
        {
            WindowFunctionSupplier windowFunctionSupplier = new ReflectionWindowFunctionSupplier<>(
                    new Signature(name, returnType, ImmutableList.copyOf(argumentTypes), false),
                    functionClass);

            functions.add(new FunctionInfo(windowFunctionSupplier.getSignature(), windowFunctionSupplier.getDescription(), windowFunctionSupplier));
            return this;
        }
View Full Code Here

        private final List<FunctionInfo> functions = new ArrayList<>();
        private final Multimap<OperatorType, FunctionInfo> operators = ArrayListMultimap.create();

        public FunctionListBuilder window(String name, Type returnType, List<? extends Type> argumentTypes, Class<? extends WindowFunction> functionClass)
        {
            WindowFunctionSupplier windowFunctionSupplier = new ReflectionWindowFunctionSupplier<>(
                    new Signature(name, returnType, ImmutableList.copyOf(argumentTypes)),
                    functionClass);

            functions.add(new FunctionInfo(windowFunctionSupplier.getSignature(), windowFunctionSupplier.getDescription(), windowFunctionSupplier));
            return this;
        }
View Full Code Here

        this.typeManager = checkNotNull(typeManager, "typeManager is null");
    }

    public FunctionListBuilder window(String name, Type returnType, List<? extends Type> argumentTypes, Class<? extends WindowFunction> functionClass)
    {
        WindowFunctionSupplier windowFunctionSupplier = new ReflectionWindowFunctionSupplier<>(
                new Signature(name, returnType.getName(), Lists.transform(ImmutableList.copyOf(argumentTypes), nameGetter())),
                functionClass);

        functions.add(new FunctionInfo(windowFunctionSupplier.getSignature(), windowFunctionSupplier.getDescription(), windowFunctionSupplier));
        return this;
    }
View Full Code Here

        private final List<FunctionInfo> functions = new ArrayList<>();
        private final Multimap<OperatorType, FunctionInfo> operators = ArrayListMultimap.create();

        public FunctionListBuilder window(String name, Type returnType, List<? extends Type> argumentTypes, Class<? extends WindowFunction> functionClass)
        {
            WindowFunctionSupplier windowFunctionSupplier = new ReflectionWindowFunctionSupplier<>(
                    new Signature(name, returnType, ImmutableList.copyOf(argumentTypes), false),
                    functionClass);

            functions.add(new FunctionInfo(windowFunctionSupplier.getSignature(), windowFunctionSupplier.getDescription(), windowFunctionSupplier));
            return this;
        }
View Full Code Here

        this.typeManager = checkNotNull(typeManager, "typeManager is null");
    }

    public FunctionListBuilder window(String name, Type returnType, List<? extends Type> argumentTypes, Class<? extends WindowFunction> functionClass)
    {
        WindowFunctionSupplier windowFunctionSupplier = new ReflectionWindowFunctionSupplier<>(
                new Signature(name, returnType.getName(), Lists.transform(ImmutableList.copyOf(argumentTypes), nameGetter())),
                functionClass);

        functions.add(new FunctionInfo(windowFunctionSupplier.getSignature(), windowFunctionSupplier.getDescription(), windowFunctionSupplier));
        return this;
    }
View Full Code Here

TOP

Related Classes of com.facebook.presto.operator.window.WindowFunctionSupplier

Copyright © 2018 www.massapicom. 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.