Package com.facebook.presto.operator

Examples of com.facebook.presto.operator.AlignmentOperator$BlockPosition


            OperatorContext operatorContext = new TaskContext(new TaskId("query", "stage", "task"), executor, session)
                    .addPipelineContext(true, true)
                    .addDriverContext()
                    .addOperatorContext(0, "OptimizeEncodings");

            AlignmentOperator source = new AlignmentOperator(operatorContext, sources);
            importData(source, targetFileHandle);
        }

        targetFileHandle.commit();
View Full Code Here


    @Override
    public Operator createNewDataStream(OperatorContext operatorContext, Split split, List<ColumnHandle> columns)
    {
        List<BlockIterable> channels = createChannels(split, columns);
        return new AlignmentOperator(operatorContext, channels);
    }
View Full Code Here

        for (ConnectorColumnHandle column : columns) {
            RaptorColumnHandle raptorColumnHandle = checkType(column, RaptorColumnHandle.class, "column");
            types.add(raptorColumnHandle.getColumnType());
            channels.add(storageManager.getBlocks(raptorSplit.getShardUuid(), column));
        }
        return new AlignmentOperator(operatorContext, types.build(), channels.build());
    }
View Full Code Here

            OperatorContext operatorContext = new TaskContext(new TaskId("query", "stage", "task"), executor, session)
                    .addPipelineContext(true, true)
                    .addDriverContext()
                    .addOperatorContext(0, "OptimizeEncodings");

            AlignmentOperator source = new AlignmentOperator(operatorContext, types.build(), sources);
            importData(source, targetFileHandle);
        }

        targetFileHandle.commit();
View Full Code Here

        storageManager.commit(fileHandles);

        assertTrue(storageManager.shardExists(shardUuid));

        OperatorContext operatorContext = driverContext.addOperatorContext(0, AlignmentOperator.class.getSimpleName());
        Operator operator = new AlignmentOperator(
                operatorContext,
                ImmutableList.<Type>of(VARCHAR, BIGINT),
                ImmutableList.of(
                        storageManager.getBlocks(shardUuid, columnHandles.get(0)),
                        storageManager.getBlocks(shardUuid, columnHandles.get(1)))
        );

        // materialize pages to force comparison only on contents and not page boundaries
        MaterializedResult expected = toMaterializedResult(operator.getOperatorContext().getSession(), operator.getTypes(), pages);

        OperatorAssertion.assertOperatorEquals(operator, expected);
    }
View Full Code Here

    @Override
    public Operator createNewDataStream(OperatorContext operatorContext, ConnectorSplit split, List<ConnectorColumnHandle> columns)
    {
        List<BlockIterable> channels = createChannels(split, columns);
        return new AlignmentOperator(operatorContext, channels);
    }
View Full Code Here

            OperatorContext operatorContext = new TaskContext(new TaskId("query", "stage", "task"), executor, session)
                    .addPipelineContext(true, true)
                    .addDriverContext()
                    .addOperatorContext(0, "OptimizeEncodings");

            AlignmentOperator source = new AlignmentOperator(operatorContext, sources);
            importData(source, targetFileHandle);
        }

        targetFileHandle.commit();
View Full Code Here

    }

    @Override
    public Operator createNewDataStream(OperatorContext operatorContext, ConnectorSplit split, List<ConnectorColumnHandle> columns)
    {
        return new AlignmentOperator(operatorContext, createChannels(split, columns));
    }
View Full Code Here

    @Override
    public Operator createNewDataStream(OperatorContext operatorContext, ConnectorSplit split, List<ConnectorColumnHandle> columns)
    {
        List<BlockIterable> channels = createChannels(split, columns);
        return new AlignmentOperator(operatorContext, channels);
    }
View Full Code Here

        for (ConnectorColumnHandle column : columns) {
            String columnName = checkType(column, InformationSchemaColumnHandle.class, "column").getColumnName();
            types.add(table.getType(columnName));
            channels.add(table.getColumn(columnName));
        }
        return new AlignmentOperator(operatorContext, types.build(), channels.build());
    }
View Full Code Here

TOP

Related Classes of com.facebook.presto.operator.AlignmentOperator$BlockPosition

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.