我试图理解这个文件的源代码: https://code.google.com/p/javageomodel/source/browse/trunk/geocell/src/test/java/com/beoui/utils/HowToUseGeocell.java
// Use this in a query
// In Google App Engine, you'll have something like below. In hibernate (or whatever else), it might be a little bit different.
// String queryString = "select from ObjectToSave where geocellsParameter.contains(geocells)";
// Query query = pm.newQuery(queryString);
// query.declareParameters("String geocellsParameter");
// List<ObjectToSave> objects = (List<ObjectToSave>)query.execute(cells);
并将其移植到 GQL 语句,以便我可以在另一种语言 (node.js) 中使用它 有谁知道 GQL 查询是什么?我的理解是,它正在生成一个过滤纬度/经度值的查询,但我不明白该查询的格式在普通 GQL 中是什么样子。
感谢您的宝贵时间
最佳答案
从此文档中: https://cloud.google.com/appengine/docs/java/datastore/jdo/queries
.contains 将列表转换为多个相等查询。
关于java - 将 java 应用引擎调用转换为 GQL,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29663770/