Examples of createOperator()


Examples of com.facebook.presto.operator.TopNOperator.TopNOperatorFactory.createOperator()

                3,
                ImmutableList.of(0, 1),
                ImmutableList.of(DESC_NULLS_LAST, DESC_NULLS_LAST),
                false);

        Operator operator = operatorFactory.createOperator(driverContext);

        MaterializedResult expected = MaterializedResult.resultBuilder(driverContext.getSession(), VARCHAR, BIGINT)
                .row("f", 3)
                .row("e", 6)
                .row("d", 7)
View Full Code Here

Examples of com.facebook.presto.operator.TopNRowNumberOperator.TopNRowNumberOperatorFactory.createOperator()

                Ints.asList(1),
                ImmutableList.of(SortOrder.ASC_NULLS_LAST),
                3,
                10);

        Operator operator = operatorFactory.createOperator(driverContext);

        MaterializedResult expected = resultBuilder(driverContext.getSession(), DOUBLE, BIGINT, BIGINT)
                .row(0.3, 1, 1)
                .row(0.4, 1, 2)
                .row(0.5, 1, 3)
View Full Code Here

Examples of com.facebook.presto.operator.WindowOperator.InMemoryWindowOperatorFactory.createOperator()

                ints(),
                ints(0),
                bools(true),
                10);

        Operator operator = operatorFactory.createOperator(driverContext);

        MaterializedResult expected = resultBuilder(DOUBLE, FIXED_INT_64, FIXED_INT_64)
                .row(-0.1, -1, 1)
                .row(0.3, 2, 2)
                .row(0.2, 4, 3)
View Full Code Here

Examples of com.facebook.presto.operator.WindowOperator.WindowOperatorFactory.createOperator()

                Ints.asList(),
                Ints.asList(0),
                ImmutableList.copyOf(new SortOrder[] {SortOrder.ASC_NULLS_LAST}),
                10);

        Operator operator = operatorFactory.createOperator(driverContext);

        MaterializedResult expected = resultBuilder(driverContext.getSession(), DOUBLE, BIGINT, BIGINT)
                .row(-0.1, -1, 1)
                .row(0.3, 2, 2)
                .row(0.2, 4, 3)
View Full Code Here

Examples of pl.edu.amu.wmi.daut.re.AlternativeOperator.Factory.createOperator()

     */
    public final void testFactory() {
        Factory factory = new Factory();
        ArrayList<String> params = new ArrayList<String>();

        assertEquals(factory.createOperator(params).getClass(),
            new AlternativeOperator().getClass());
    }
}
View Full Code Here

Examples of pl.edu.amu.wmi.daut.re.AnyOrderOperator.Factory.createOperator()

     * Test fabryki.
     */
    public final void testFactory() {
        Factory factory = new Factory();
        ArrayList<String> params = new ArrayList<String>();
        assertEquals(factory.createOperator(params).getClass(),
                new AnyOrderOperator().getClass());
    }
}
View Full Code Here

Examples of pl.edu.amu.wmi.daut.re.AnyStringOperator.Factory.createOperator()

     * Test fabryki.
     */
    public final void testFactory() {
        Factory factory = new Factory();
        ArrayList<String> params = new ArrayList<String>();
        assertEquals(factory.createOperator(params).getClass(),
                new AnyStringOperator().getClass());
    }
}
View Full Code Here

Examples of pl.edu.amu.wmi.daut.re.AtLeastOneOperator.Factory.createOperator()

     */
    public final void testFactory() {

        Factory factory = new Factory();
        ArrayList<String> params = new ArrayList<String>();
        assertEquals(factory.createOperator(params).getClass(),
            new AtLeastOneOperator().getClass());
    }
}
View Full Code Here

Examples of pl.edu.amu.wmi.daut.re.CarriageReturnOperator.Factory.createOperator()

     */

    public void testFactory() {

        Factory factory = new Factory();
        RegexpOperator operator2 = factory.createOperator(new ArrayList<String>());
        int arity = operator2.arity();
        assertEquals(arity, 0);

    }
}
View Full Code Here

Examples of pl.edu.amu.wmi.daut.re.ConcatenationOperator.Factory.createOperator()

     */
    public final void testFactory() {
        Factory factory = new Factory();
        ArrayList<String> params = new ArrayList<String>();

        assertEquals(factory.createOperator(params).getClass(),
            new ConcatenationOperator().getClass());
    }
}
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.