Merge remote-tracking branch 'origin/master'

This commit is contained in:
snoop 2017-04-25 18:42:13 +09:00
commit 20a5664794

View File

@ -68,14 +68,11 @@ public class OFResultSetRow extends OFResultSet{
Query query = this.item.getQuery();
List<String> metrics = this.item.getMetrics();
// 동적 키인지 일반 키들인지 체크해야함 // 일단은 동적 키적용
String metricsType = (String) query.getQueryInfo().get("metricsType");
List<String> arrayColumns = (List<String>) this.item.getQuery().getQueryInfo().get("arrayColumns");
List<String> keyColumns = (List<String>) this.item.getQuery().getQueryInfo().get("keyColumns");
List<String> keys = query.getKeys();
boolean find = false;
int findIndex = -1;
for (String keyColumn: keyColumns) {
@ -92,6 +89,7 @@ public class OFResultSetRow extends OFResultSet{
String metric = metrics.get(findIndex);
if (arrayColumns != null) {
for (int i =0 ; i< arrayColumns.size() ; ++i) {
// replace
String k = "$" + i;
@ -99,7 +97,7 @@ public class OFResultSetRow extends OFResultSet{
String replaceString = data.get(dataIndex);
metric = metric.replace(k,"'" + replaceString + "'");
}
}
return metric;
}