Query query String = >Map

This commit is contained in:
jackdaw@loafle.com 2017-04-24 16:56:52 +09:00
parent 9f1ea2fa8e
commit 81dbd153f2
2 changed files with 17 additions and 5 deletions

View File

@ -1,21 +1,22 @@
package com.loafle.overflow.crawler.config; package com.loafle.overflow.crawler.config;
import java.util.List; import java.util.List;
import java.util.Map;
/** /**
* Created by snoop on 2017-04-21. * Created by snoop on 2017-04-21.
*/ */
public class Query { public class Query {
String query; Map<String,Object> queryInfo;
List<String> keys; List<String> keys;
public String getQuery() { public Map<String, Object> getQueryInfo() {
return query; return queryInfo;
} }
public void setQuery(String query) { public void setQueryInfo(Map<String, Object> queryInfo) {
this.query = query; this.queryInfo = queryInfo;
} }
public List<String> getKeys() { public List<String> getKeys() {

View File

@ -19,5 +19,16 @@
"container":"network_crawler" "container":"network_crawler"
}, },
"items" : [ "items" : [
{
"queries": [
{
"queryInfo" : {
"query" : "show session status",
"direction" : "col"
},
"keys" : []
}
]
}
] ]
} }