Package com.facebook.presto.metadata

Examples of com.facebook.presto.metadata.FunctionListBuilder


{
    @BeforeClass
    public void setup()
    {
        InternalAggregationFunction function = new AggregationCompiler().generateAggregationFunction(CountNull.class);
        functionRegistry.addFunctions(new FunctionListBuilder(new TypeRegistry()).aggregate(function).getFunctions());
    }
View Full Code Here


        return this;
    }

    public FunctionAssertions addScalarFunctions(Class<?> clazz)
    {
        metadata.addFunctions(new FunctionListBuilder(metadata.getTypeManager()).scalar(clazz).getFunctions());
        return this;
    }
View Full Code Here

        return this;
    }

    public FunctionAssertions addScalarFunctions(Class<?> clazz)
    {
        metadata.addFunctions(new FunctionListBuilder(metadata.getTypeManager()).scalar(clazz).getFunctions());
        return this;
    }
View Full Code Here

{
    private final List<ParametricFunction> aggregations;

    public static GenericAggregationFunctionFactory fromAggregationDefinition(Class<?> clazz, TypeManager typeManager)
    {
        FunctionListBuilder builder = new FunctionListBuilder(typeManager);
        for (InternalAggregationFunction aggregation : new AggregationCompiler(typeManager).generateAggregationFunctions(clazz)) {
            builder.aggregate(aggregation);
        }

        return new GenericAggregationFunctionFactory(builder.getFunctions());
    }
View Full Code Here

    }

    @Override
    public List<ParametricFunction> listFunctions()
    {
        return new FunctionListBuilder(typeManager)
                .aggregate(new LearnAggregation(CLASSIFIER, BIGINT))
                .aggregate(new LearnAggregation(CLASSIFIER, DOUBLE))
                .aggregate(new LearnAggregation(REGRESSOR, BIGINT))
                .aggregate(new LearnAggregation(REGRESSOR, DOUBLE))
                .aggregate(new LearnLibSvmAggregation(CLASSIFIER, BIGINT))
View Full Code Here

TOP

Related Classes of com.facebook.presto.metadata.FunctionListBuilder

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.