com.facebook.presto.metadata.Metadata.createTable()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(1.9k)|赞(0)|评价(0)|浏览(134)

本文整理了Java中com.facebook.presto.metadata.Metadata.createTable()方法的一些代码示例,展示了Metadata.createTable()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Metadata.createTable()方法的具体详情如下:
包路径:com.facebook.presto.metadata.Metadata
类名称:Metadata
方法名:createTable

Metadata.createTable介绍

[英]Creates a table using the specified table metadata.
[中]使用指定的表元数据创建表。

代码示例

代码示例来源:origin: prestodb/presto

metadata.createTable(session, tableName.getCatalogName(), tableMetadata, statement.isNotExists());

代码示例来源:origin: prestodb/presto

inSetupTransaction(session -> metadata.createTable(session, TPCH_CATALOG,
    new ConnectorTableMetadata(table1, ImmutableList.of(
        new ColumnMetadata("a", BIGINT),
inSetupTransaction(session -> metadata.createTable(session, TPCH_CATALOG,
    new ConnectorTableMetadata(table2, ImmutableList.of(
        new ColumnMetadata("a", BIGINT),
inSetupTransaction(session -> metadata.createTable(session, TPCH_CATALOG,
    new ConnectorTableMetadata(table3, ImmutableList.of(
        new ColumnMetadata("a", BIGINT),
inSetupTransaction(session -> metadata.createTable(session, SECOND_CATALOG,
    new ConnectorTableMetadata(table4, ImmutableList.of(
        new ColumnMetadata("a", BIGINT))),
inSetupTransaction(session -> metadata.createTable(session, TPCH_CATALOG,
    new ConnectorTableMetadata(table5, ImmutableList.of(
        new ColumnMetadata("a", BIGINT),
inSetupTransaction(session -> metadata.createTable(session, TPCH_CATALOG,
    new ConnectorTableMetadata(table6, ImmutableList.of(
        new ColumnMetadata("a", BIGINT),
inSetupTransaction(session -> metadata.createTable(session, TPCH_CATALOG,
    new ConnectorTableMetadata(table7, ImmutableList.of(
        new ColumnMetadata("a", BIGINT),

代码示例来源:origin: uk.co.nichesolutions.presto/presto-main

new ConnectorTableMetadata(tableName.asSchemaTableName(), columns, properties, session.getUser(), false));
metadata.createTable(session, tableName.getCatalogName(), tableMetadata);

相关文章