本文整理汇总了Java中org.apache.metamodel.schema.Column.getQualifiedLabel方法的典型用法代码示例。如果您正苦于以下问题:Java Column.getQualifiedLabel方法的具体用法?Java Column.getQualifiedLabel怎么用?Java Column.getQualifiedLabel使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.metamodel.schema.Column
的用法示例。
在下文中一共展示了Column.getQualifiedLabel方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getColumnPath
import org.apache.metamodel.schema.Column; //导入方法依赖的package包/类
private String getColumnPath(final Column column, final String columnPathQualification) {
switch (columnPathQualification) {
case COLUMN_PATH_QUALIFICATION_COLUMN:
final String columnName = column.getName();
if (Strings.isNullOrEmpty(columnName)) {
return column.getTable().getName() + '.' + column.getName();
}
return column.getName();
case COLUMN_PATH_QUALIFICATION_TABLE:
return column.getTable().getName() + '.' + column.getName();
case COLUMN_PATH_QUALIFICATION_FULL:
default:
return column.getQualifiedLabel();
}
}
示例2: createMetadata
import org.apache.metamodel.schema.Column; //导入方法依赖的package包/类
public AnalysisJobMetadata createMetadata() {
final MutableAnalysisJobMetadata mutableAnalysisJobMetadata = getAnalysisJobMetadata();
final Datastore datastore = getDatastore();
final String datastoreName = (datastore == null ? null : datastore.getName());
final List<MetaModelInputColumn> sourceColumns = getSourceColumns();
final List<String> sourceColumnPaths = new ArrayList<>(sourceColumns.size());
final List<ColumnType> sourceColumnTypes = new ArrayList<>(sourceColumns.size());
for (final MetaModelInputColumn sourceColumn : sourceColumns) {
final Column column = sourceColumn.getPhysicalColumn();
final String path = column.getQualifiedLabel();
final ColumnType type = column.getType();
sourceColumnPaths.add(path);
sourceColumnTypes.add(type);
}
final Map<String, String> properties = mutableAnalysisJobMetadata.getProperties();
final Map<String, String> variables = mutableAnalysisJobMetadata.getVariables();
final String jobName = mutableAnalysisJobMetadata.getJobName();
final String jobVersion = mutableAnalysisJobMetadata.getJobVersion();
final String jobDescription = mutableAnalysisJobMetadata.getJobDescription();
final String author = mutableAnalysisJobMetadata.getAuthor();
final Date createdDate = mutableAnalysisJobMetadata.getCreatedDate();
final Date updatedDate = mutableAnalysisJobMetadata.getUpdatedDate();
return new ImmutableAnalysisJobMetadata(jobName, jobVersion, jobDescription, author, createdDate, updatedDate,
datastoreName, sourceColumnPaths, sourceColumnTypes, variables, properties);
}
示例3: getColumnPath
import org.apache.metamodel.schema.Column; //导入方法依赖的package包/类
private String getColumnPath(Column column, String columnPathQualification) {
switch (columnPathQualification) {
case COLUMN_PATH_QUALIFICATION_COLUMN:
final String columnName = column.getName();
if (Strings.isNullOrEmpty(columnName)) {
return column.getTable().getName() + '.' + column.getName();
}
return column.getName();
case COLUMN_PATH_QUALIFICATION_TABLE:
return column.getTable().getName() + '.' + column.getName();
case COLUMN_PATH_QUALIFICATION_FULL:
default:
return column.getQualifiedLabel();
}
}
示例4: createMetadata
import org.apache.metamodel.schema.Column; //导入方法依赖的package包/类
public AnalysisJobMetadata createMetadata() {
final MutableAnalysisJobMetadata mutableAnalysisJobMetadata = getAnalysisJobMetadata();
final Datastore datastore = getDatastore();
final String datastoreName = (datastore == null ? null : datastore.getName());
final List<MetaModelInputColumn> sourceColumns = getSourceColumns();
final List<String> sourceColumnPaths = new ArrayList<>(sourceColumns.size());
final List<ColumnType> sourceColumnTypes = new ArrayList<>(sourceColumns.size());
for (final MetaModelInputColumn sourceColumn : sourceColumns) {
final Column column = sourceColumn.getPhysicalColumn();
final String path = column.getQualifiedLabel();
final ColumnType type = column.getType();
sourceColumnPaths.add(path);
sourceColumnTypes.add(type);
}
final Map<String, String> properties = mutableAnalysisJobMetadata.getProperties();
final Map<String, String> variables = mutableAnalysisJobMetadata.getVariables();
final String jobName = mutableAnalysisJobMetadata.getJobName();
final String jobVersion = mutableAnalysisJobMetadata.getJobVersion();
final String jobDescription = mutableAnalysisJobMetadata.getJobDescription();
final String author = mutableAnalysisJobMetadata.getAuthor();
final Date createdDate = mutableAnalysisJobMetadata.getCreatedDate();
final Date updatedDate = mutableAnalysisJobMetadata.getUpdatedDate();
final AnalysisJobMetadata metadata = new ImmutableAnalysisJobMetadata(jobName, jobVersion, jobDescription,
author, createdDate, updatedDate, datastoreName, sourceColumnPaths, sourceColumnTypes, variables,
properties);
return metadata;
}