Package com.cbe
Class GroupQuery
- java.lang.Object
-
- com.cbe.GroupQuery
-
public class GroupQuery extends java.lang.Object
class GroupQuery, class that manages return group queries.
-
-
Constructor Summary
Constructors Constructor Description GroupQuery()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
containsGroup(long groupId)
Returns if the group with groupId was loaded in the query.GroupFilter
filter()
Returns a copy of the filter used for query.Groups_Vec
getGroupsSnapshot()
Returns a copy of a vector containing the groups for the queryResult.long
GroupsLoaded()
groups loaded in the queryResult.long
totalCount()
total Groups in the cloud matching the query result.
-
-
-
Method Detail
-
filter
public GroupFilter filter()
Returns a copy of the filter used for query.
-
getGroupsSnapshot
public Groups_Vec getGroupsSnapshot()
Returns a copy of a vector containing the groups for the queryResult.
The queryResult will update when new data comes in but the copy will not.
If iterating make sure to create a variable for a local copy.- Returns:
- vector<CBE::GroupPtr> contains the groups matching the query.
-
GroupsLoaded
public long GroupsLoaded()
groups loaded in the queryResult.
-
totalCount
public long totalCount()
total Groups in the cloud matching the query result. This may be more than loaded.
-
containsGroup
public boolean containsGroup(long groupId)
Returns if the group with groupId was loaded in the query.
-
-