Index

DKImageQuery

Purpose:

DKImageQuery is a concrete subclass of dkQuery, created by a datastore object to represent and execute a query involving image data. Image queries refer to a class of queries on the visual content of images for an approximate match with the given image query string.

Class summary:

class DKImageQuery : public dkQuery
{
  public:
   DKImageQuery (dkDatastore* ds, const char* queryString);
   DKImageQuery (dkDatastore* ds, DKCQExpr* queryExpr);
   DKImageQuery(const DKImageQuery& query);
   virtual ~DKImageQuery();
 
   virtual void prepare(const DKNVPair* params = 0);
   virtual void execute(const DKNVPair* params = 0);
   virtual DKQueryStatus status();
   virtual DKAny result(DKBoolean fDelete = TRUE);
   virtual dkResultSetCursor* resultSetCursor();
   virtual unsigned long numberOfResults();
};

Members:

Constructors and destructor
   DKImageQuery (dkDatastore* ds, const char* queryString);
   DKImageQuery (dkDatastore* ds, DKCQExpr* queryExpr);
   DKImageQuery(const DKImageQuery& query);
   virtual ~DKImageQuery();
 

Member functions

prepare
Stages or prepares the parameter-specific query.
		virtual void prepare(const DKNVPair* params = 0):

execute
Executes this query. The result is obtained by calling result().
		virtual void execute(const DKNVPair* params = 0);

status
Gets the status of a query.
		virtual DKQueryStatus status();

result
Returns the result pointer to the caller. The result pointer is a DKAny object containing a pointer to the DKResults object. The DKResults object is a collection of DKAny objects. The value of any of these DKAny objects is a pointer to a DKDDO object storing the following information: DKDLITEMID, DKPARTNO, DKREPTYPE, and DKRANK. DKDLITEMID and DKPARTNO form a item ID to retrieve an image from a Content Manager datastore. DKREPTYPE is reserved for future use. DKRANK shows the degree of similarity based on the given image search string.
virtual DKAny result(DKBoolean fDelete = TRUE);
 

dkResultSetCursor
Returns the query result in a dkResultSetCursor object.
virtual dkResultSetCursor* resultSetCursor();
 

numberOfResults
Gets the number of query results.
virtual unsigned long numberOfResults();
 

(c) Copyright International Business Machines Corporation 1996, 2003. IBM Corp. All rights reserved.