当前位置: 首页>>代码示例>>Java>>正文


Java TableName类代码示例

本文整理汇总了Java中com.stratio.crossdata.common.data.TableName的典型用法代码示例。如果您正苦于以下问题:Java TableName类的具体用法?Java TableName怎么用?Java TableName使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


TableName类属于com.stratio.crossdata.common.data包,在下文中一共展示了TableName类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createJoin

import com.stratio.crossdata.common.data.TableName; //导入依赖的package包/类
private Join createJoin(String joinId, String leftSourceId, TableName rightSourceId) {

        ColumnSelector leftSelector = new ColumnSelector(new ColumnName(null, leftSourceId,
                COLUMN1_CONSTANT));
        ColumnSelector rightSelector = new ColumnSelector(new ColumnName(rightSourceId.getCatalogName().getName(),
                rightSourceId.getName(),
                COLUMN1_CONSTANT));

        Relation relation = new Relation(leftSelector, Operator.EQ, rightSelector);

        Set<Operations> operations = new HashSet<>();
        operations.add(Operations.SELECT_INNER_JOIN);

        Join join = new Join(operations, joinId);
        join.addJoinRelation(relation);
        join.addSourceIdentifier(leftSourceId);
        join.addSourceIdentifier(rightSourceId.getName());

        return join;
    }
 
开发者ID:Stratio,项目名称:stratio-connector-deep,代码行数:21,代码来源:QueryExecutorTest.java

示例2: createProject

import com.stratio.crossdata.common.data.TableName; //导入依赖的package包/类
public static Project createProject(String clusterName, String catalogName, String tableName,
                                    List<String> columnList) {

    List<ColumnName> columns = new ArrayList<>();
    for (String column : columnList) {
        columns.add(new ColumnName(catalogName, tableName, column));
    }

    TableName table = new TableName(catalogName, tableName);
    HashSet<Operations> operations = new HashSet<>();
    operations.add(Operations.PROJECT);

    return new Project(operations, table, new ClusterName(clusterName), columns);
}
 
开发者ID:Stratio,项目名称:stratio-connector-deep,代码行数:15,代码来源:LogicalWorkflowBuilder.java

示例3: createProject

import com.stratio.crossdata.common.data.TableName; //导入依赖的package包/类
private Project createProject(ClusterName clusterName, TableName tableName) {

        List<ColumnName> columns = new ArrayList<>();
        columns.add(new ColumnName(CATALOG_CONSTANT, tableName.getName(), COLUMN1_CONSTANT));
        columns.add(new ColumnName(CATALOG_CONSTANT, tableName.getName(), COLUMN2_CONSTANT));

        Set<Operations> operations = new HashSet<>();
        operations.add(Operations.PROJECT);

        return new Project(operations, tableName, clusterName, columns);
    }
 
开发者ID:Stratio,项目名称:stratio-connector-deep,代码行数:12,代码来源:QueryExecutorTest.java

示例4: delete

import com.stratio.crossdata.common.data.TableName; //导入依赖的package包/类
@Override public void delete(ClusterName targetCluster, TableName tableName, Collection<Filter> whereClauses)
        throws ConnectorException {
    throw new UnsupportedException("Method not implemented");
}
 
开发者ID:aagea,项目名称:crossdata-connector-irc,代码行数:5,代码来源:IRCStorageEngine.java

示例5: update

import com.stratio.crossdata.common.data.TableName; //导入依赖的package包/类
@Override public void update(ClusterName targetCluster, TableName tableName, Collection<Relation> assignments,
        Collection<Filter> whereClauses) throws ConnectorException {
    throw new UnsupportedException("Method not implemented");
}
 
开发者ID:aagea,项目名称:crossdata-connector-irc,代码行数:5,代码来源:IRCStorageEngine.java

示例6: truncate

import com.stratio.crossdata.common.data.TableName; //导入依赖的package包/类
@Override public void truncate(ClusterName targetCluster, TableName tableName) throws ConnectorException {
    throw new UnsupportedException("Method not implemented");
}
 
开发者ID:aagea,项目名称:crossdata-connector-irc,代码行数:4,代码来源:IRCStorageEngine.java

示例7: alterTable

import com.stratio.crossdata.common.data.TableName; //导入依赖的package包/类
@Override
public void alterTable(ClusterName targetCluster, TableName name, AlterOptions alterOptions)
        throws ConnectorException {
    throw new UnsupportedException("Method not implemented");
}
 
开发者ID:aagea,项目名称:crossdata-connector-irc,代码行数:6,代码来源:IRCMetadataEngine.java

示例8: dropTable

import com.stratio.crossdata.common.data.TableName; //导入依赖的package包/类
@Override
public void dropTable(ClusterName targetCluster, TableName name) throws ConnectorException {
    throw new UnsupportedException("Method not implemented");
}
 
开发者ID:Stratio,项目名称:crossdata-connector-skeleton,代码行数:5,代码来源:SkeletonMetadataEngine.java

示例9: provideTableMetadata

import com.stratio.crossdata.common.data.TableName; //导入依赖的package包/类
@Override public TableMetadata provideTableMetadata(ClusterName clusterName, TableName tableName)
        throws ConnectorException {
    throw new UnsupportedException("Method not implemented");
}
 
开发者ID:Stratio,项目名称:crossdata-connector-skeleton,代码行数:5,代码来源:SkeletonMetadataEngine.java

示例10: dropTable

import com.stratio.crossdata.common.data.TableName; //导入依赖的package包/类
@Override
public void dropTable(ClusterName targetCluster, TableName name) throws ConnectorException {

}
 
开发者ID:aagea,项目名称:crossdata-connector-irc,代码行数:5,代码来源:IRCMetadataEngine.java


注:本文中的com.stratio.crossdata.common.data.TableName类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。