本文整理汇总了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;
}
示例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);
}
示例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);
}
示例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");
}
示例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");
}
示例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");
}
示例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");
}
示例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");
}
示例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");
}
示例10: dropTable
import com.stratio.crossdata.common.data.TableName; //导入依赖的package包/类
@Override
public void dropTable(ClusterName targetCluster, TableName name) throws ConnectorException {
}