Package com.facebook.presto.operator.MarkDistinctOperator

Examples of com.facebook.presto.operator.MarkDistinctOperator.MarkDistinctOperatorFactory.createOperator()


                .addSequencePage(100, 0)
                .addSequencePage(100, 0)
                .build();

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

        MaterializedResult.Builder expected = resultBuilder(driverContext.getSession(), BIGINT, BOOLEAN);
        for (int i = 0; i < 100; i++) {
            expected.row(i, true);
            expected.row(i, false);
View Full Code Here


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

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

        MaterializedResult.Builder expected = resultBuilder(driverContext.getSession(), BIGINT, BIGINT, BOOLEAN);
        for (int i = 0; i < 100; i++) {
            expected.row(i, 1, true);
            expected.row(i, 1, false);
View Full Code Here

                .addSequencePage(100, 0)
                .addSequencePage(100, 0)
                .build();

        OperatorFactory operatorFactory = new MarkDistinctOperatorFactory(0, ImmutableList.of(BIGINT), ImmutableList.of(0), Optional.<Integer>absent());
        Operator operator = operatorFactory.createOperator(driverContext);

        MaterializedResult.Builder expected = resultBuilder(driverContext.getSession(), BIGINT, BOOLEAN);
        for (int i = 0; i < 100; i++) {
            expected.row(i, true);
            expected.row(i, false);
View Full Code Here

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

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

        MaterializedResult.Builder expected = resultBuilder(driverContext.getSession(), BIGINT, BIGINT, BOOLEAN);
        for (int i = 0; i < 100; i++) {
            expected.row(i, 1, true);
            expected.row(i, 1, false);
View Full Code Here

                .addSequencePage(100, 0)
                .addSequencePage(100, 0)
                .build();

        OperatorFactory operatorFactory = new MarkDistinctOperatorFactory(0, ImmutableList.of(BIGINT), ImmutableList.of(0), Optional.<Integer>absent());
        Operator operator = operatorFactory.createOperator(driverContext);

        MaterializedResult.Builder expected = resultBuilder(driverContext.getSession(), BIGINT, BOOLEAN);
        for (int i = 0; i < 100; i++) {
            expected.row(i, true);
            expected.row(i, false);
View Full Code Here

                .addSequencePage(100, 0)
                .addSequencePage(100, 0)
                .build();

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

        MaterializedResult.Builder expected = resultBuilder(driverContext.getSession(), BIGINT, BOOLEAN);
        for (int i = 0; i < 100; i++) {
            expected.row(i, true);
            expected.row(i, false);
View Full Code Here

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

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

        MaterializedResult.Builder expected = resultBuilder(SINGLE_LONG, SINGLE_LONG, SINGLE_BOOLEAN);
        for (int i = 0; i < 100; i++) {
            expected.row(i, 1, true);
            expected.row(i, 1, false);
View Full Code Here

                .addSequencePage(100, 0)
                .addSequencePage(100, 0)
                .build();

        OperatorFactory operatorFactory = new MarkDistinctOperatorFactory(0, ImmutableList.of(SINGLE_LONG), ImmutableList.of(0), Optional.<Integer>absent());
        Operator operator = operatorFactory.createOperator(driverContext);

        MaterializedResult.Builder expected = resultBuilder(SINGLE_LONG, SINGLE_BOOLEAN);
        for (int i = 0; i < 100; i++) {
            expected.row(i, true);
            expected.row(i, false);
View Full Code Here

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

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

        MaterializedResult.Builder expected = resultBuilder(driverContext.getSession(), BIGINT, BIGINT, BOOLEAN);
        for (int i = 0; i < 100; i++) {
            expected.row(i, 1, true);
            expected.row(i, 1, false);
View Full Code Here

                .addSequencePage(100, 0)
                .addSequencePage(100, 0)
                .build();

        OperatorFactory operatorFactory = new MarkDistinctOperatorFactory(0, ImmutableList.of(BIGINT), ImmutableList.of(0), Optional.<Integer>absent());
        Operator operator = operatorFactory.createOperator(driverContext);

        MaterializedResult.Builder expected = resultBuilder(driverContext.getSession(), BIGINT, BOOLEAN);
        for (int i = 0; i < 100; i++) {
            expected.row(i, true);
            expected.row(i, false);
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.