Query query String = >Map
This commit is contained in:
parent
9f1ea2fa8e
commit
81dbd153f2
@ -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() {
|
||||||
|
@ -19,5 +19,16 @@
|
|||||||
"container":"network_crawler"
|
"container":"network_crawler"
|
||||||
},
|
},
|
||||||
"items" : [
|
"items" : [
|
||||||
|
{
|
||||||
|
"queries": [
|
||||||
|
{
|
||||||
|
"queryInfo" : {
|
||||||
|
"query" : "show session status",
|
||||||
|
"direction" : "col"
|
||||||
|
},
|
||||||
|
"keys" : []
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user