Skip to content

Commit

Permalink
添加返回单个Query的方法
Browse files Browse the repository at this point in the history
  • Loading branch information
flykarry committed Feb 12, 2018
1 parent 3c909ef commit bf5419c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/main/java/org/kairosdb/client/response/QueryTagResponse.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,17 @@ else if (responseCode == 200)
return null;
}

/**
* 对于单个查询,直接返回单个Query结果
* @return
*/
public TagQuery getSingleTagQuery() {
if (results != null && results.size() > 0) {
return results.get(0);
}
return null;
}

/**
* Returns the body response as a string.
*
Expand Down

0 comments on commit bf5419c

Please sign in to comment.