Home || Visual Search || Applications || Architecture || Important Messages || OGL || Src

template<class C1, class C2>
void Impala::Core::Column::FilterUnique ( bool *&  filter,
C1 *  dst,
C2 *  src,
int  dstSize,
int  srcSize 
) [inline]

Make a filter that selects elements of src that are not present in dst.

Each element should be selected only once.

Definition at line 19 of file FilterUnique.h.

References Contains().

00020 {
00021     if (filter == 0)
00022         filter = new bool[src->Capacity()];
00023     for (int i=0 ; i<srcSize ; i++)
00024     {
00025         bool b = true;
00026         if (Contains(dst, src->Get(i), 0, dstSize))
00027             b = false;
00028         else if (Contains(src, src->Get(i), 0, i))
00029             b = false;
00030         filter[i] = b;
00031     }
00032 }

Here is the call graph for this function:


Generated on Thu Jan 13 09:18:47 2011 for ImpalaSrc by  doxygen 1.5.1