Package com.cbe
Class QueryResult
java.lang.Object
com.cbe.QueryResult
resultset of data retrieved.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionQueryResult(long cPtr, boolean cMemoryOwn) QueryResult(DefaultCtor arg0) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns number ofcontainersloaded in to the query result.booleancontainsItem(long itemId) Checks if the Item with id is in the result-set.voiddelete()filter()Returns a copy of the filter used for query.voidfinalize()static longgetCPtr(QueryResult obj) Returns a copy of a vector containing the items for this QueryResult.longNumber ofitemsloaded in current QueryResult.longReturns number ofobjectsloaded in to the query result.longtotal number of items in the cloud matching the query result.
-
Field Details
-
swigCMemOwn
protected transient boolean swigCMemOwn
-
-
Constructor Details
-
QueryResult
public QueryResult(long cPtr, boolean cMemoryOwn) -
QueryResult
-
-
Method Details
-
getCPtr
-
finalize
public void finalize() -
delete
public void delete() -
filter
Returns a copy of the filter used for query. -
getItemsSnapshot
Returns a copy of a vector containing the items for this QueryResult.
The QueryResult will be updated when new data comes in, but the returned
copy will not.
Note: If iterating, make sure to create a variable for a local copy.
- Returns:
- The items matching the query.
-
itemsLoaded
public long itemsLoaded()Number ofitemsloaded in current QueryResult. -
totalCount
public long totalCount()total number of items in the cloud matching the query result.
This may be more than loaded. -
objectsLoaded
public long objectsLoaded()Returns number ofobjectsloaded in to the query result. -
containersLoaded
public long containersLoaded()Returns number ofcontainersloaded in to the query result. -
containsItem
public boolean containsItem(long itemId) Checks if the Item with id is in the result-set.
- Parameters:
itemId- id number of the item asked for
-