public boolean isSameAs(String tableName, String columnName) { return colRef.isSameAs(tableName, columnName); }
public int findFactTableColumn(String columnName) { if (columnName == null) return -1; for (int i = 0; i < allColumns.size(); ++i) { TblColRef tblColRef = allColumns.get(i); if (tblColRef.isSameAs(desc.getFactTableName(), columnName)) { return i; } } return -1; }
public TblColRef selectTblColRef(Collection<TblColRef> metricColumns, String factTableName) { if (this.isCount()) return null; // count is not about any column but the whole row ParameterDesc parameter = this.getParameter(); if (parameter == null) return null; String columnName = parameter.getValue(); for (TblColRef col : metricColumns) { if (col.isSameAs(factTableName, columnName)) { return col; } } return null; }
TblColRef col = allColumns.get(i); if (col.isSameAs(this.getFactTableName(), this.timestampDimension)) { tsCol = i; break;
public boolean isSameAs(String tableName, String columnName) { return colRef.isSameAs(tableName, columnName); }
boolean updated = false; for (TblColRef column : columns) { if (column.isSameAs(factTableName, functionDesc.getParameter().getValue())) { if (functionDesc.isCountDistinct()) {
public int findFactTableColumn(String columnName) { if (columnName == null) return -1; for (int i = 0; i < getColumns().size(); ++i) { TblColRef tblColRef = getColumns().get(i); if (tblColRef.isSameAs(desc.getFactTableName(), columnName)) { return i; } } return -1; }
public TblColRef selectTblColRef(Collection<TblColRef> metricColumns, String factTableName) { if (this.isCount()) return null; // count is not about any column but the whole row ParameterDesc parameter = this.getParameter(); if (parameter == null) return null; String columnName = parameter.getValue(); for (TblColRef col : metricColumns) { if (col.isSameAs(factTableName, columnName)) { return col; } } return null; }
TblColRef col = allColumns.get(i); if (col.isSameAs(this.getFactTableName(), this.timestampDimension)) { tsCol = i; break;