Package com.cbe

Class QueryResult

java.lang.Object
com.cbe.QueryResult

public class QueryResult extends Object
resultset of data retrieved.
  • Field Details

    • swigCMemOwn

      protected transient boolean swigCMemOwn
  • Constructor Details

    • QueryResult

      public QueryResult(long cPtr, boolean cMemoryOwn)
    • QueryResult

      public QueryResult(DefaultCtor arg0)
      Default constructor.

      Construct a new object with
      the DefaultCtor to enable the
      operator bool()
      test
  • Method Details

    • getCPtr

      public static long getCPtr(QueryResult obj)
    • finalize

      public void finalize()
      Overrides:
      finalize in class Object
    • delete

      public void delete()
    • filter

      public Filter filter()
      Returns a copy of the filter used for query.
    • getItemsSnapshot

      public Items_Vec 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 of items 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 of objects loaded in to the query result.
    • containersLoaded

      public long containersLoaded()
      Returns number of containers 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