Query in function names

8 views
Skip to first unread message

Anirudh Ranganath

unread,
Feb 24, 2014, 2:08:01 PM2/24/14
to BG-Social...@googlegroups.com
Spotted an ambiguity while debugging:

In postCommentOnResource's parameters I was wondering what profileOwnerID really refers to.
The manual says "the unique identifier of the profile which the resource was posted on (profileOwnerID)"
Which means walluserid of the resource, and not the creatorId


Also, from the manipulations table: 
creatorid is the unique identifier of the user who created the resource that a manipulation is being posted on.

So as far as I understand,
resources.creatorid should equal manipulations.creatorid (if manipulations.rid==resources.rid)
and the postCommentOnResource's profileOwnerId should equal resources.walluserid


But from the sample MongoDbClient.java that was provided:
values.put("creatorid",new ObjectByteIterator(Integer.toString(profileOwnerID).getBytes()));

The profileOwnerId was used as creatorId. 

Doesn't this mean that the manual should specify "the unique identifier of the profile which created the resource" rather than the "resource was posted on"? 

Sumita Barahmand

unread,
Feb 26, 2014, 7:43:06 PM2/26/14
to BG-Social...@googlegroups.com
Hi,

The PostCommentOnResource action requires four input parameters which are : commentCreatorID, resourceCreatorID, resourceID, and values.
The description of each is available at : http://bgbenchmark.org/BG/doc/edu/usc/bg/base/DB.html#postCommentOnResource(int, int, int, java.util.HashMap)
The resourceCreatorID refers to the owner of the resource who creates the resource. 

Please look at the DB.java for the definition of the parameters for each action (http://bgbenchmark.org/BG/doc/edu/usc/bg/base/DB.html) not the sample clients provided.

Sumita
Reply all
Reply to author
Forward
0 new messages