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 TypeMethodDescriptionlong
Returns number ofcontainers
loaded in to the query result.boolean
containsItem
(long itemId) Checks if the Item with id is in the result-set.void
delete()
filter()
Returns a copy of the filter used for query.void
finalize()
static long
getCPtr
(QueryResult obj) Returns a copy of a vector containing the items for this QueryResult.long
Number ofitems
loaded in current QueryResult.long
Returns number ofobjects
loaded in to the query result.long
total 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 ofitems
loaded 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 ofobjects
loaded in to the query result. -
containersLoaded
public long containersLoaded()Returns number ofcontainers
loaded 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
-