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;
import java.util.List;
import java.util.Map;
/**
* Created by snoop on 2017-04-21.
*/
public class Query {
String query;
Map<String,Object> queryInfo;
List<String> keys;
public String getQuery() {
return query;
public Map<String, Object> getQueryInfo() {
return queryInfo;
}
public void setQuery(String query) {
this.query = query;
public void setQueryInfo(Map<String, Object> queryInfo) {
this.queryInfo = queryInfo;
}
public List<String> getKeys() {

View File

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