public void init(CubeDesc cubeDesc) { cubeRef = cubeDesc; for (HBaseColumnFamilyDesc cf : columnFamily) { cf.setName(cf.getName().toUpperCase(Locale.ROOT)); for (HBaseColumnDesc c : cf.getColumns()) { c.setQualifier(c.getQualifier().toUpperCase(Locale.ROOT)); StringUtil.toUpperCaseArray(c.getMeasureRefs(), c.getMeasureRefs()); } } }
void init(DataModelDesc model) { table = table.toUpperCase(Locale.ROOT); 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(); } } } }
throw new IllegalStateException("Missing join conditions on table " + dimTable); StringUtil.toUpperCaseArray(join.getForeignKey(), join.getForeignKey()); StringUtil.toUpperCaseArray(join.getPrimaryKey(), join.getPrimaryKey());
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); } }
public static void capicalizeStrings(List<IIDimension> dimensions) { for (IIDimension iiDimension : dimensions) { iiDimension.setTable(iiDimension.getTable().toUpperCase()); StringUtil.toUpperCaseArray(iiDimension.getColumns(), iiDimension.getColumns()); } }
StringUtil.toUpperCaseArray(aggregationGroups[i], this.aggregationGroups[i]);
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()); } } }
StringUtil.toUpperCaseArray(derived, derived);
StringUtil.toUpperCaseArray(metricNames, metricNames);
continue; StringUtil.toUpperCaseArray(join.getForeignKey(), join.getForeignKey()); StringUtil.toUpperCaseArray(join.getPrimaryKey(), join.getPrimaryKey());
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); } }
public void init(CubeDesc cubeDesc) { cubeRef = cubeDesc; for (HBaseColumnFamilyDesc cf : columnFamily) { cf.setName(cf.getName().toUpperCase(Locale.ROOT)); for (HBaseColumnDesc c : cf.getColumns()) { c.setQualifier(c.getQualifier().toUpperCase(Locale.ROOT)); StringUtil.toUpperCaseArray(c.getMeasureRefs(), c.getMeasureRefs()); } } }
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()); } } }
StringUtil.toUpperCaseArray(aggregationGroups[i], this.aggregationGroups[i]);
StringUtil.toUpperCaseArray(derived, derived);
void init(DataModelDesc model) { table = table.toUpperCase(Locale.ROOT); 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(); } } } }
StringUtil.toUpperCaseArray(metricNames, metricNames);
throw new IllegalStateException("Missing join conditions on table " + dimTable); StringUtil.toUpperCaseArray(join.getForeignKey(), join.getForeignKey()); StringUtil.toUpperCaseArray(join.getPrimaryKey(), join.getPrimaryKey());
continue; StringUtil.toUpperCaseArray(join.getForeignKey(), join.getForeignKey()); StringUtil.toUpperCaseArray(join.getPrimaryKey(), join.getPrimaryKey());