Evaluate (search for) this single SQL-Esce term within the supplied index and place the result in the supplied bitmap.
| Return Type | Function name | Arguments |
|---|---|---|
| hzEcode | _hz_sqle_unit::Evaluate | (hzIntset&,hdbIndexText*,) |
Declared and defined in file: hdbIndex.cpp
Function Logic:
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 ;
}