Merge branch 'master' of https://www.loafle.net/gitlab/overflow/crawler_java
This commit is contained in:
commit
3aa6829e8b
|
@ -21,6 +21,12 @@ public class OFResultSetCol extends OFResultSet{
|
||||||
|
|
||||||
List<String> meta = this.item.getQuery().getKeys();
|
List<String> meta = this.item.getQuery().getKeys();
|
||||||
|
|
||||||
|
List<String> arrayColumns = (List<String>)this.item.getQuery().getQueryInfo().get("arrayColumns");
|
||||||
|
|
||||||
|
for( int indexI = 0 ; indexI < arrayColumns.size(); ++indexI) {
|
||||||
|
meta.add(arrayColumns.get(indexI));
|
||||||
|
}
|
||||||
|
|
||||||
if(this.meta == null) {
|
if(this.meta == null) {
|
||||||
this.meta = new HashMap<>();
|
this.meta = new HashMap<>();
|
||||||
}
|
}
|
||||||
|
@ -34,7 +40,7 @@ public class OFResultSetCol extends OFResultSet{
|
||||||
public Map<String, String> parse() {
|
public Map<String, String> parse() {
|
||||||
|
|
||||||
List<String> metrics = this.item.getMetrics();
|
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
|
// this.meta
|
||||||
|
|
||||||
Map<String, String> resultMap = new HashMap<>();
|
Map<String, String> resultMap = new HashMap<>();
|
||||||
|
@ -54,8 +60,8 @@ public class OFResultSetCol extends OFResultSet{
|
||||||
|
|
||||||
arrayValue.clear();
|
arrayValue.clear();
|
||||||
|
|
||||||
for(int indexL =0; indexL < arrayColumns.length; ++indexL) {
|
for(int indexL =0; indexL < arrayColumns.size(); ++indexL) {
|
||||||
columnIdx = this.meta.get(arrayColumns[indexL]);
|
columnIdx = this.meta.get(arrayColumns.get(indexL));
|
||||||
|
|
||||||
arrayValue.add(row.get(columnIdx));
|
arrayValue.add(row.get(columnIdx));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user