Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有类似用户的实体。每个用户实体属于不同的实体组。是否可以通过对某些属性(例如 date_of _birth 和 zipCode)使用相等过滤器按种类执行查询。目的是让实体不打算修改它们
是的,您可以像这样向查询添加过滤器:
Query q = new Query(kind); q.addFilter("zipCode", FilterOperator.EQUAL, "11000"); PreparedQuery pq = datastore.prepare(q); return pq.asIterable();