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


Java StringUtil.toUpperCaseArray方法代码示例

本文整理汇总了Java中org.apache.kylin.common.util.StringUtil.toUpperCaseArray方法的典型用法代码示例。如果您正苦于以下问题:Java StringUtil.toUpperCaseArray方法的具体用法?Java StringUtil.toUpperCaseArray怎么用?Java StringUtil.toUpperCaseArray使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.apache.kylin.common.util.StringUtil的用法示例。


在下文中一共展示了StringUtil.toUpperCaseArray方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: init

import org.apache.kylin.common.util.StringUtil; //导入方法依赖的package包/类
void init(DataModelDesc model) {
    table = table.toUpperCase();
    if (columns != null) {
        StringUtil.toUpperCaseArray(columns, columns);
    }

    if (model != null) {
        table = model.findTable(table).getAlias();
        if (columns != null) {
            for (int i = 0; i < columns.length; i++) {
                TblColRef column = model.findColumn(table, columns[i]);

                if (column.getColumnDesc().isComputedColumn() && !model.isFactTable(column.getTableRef())) {
                    throw new RuntimeException("Computed Column on lookup table is not allowed");
                }

                columns[i] = column.getName();
            }
        }
    }
}
 
开发者ID:apache,项目名称:kylin,代码行数:22,代码来源:ModelDimensionDesc.java

示例2: init

import org.apache.kylin.common.util.StringUtil; //导入方法依赖的package包/类
public void init(CubeDesc cubeDesc) {
    cubeRef = cubeDesc;

    for (HBaseColumnFamilyDesc cf : columnFamily) {
        cf.setName(cf.getName().toUpperCase());

        for (HBaseColumnDesc c : cf.getColumns()) {
            c.setQualifier(c.getQualifier().toUpperCase());
            StringUtil.toUpperCaseArray(c.getMeasureRefs(), c.getMeasureRefs());
        }
    }
}
 
开发者ID:apache,项目名称:kylin,代码行数:13,代码来源:HBaseMappingDesc.java

示例3: init

import org.apache.kylin.common.util.StringUtil; //导入方法依赖的package包/类
public void init(Map<String, TableDesc> tables) {
    if (name != null)
        name = name.toUpperCase();
    if (table != null)
        table = table.toUpperCase();
    if (column != null)
        column = column.toUpperCase();

    TableDesc tableDesc = tables.get(table);
    if (tableDesc == null)
        throw new IllegalStateException("Can't find table " + table + " on dimension " + name);

    if (hierarchy != null && hierarchy.length == 0)
        hierarchy = null;
    if (derived != null && derived.length == 0)
        derived = null;

    if (join != null) {
        StringUtil.toUpperCaseArray(join.getForeignKey(), join.getForeignKey());
        StringUtil.toUpperCaseArray(join.getPrimaryKey(), join.getPrimaryKey());
    }

    if (hierarchy != null) {
        for (HierarchyDesc h : hierarchy)
            h.setColumn(h.getColumn().toUpperCase());
    }

    if (derived != null) {
        StringUtil.toUpperCaseArray(derived, derived);
    }
}
 
开发者ID:KylinOLAP,项目名称:Kylin,代码行数:32,代码来源:DimensionDesc.java

示例4: init

import org.apache.kylin.common.util.StringUtil; //导入方法依赖的package包/类
public void init(CubeDesc cubeDesc, Map<String, TableDesc> tables) {
    if (name != null)
        name = name.toUpperCase();

    if (table != null)
        table = table.toUpperCase();

    tableDesc = tables.get(this.getTable());
    if (tableDesc == null)
        throw new IllegalStateException("Can't find table " + table + " for dimension " + name);

    join = null;
    for (LookupDesc lookup : cubeDesc.getModel().getLookups()) {
        if (lookup.getTable().equalsIgnoreCase(this.getTable())) {
            join = lookup.getJoin();
            break;
        }
    }

    if (isHierarchy && this.column.length > 0) {
        List<HierarchyDesc> hierarchyList = new ArrayList<HierarchyDesc>(3);
        for (int i = 0, n = this.column.length; i < n; i++) {
            String aColumn = this.column[i];
            HierarchyDesc aHierarchy = new HierarchyDesc();
            aHierarchy.setLevel(String.valueOf(i + 1));
            aHierarchy.setColumn(aColumn);
            hierarchyList.add(aHierarchy);
        }

        this.hierarchy = hierarchyList.toArray(new HierarchyDesc[hierarchyList.size()]);
    }

    if (hierarchy != null && hierarchy.length == 0)
        hierarchy = null;
    if (derived != null && derived.length == 0)
        derived = null;

    if (hierarchy != null) {
        for (HierarchyDesc h : hierarchy)
            h.setColumn(h.getColumn().toUpperCase());
    }

    if (derived != null) {
        StringUtil.toUpperCaseArray(derived, derived);
    }
    
    if (derived != null && join == null) {
        throw new IllegalStateException("Derived can only be defined on lookup table, cube " + cubeDesc + ", " + this);
    }
}
 
开发者ID:KylinOLAP,项目名称:Kylin,代码行数:51,代码来源:DimensionDesc.java

示例5: capicalizeStrings

import org.apache.kylin.common.util.StringUtil; //导入方法依赖的package包/类
public static void capicalizeStrings(List<IIDimension> dimensions) {
    for (IIDimension iiDimension : dimensions) {
        iiDimension.setTable(iiDimension.getTable().toUpperCase());
        StringUtil.toUpperCaseArray(iiDimension.getColumns(), iiDimension.getColumns());
    }
}
 
开发者ID:KylinOLAP,项目名称:Kylin,代码行数:7,代码来源:IIDimension.java


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