Package com.facebook.presto.operator.MaterializeSampleOperator

Examples of com.facebook.presto.operator.MaterializeSampleOperator.MaterializeSampleOperatorFactory.createOperator()


                .addSequencePage(100, 1)
                .build();
        input = appendSampleWeight(input, 0);

        OperatorFactory operatorFactory = new MaterializeSampleOperatorFactory(0, ImmutableList.of(BIGINT), 1);
        Operator operator = operatorFactory.createOperator(driverContext);

        MaterializedResult expected = resultBuilder(driverContext.getSession(), BIGINT)
                .build();

        OperatorAssertion.assertOperatorEqualsIgnoreOrder(operator, input, expected);
View Full Code Here


                .addSequencePage(100, 1)
                .build();
        input = appendSampleWeight(input, 2);

        OperatorFactory operatorFactory = new MaterializeSampleOperatorFactory(0, ImmutableList.of(BIGINT), 1);
        Operator operator = operatorFactory.createOperator(driverContext);

        List<Page> expectedPages = rowPagesBuilder(BIGINT)
                .addSequencePage(100, 1)
                .addSequencePage(100, 1)
                .build();
View Full Code Here

                .addSequencePage(100, 1)
                .build();
        input = appendSampleWeight(input, 0);

        OperatorFactory operatorFactory = new MaterializeSampleOperatorFactory(0, ImmutableList.of(BIGINT), 1);
        Operator operator = operatorFactory.createOperator(driverContext);

        MaterializedResult expected = resultBuilder(driverContext.getSession(), BIGINT)
                .build();

        OperatorAssertion.assertOperatorEqualsIgnoreOrder(operator, input, expected);
View Full Code Here

                .addSequencePage(100, 1)
                .build();
        input = appendSampleWeight(input, 2);

        OperatorFactory operatorFactory = new MaterializeSampleOperatorFactory(0, ImmutableList.of(BIGINT), 1);
        Operator operator = operatorFactory.createOperator(driverContext);

        List<Page> expectedPages = rowPagesBuilder(BIGINT)
                .addSequencePage(100, 1)
                .addSequencePage(100, 1)
                .build();
View Full Code Here

                .addSequencePage(100, 1)
                .build();
        input = appendSampleWeight(input, 2);

        OperatorFactory operatorFactory = new MaterializeSampleOperatorFactory(0, ImmutableList.of(SINGLE_LONG), 1);
        Operator operator = operatorFactory.createOperator(driverContext);

        List<Page> expectedPages = rowPagesBuilder(SINGLE_LONG)
                .addSequencePage(100, 1)
                .addSequencePage(100, 1)
                .build();
View Full Code Here

                .addSequencePage(100, 1)
                .build();
        input = appendSampleWeight(input, 0);

        OperatorFactory operatorFactory = new MaterializeSampleOperatorFactory(0, ImmutableList.of(BIGINT), 1);
        Operator operator = operatorFactory.createOperator(driverContext);

        MaterializedResult expected = resultBuilder(driverContext.getSession(), BIGINT)
                .build();

        OperatorAssertion.assertOperatorEqualsIgnoreOrder(operator, input, expected);
View Full Code Here

                .addSequencePage(100, 1)
                .build();
        input = appendSampleWeight(input, 2);

        OperatorFactory operatorFactory = new MaterializeSampleOperatorFactory(0, ImmutableList.of(BIGINT), 1);
        Operator operator = operatorFactory.createOperator(driverContext);

        List<Page> expectedPages = rowPagesBuilder(BIGINT)
                .addSequencePage(100, 1)
                .addSequencePage(100, 1)
                .build();
View Full Code Here

                .addSequencePage(100, 1)
                .build();
        input = appendSampleWeight(input, 0);

        OperatorFactory operatorFactory = new MaterializeSampleOperatorFactory(0, ImmutableList.of(SINGLE_LONG), 1);
        Operator operator = operatorFactory.createOperator(driverContext);

        MaterializedResult expected = resultBuilder(SINGLE_LONG)
                .build();

        OperatorAssertion.assertOperatorEqualsIgnoreOrder(operator, input, expected);
View Full Code Here

                .addSequencePage(100, 1)
                .build();
        input = appendSampleWeight(input, 2);

        OperatorFactory operatorFactory = new MaterializeSampleOperatorFactory(0, ImmutableList.of(SINGLE_LONG), 1);
        Operator operator = operatorFactory.createOperator(driverContext);

        List<Page> expectedPages = rowPagesBuilder(SINGLE_LONG)
                .addSequencePage(100, 1)
                .addSequencePage(100, 1)
                .build();
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.