Return TypeFunction nameArguments
hzEcodehdbIndexEnum::Select(hdbIdset&,const hzAtom&,)

Declared in file: hzDatabase.h
Defined in file : hdbIndex.cpp

Function Logic:

0:START 1:hdbIdset::Clear val 2:val<=0||val>m_Maps.Count() 3:Return E_RANGE 4:pS 5:!pS 6:Return hzerr(E_CORRUPT,Bitmap stated as existing could not be retrieved from the map) 7:Result 8:Result.Count()!=pS->Count() 9:Return hzerr(E_CORRUPT,Index bound bitmap has %d records, copy has %d records,pS->Count(),Result.Count()) 10:Return rc

Function body:

hzEcode hdbIndexEnum::Select (hdbIdset& Result, const hzAtom& Key)
{
   _hzfunc("hdbIndexEnum::Select") ;
   hdbIdset*   pS ;
   uint32_t    val ;
   hzEcode     rc = E_OK ;
   Result.Clear() ;
   val = (uint32_t) Key ;
   if (val <&eq; 0|| val > m_Maps.Count())
       return E_RANGE ;
   pS = m_Maps[val] ;
   if (!pS)
       return hzerr(E_CORRUPT, "Bitmap stated as existing could not be retrieved from the map") ;
   Result = *pS ;
   if (Result.Count() != pS->Count())
       return hzerr(E_CORRUPT, "Index bound bitmap has %d records, copy has %d records", pS->Count(), Result.Count()) ;
   return rc ;
}