Package com.facebook.presto.raptor.metadata

Examples of com.facebook.presto.raptor.metadata.TableColumn


    public ColumnMetadata getColumnMetadata(ConnectorTableHandle tableHandle, ConnectorColumnHandle columnHandle)
    {
        long tableId = checkType(tableHandle, RaptorTableHandle.class, "tableHandle").getTableId();
        long columnId = checkType(columnHandle, RaptorColumnHandle.class, "columnHandle").getColumnId();

        TableColumn tableColumn = dao.getTableColumn(tableId, columnId);
        checkState(tableColumn != null, "no column with id %s exists", columnId);
        return tableColumn.toColumnMetadata();
    }
View Full Code Here


    public ColumnMetadata getColumnMetadata(ConnectorTableHandle tableHandle, ConnectorColumnHandle columnHandle)
    {
        long tableId = checkType(tableHandle, RaptorTableHandle.class, "tableHandle").getTableId();
        long columnId = checkType(columnHandle, RaptorColumnHandle.class, "columnHandle").getColumnId();

        TableColumn tableColumn = dao.getTableColumn(tableId, columnId);
        checkState(tableColumn != null, "no column with id %s exists", columnId);
        return tableColumn.toColumnMetadata();
    }
View Full Code Here

    public ColumnMetadata getColumnMetadata(ConnectorTableHandle tableHandle, ConnectorColumnHandle columnHandle)
    {
        long tableId = checkType(tableHandle, RaptorTableHandle.class, "tableHandle").getTableId();
        long columnId = checkType(columnHandle, RaptorColumnHandle.class, "columnHandle").getColumnId();

        TableColumn tableColumn = dao.getTableColumn(tableId, columnId);
        checkState(tableColumn != null, "no column with id %s exists", columnId);
        return tableColumn.toColumnMetadata();
    }
View Full Code Here

        RaptorTableHandle raptorTableHandle = checkType(tableHandle, RaptorTableHandle.class, "tableHandle");
        Long columnId = dao.getColumnId(raptorTableHandle.getTableId(), columnName);
        if (columnId == null) {
            return null;
        }
        TableColumn tableColumn = dao.getTableColumn(raptorTableHandle.getTableId(), columnId);
        return new RaptorColumnHandle(connectorId, columnName, columnId, tableColumn.getDataType());
    }
View Full Code Here

    public ColumnMetadata getColumnMetadata(ConnectorTableHandle tableHandle, ConnectorColumnHandle columnHandle)
    {
        long tableId = checkType(tableHandle, RaptorTableHandle.class, "tableHandle").getTableId();
        long columnId = checkType(columnHandle, RaptorColumnHandle.class, "columnHandle").getColumnId();

        TableColumn tableColumn = dao.getTableColumn(tableId, columnId);
        checkState(tableColumn != null, "no column with id %s exists", columnId);
        return tableColumn.toColumnMetadata();
    }
View Full Code Here

TOP

Related Classes of com.facebook.presto.raptor.metadata.TableColumn

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.