We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
例如:(key)http://www.a.com,(value)["http://http://www.a.com",0,1480523195349,0]是其中的一个链接的保存字段,请问后面的0,1480523195349,0是什么意思呢?
The text was updated successfully, but these errors were encountered:
参考以下代码 :-)
\cn\edu\hfut\dmic\webcollector\util\CrawlDatumFormater.java
public static CrawlDatum jsonStrToDatum(String crawlDatumKey, String jsonStr) { JsonArray jsonArray = GsonUtils.parse(jsonStr).getAsJsonArray(); CrawlDatum crawlDatum = new CrawlDatum(); crawlDatum.key(crawlDatumKey); crawlDatum.url(jsonArray.get(0).getAsString()); crawlDatum.setStatus(jsonArray.get(1).getAsInt()); crawlDatum.setExecuteTime(jsonArray.get(2).getAsLong()); crawlDatum.setExecuteCount(jsonArray.get(3).getAsInt()); if (jsonArray.size() == 5) { JsonObject metaJsonObject = jsonArray.get(4).getAsJsonObject(); crawlDatum.meta(metaJsonObject); } return crawlDatum; }
Sorry, something went wrong.
No branches or pull requests
例如:(key)http://www.a.com,(value)["http://http://www.a.com",0,1480523195349,0]是其中的一个链接的保存字段,请问后面的0,1480523195349,0是什么意思呢?
The text was updated successfully, but these errors were encountered: