Package com.cbe
Class QueryResult
- java.lang.Object
-
- com.cbe.QueryResult
-
public class QueryResult extends java.lang.Object
Class QueryResult, each query generates a QueryResult object which contains the result and the filter used.
-
-
Constructor Summary
Constructors Constructor Description QueryResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
containersLoaded()
Returns # of containers loaded in to the query result.boolean
containsItem(long itemId)
Checks if the Item with id @param itemId, is in the query result.Filter
filter()
Filter can be used to see what container has been queried and other filter parameters.Items_Vec
getItemsSnapshot()
Returns a copy of a vector containing the items from the query.long
itemsLoaded()
Returns # of items loaded in the queryResult.long
objectsLoaded()
Returns # of objects loaded in to the query result.long
totalCount()
total # items in the cloud matching the query result.
-
-
-
Method Detail
-
filter
public Filter filter()
Filter can be used to see what container has been queried and other filter parameters.
-
getItemsSnapshot
public Items_Vec getItemsSnapshot()
Returns a copy of a vector containing the items from the query.
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::ItemPtr> contains the items matching the query.
-
itemsLoaded
public long itemsLoaded()
Returns # of items loaded in the queryResult.
-
totalCount
public long totalCount()
total # items in the cloud matching the query result. This may be more than loaded.
-
objectsLoaded
public long objectsLoaded()
Returns # of objects loaded in to the query result.
-
containersLoaded
public long containersLoaded()
Returns # of containers loaded in to the query result.
-
containsItem
public boolean containsItem(long itemId)
Checks if the Item with id @param itemId, is in the query result.
-
-