本文整理汇总了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();
}
}
}
}
示例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());
}
}
}
示例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);
}
}
示例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);
}
}
示例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());
}
}