resultsetcol
This commit is contained in:
snoop 2017-04-25 17:22:07 +09:00
parent a1d49745c2
commit 0289074ffe

View File

@ -21,6 +21,12 @@ public class OFResultSetCol extends OFResultSet{
List<String> meta = this.item.getQuery().getKeys();
String[] columns = (String[])this.item.getQuery().getQueryInfo().get("arrayColumns");
for( int indexI = 0 ; indexI < columns.length; ++indexI) {
meta.add(columns[indexI]);
}
if(this.meta == null) {
this.meta = new HashMap<>();
}
@ -34,7 +40,7 @@ public class OFResultSetCol extends OFResultSet{
public Map<String, String> parse() {
List<String> metrics = this.item.getMetrics();
String[] arrayColumns = (String[])this.item.getQuery().getQueryInfo().get("arrayColumns");
List<String> arrayColumns = (List<String>)this.item.getQuery().getQueryInfo().get("arrayColumns");
// this.meta
Map<String, String> resultMap = new HashMap<>();
@ -54,8 +60,8 @@ public class OFResultSetCol extends OFResultSet{
arrayValue.clear();
for(int indexL =0; indexL < arrayColumns.length; ++indexL) {
columnIdx = this.meta.get(arrayColumns[indexL]);
for(int indexL =0; indexL < arrayColumns.size(); ++indexL) {
columnIdx = this.meta.get(arrayColumns.get(indexL));
arrayValue.add(row.get(columnIdx));
}