Evaluate this SQL-Esce expression within the supplied index and place the result in the supplied bitmap.
| Return Type | Function name | Arguments |
|---|---|---|
| hzEcode | _hz_sqle_expr::Evaluate | (hzIntset&,) |
Declared and defined in file: hdbIndex.cpp
Function Logic:
Function body:
hzEcode _hz_sqle_expr::Evaluate (hzIntset& result)
{
// Evaluate this SQL-Esce expression within the supplied index and place the result in the supplied bitmap.
//
// Arguments: 1) The bitmap (of document ids) to be populated by the search operation.
//
// 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_expr::Evaluate") ;
// Result.Clear() ;
if (!m_pIndex)
hzexit(E_CORRUPT, "No index supplied") ;
if (!m_pRoot)
{
threadLog("No root!\n") ;
return E_OK ;
}
threadLog("Calling Eval\n") ;
return m_pRoot->Evaluate(result, m_pIndex) ;
}