简体   繁体   English

如何在GitHub上搜索有关如何在Java中使用DBObject的示例?

[英]How can I search GitHub for an example of how to use DBObject in Java?

A possible solution to one problem I'm having has led me to wonder if/how I can searh GitHub for an example of how DB Object and BasicDBObjct are used. 我可能遇到的一个问题的解决方案使我想知道是否/如何可以找到GitHub,以获取有关如何使用DB Object和BasicDBObjct的示例。 http://api.mongodb.com/java/2.0/com/mongodb/BasicDBObject.html https://api.mongodb.com/java/2.6/com/mongodb/DBObject.html http://api.mongodb.com/java/2.0/com/mongodb/BasicDBObject.html https://api.mongodb.com/java/2.6/com/mongodb/DBObject.html

This blog post on GitHub leads me to believe it is possible: https://github.com/blog/202-github-code-search GitHub上的此博客文章使我相信这是可能的: https : //github.com/blog/202-github-code-search

but when I go to https://github.com/search/advanced where it's been implemented, I can't seem to get beyond searching for example of DBObject being used in the repository name. 但是当我转到https://github.com/search/advanced实现它的地方时,我似乎无法超越在存储库名称中使用DBObject的示例。

For example: https://github.com/search?utf8=%E2%9C%93&q=dbobject++language%3AJava&type=Repositories&ref=advsearch&l=Java&l= 例如: https : //github.com/search?utf8=%E2%9C%93&q=dbobject++language%3AJava&type=Repositories&ref=advsearch&l=Java&l=

Was this functionality taken out or am I missing a really simple search parameter? 该功能是否已删除?或者我错过了一个非常简单的搜索参数?

From your search results, click the "Code" tab at the top. 在搜索结果中,点击顶部的“代码”标签。 That should bring you here: https://github.com/search?l=&q=dbobject++language%3AJava&ref=advsearch&type=Code&utf8=%E2%9C%93 , which I think is what you're looking for. 那应该带你到这里: https : //github.com/search? l =&q=dbobject++language%3AJava&ref=advsearch&type=Code&utf8=%E2%9C%93 ,我认为这是您正在寻找的东西。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM