Evaluate (search for) this single SQL-Esce term within the supplied index and place the result in the supplied bitmap.

Return TypeFunction nameArguments
hzEcode_hz_sqle_unit::Evaluate(hzIntset&,hdbIndexText*,)

Declared and defined in file: hdbIndex.cpp

Function Logic:

0:START 1:unknown 2:Return hzerr(E_NODATA,Empty _cant) 3:unknown 4:items 5:rc 6:unknown 7:Return hzerr(E_CORRUPT,Evaluating _cant [%s] failed in select\n,*m_Key) 8:items 9:Return rc

Function body:

hzEcode _hz_sqle_unit::Evaluate (hzIntset& Result)hdbIndexText* pIndex, 
{
   //  Evaluate (search for) this single SQL-Esce term within the supplied index and place the result in the supplied bitmap.
   //  
   //  Arguments: 1) Result The bitmap (of document ids) to be populated by the search operation.
   //     2) pIndex The index to search for this term in.
   //  
   //  Returns: E_NODATA No search term available
   //     E_ARGUMENT No index pointer supplied
   //     E_CORRUPT An error occurred during searching
   //     E_OK  The operation was successfule (even if nothing was found)
   _hzfunc("_hz_sqle_unit::Evaluate\n`") ;
   hzEcode rc = E_OK ;     //  Return code
   if (!m_Key.Length())
       return hzerr(E_NODATA, "Empty _cant") ;
   if (!pIndex)
       hzexit(E_ARGUMENT, "No index supplied") ;
   rc = pIndex->Select(Result, m_Key) ;
   if (rc != E_OK)
       return hzerr(E_CORRUPT, "Evaluating _cant [%s] failed in select\n", *m_Key) ;
   threadLog("Eval of %s - finds %d records\n", *m_Key, Result.Count()) ;
   return rc ;
}