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

template<class Table, class Constraint>
bool* Impala::Core::Table::Filter ( Table *  t,
Constraint &  c 
)

obtain a filter for other select functionality

Table must be of type TableTem Constrain must be a class implementing bool Check(e1...e9)

Definition at line 20 of file Filter.h.

Referenced by Select(), SelectOneColumn(), and SelectQuids().

00021 {
00022     if(t->Size() == 0)
00023         return 0;
00024     bool* filter = new bool[t->Size()];
00025     for(int i=0 ; i<t->Size() ; ++i)
00026         filter[i] = c.Check(t->Get1(i),t->Get2(i),t->Get3(i),t->Get4(i),t->Get5(i),
00027                             t->Get6(i),t->Get7(i),t->Get8(i),t->Get9(i));
00028     return filter;
00029 }


Generated on Fri Mar 19 11:19:20 2010 for ImpalaSrc by  doxygen 1.5.1