Parse android sdk 在Parse Sdk Android中查询指针

Parse android sdk 在Parse Sdk Android中查询指针,parse-android-sdk,Parse Android Sdk,我有一个最喜欢的类,它有一个指向名为Location的类的指针作为其位置字段之一。我想查询Favorite类并检索指向某个位置对象的所有对象。在javascript中,我只需创建一个Location对象,将id设置为我感兴趣的位置的objectId,并在Location等于该对象的位置查询Favorite 但在android中,我无法设置objectId。另外,仅将查询设置为objctId的字符串也不起作用 // Something I would have expected existed /

我有一个最喜欢的类,它有一个指向名为Location的类的指针作为其位置字段之一。我想查询Favorite类并检索指向某个位置对象的所有对象。在javascript中,我只需创建一个Location对象,将id设置为我感兴趣的位置的objectId,并在Location等于该对象的位置查询Favorite

但在android中,我无法设置objectId。另外,仅将查询设置为objctId的字符串也不起作用

// Something I would have expected existed
//ParseObject location = new ParseObject("Location");
//location.setObjectId(locationId);

final ParseQuery<ParseObject> query = ParseQuery.getQuery("Favorite");
// if I had the location object, but I only have the locationId
//query.whereEqualTo("location", location );

query.whereEqualTo("location", locationId);
query.findInBackground(...
//我本以为存在的东西
//ParseObject位置=新的ParseObject(“位置”);
//location.setObjectId(locationId);
final ParseQuery=ParseQuery.getQuery(“收藏夹”);
//如果我有location对象,但我只有locationId
//查询:whereEqualTo(“位置”,位置);
查询:whereEqualTo(“位置”,locationId);
query.findInBackground(。。。
query.whereEqualTo("location",Parse.createWithoutData(reference_classname,ObjectId));