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


Java Column.getQualifiedLabel方法代码示例

本文整理汇总了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();
    }
}
 
开发者ID:datacleaner,项目名称:DataCleaner,代码行数:16,代码来源:JaxbJobWriter.java

示例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);
}
 
开发者ID:datacleaner,项目名称:DataCleaner,代码行数:32,代码来源:AnalysisJobBuilder.java

示例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();
    }
}
 
开发者ID:datacleaner,项目名称:AnalyzerBeans,代码行数:16,代码来源:JaxbJobWriter.java

示例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;
}
 
开发者ID:datacleaner,项目名称:AnalyzerBeans,代码行数:34,代码来源:AnalysisJobBuilder.java


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