From af1d09351ce4cc6ddf79870252c22f742060afef Mon Sep 17 00:00:00 2001 From: "jackdaw@loafle.com" Date: Tue, 25 Apr 2017 16:07:34 +0900 Subject: [PATCH] result set --- .../com/loafle/overflow/crawler/result/OFResultSet.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/loafle/overflow/crawler/result/OFResultSet.java b/src/main/java/com/loafle/overflow/crawler/result/OFResultSet.java index a581a7f..546a874 100644 --- a/src/main/java/com/loafle/overflow/crawler/result/OFResultSet.java +++ b/src/main/java/com/loafle/overflow/crawler/result/OFResultSet.java @@ -56,7 +56,12 @@ public class OFResultSet { public Map getData() { - return null; + String type = (String) this.item.getQuery().getQueryInfo().get("parseType"); + if (type.equals("row")) { + return parseRow(); + } else { + return parseCol(); + } } public Map parseCol() {