Objectify查询按列表过滤?

Pat*_*ick 12 google-app-engine objectify google-cloud-datastore

是否可以使用列表进行Objectify查询并获取与列表匹配的所有对象的列表?例如

List<String> vinNumberList;
Query<CarObject> q=ofy.query(CarObject.class).filter("vin",vinNumberList);
Run Code Online (Sandbox Code Playgroud)

Dan*_*iel 23

是的,它可能......添加"in",就像这样

ofy.query(CarObject.class).filter("vin in",vinNumberList);
Run Code Online (Sandbox Code Playgroud)