Examples of InMemoryOrderByOperatorFactory


Examples of com.facebook.presto.operator.OrderByOperator.InMemoryOrderByOperatorFactory

            int[] outputChannels = new int[source.getTupleInfos().size()];
            for (int i = 0; i < outputChannels.length; i++) {
                outputChannels[i] = i;
            }

            OperatorFactory operator = new InMemoryOrderByOperatorFactory(
                    context.getNextOperatorId(),
                    source.getTupleInfos(),
                    orderByChannel,
                    outputChannels,
                    10_000,
View Full Code Here

Examples of com.facebook.presto.operator.OrderByOperator.InMemoryOrderByOperatorFactory

                .pageBreak()
                .row(-1, -0.1)
                .row(4, 0.4)
                .build();

        InMemoryOrderByOperatorFactory operatorFactory = new InMemoryOrderByOperatorFactory(
                0,
                ImmutableList.of(SINGLE_LONG, SINGLE_DOUBLE),
                0,
                new int[] {1},
                10);

        Operator operator = operatorFactory.createOperator(driverContext);

        MaterializedResult expected = resultBuilder(DOUBLE)
                .row(-0.1)
                .row(0.1)
                .row(0.2)
View Full Code Here

Examples of com.facebook.presto.operator.OrderByOperator.InMemoryOrderByOperatorFactory

                .pageBreak()
                .row("b", 3)
                .row("a", 4)
                .build();

        InMemoryOrderByOperatorFactory operatorFactory = new InMemoryOrderByOperatorFactory(
                0,
                ImmutableList.of(tupleInfo),
                0,
                new int[] {0},
                10);

        Operator operator = operatorFactory.createOperator(driverContext);

        MaterializedResult expected = resultBuilder(tupleInfo)
                .row("a", 1)
                .row("a", 4)
                .row("b", 2)
View Full Code Here

Examples of com.facebook.presto.operator.OrderByOperator.InMemoryOrderByOperatorFactory

                .pageBreak()
                .row(-1, -0.1)
                .row(4, 0.4)
                .build();

        InMemoryOrderByOperatorFactory operatorFactory = new InMemoryOrderByOperatorFactory(
                0,
                ImmutableList.of(SINGLE_LONG, SINGLE_DOUBLE),
                0,
                new int[] {0},
                10,
                new int[] {0},
                new boolean[] {false});

        Operator operator = operatorFactory.createOperator(driverContext);

        MaterializedResult expected = resultBuilder(FIXED_INT_64)
                .row(4)
                .row(2)
                .row(1)
View Full Code Here

Examples of com.facebook.presto.operator.OrderByOperator.InMemoryOrderByOperatorFactory

        Session session = new Session("user", "source", "catalog", "schema", "address", "agent");
        DriverContext driverContext = new TaskContext(new TaskId("query", "stage", "task"), executor, session, new DataSize(10, Unit.BYTE))
                .addPipelineContext(true, true)
                .addDriverContext();

        InMemoryOrderByOperatorFactory operatorFactory = new InMemoryOrderByOperatorFactory(
                0,
                ImmutableList.of(SINGLE_LONG, SINGLE_DOUBLE),
                0,
                new int[] {1},
                10);

        Operator operator = operatorFactory.createOperator(driverContext);

        toPages(operator, input);
    }
View Full Code Here

Examples of com.facebook.presto.operator.OrderByOperator.InMemoryOrderByOperatorFactory

        AlignmentOperatorFactory alignmentOperator = new AlignmentOperatorFactory(0, concat(nCopies(100, totalPrice)), concat(nCopies(100, clerk)));

        LimitOperatorFactory limitOperator = new LimitOperatorFactory(1, alignmentOperator.getTupleInfos(), ROWS);

        InMemoryOrderByOperatorFactory orderByOperator = new InMemoryOrderByOperatorFactory(
                2,
                limitOperator.getTupleInfos(),
                0,
                new int[] {1},
                ROWS);
View Full Code Here

Examples of com.facebook.presto.operator.OrderByOperator.InMemoryOrderByOperatorFactory

            int[] outputChannels = new int[source.getTupleInfos().size()];
            for (int i = 0; i < outputChannels.length; i++) {
                outputChannels[i] = i;
            }

            OperatorFactory operator = new InMemoryOrderByOperatorFactory(
                    context.getNextOperatorId(),
                    source.getTupleInfos(),
                    orderByChannel,
                    outputChannels,
                    10_000,
View Full Code Here

Examples of com.facebook.presto.operator.OrderByOperator.InMemoryOrderByOperatorFactory

            int[] outputChannels = new int[source.getTupleInfos().size()];
            for (int i = 0; i < outputChannels.length; i++) {
                outputChannels[i] = i;
            }

            OperatorFactory operator = new InMemoryOrderByOperatorFactory(
                    context.getNextOperatorId(),
                    source.getTupleInfos(),
                    orderByChannel,
                    outputChannels,
                    10_000,
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.