00001 /* 00002 // $Id: //open/dev/fennel/lucidera/colstore/LcsResidualColumnFilters.h#7 $ 00003 // Fennel is a library of data storage and processing components. 00004 // Copyright (C) 2006-2009 LucidEra, Inc. 00005 // Copyright (C) 2006-2009 The Eigenbase Project 00006 // 00007 // This program is free software; you can redistribute it and/or modify it 00008 // under the terms of the GNU General Public License as published by the Free 00009 // Software Foundation; either version 2 of the License, or (at your option) 00010 // any later version approved by The Eigenbase Project. 00011 // 00012 // This program is distributed in the hope that it will be useful, 00013 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 // GNU General Public License for more details. 00016 // 00017 // You should have received a copy of the GNU General Public License 00018 // along with this program; if not, write to the Free Software 00019 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00020 */ 00021 00022 #ifndef Fennel_LcsResidualColumnFilters_Included 00023 #define Fennel_LcsResidualColumnFilters_Included 00024 00025 #include <boost/scoped_array.hpp> 00026 #include <boost/dynamic_bitset.hpp> 00027 #include "fennel/tuple/TupleDescriptor.h" 00028 #include "fennel/tuple/TupleData.h" 00029 #include "fennel/tuple/TupleDataWithBuffer.h" 00030 #include "fennel/tuple/UnalignedAttributeAccessor.h" 00031 #include "fennel/common/SearchEndpoint.h" 00032 #include "fennel/common/SharedTypes.h" 00033 00034 00035 FENNEL_BEGIN_NAMESPACE 00036 00040 struct LcsResidualFilter 00041 { 00045 SearchEndpoint lowerBoundDirective; 00046 00050 SearchEndpoint upperBoundDirective; 00051 00055 boost::scoped_array<FixedBuffer> boundBuf; 00056 00060 TupleData boundData; 00061 }; 00062 00063 00064 struct LcsResidualColumnFilters 00065 { 00069 TupleDescriptor inputKeyDesc; 00070 00074 UnalignedAttributeAccessor attrAccessor; 00075 00079 TupleProjection readerKeyProj; 00080 00084 bool hasResidualFilters; 00085 00089 TupleProjection lowerBoundProj; 00090 00094 TupleProjection upperBoundProj; 00095 00099 std::vector<SharedLcsResidualFilter> filterData; 00100 00104 bool filterDataInitialized; 00105 00109 boost::dynamic_bitset<> filteringBitmap; 00110 00114 TupleDataWithBuffer readerKeyData; 00115 }; 00116 00117 typedef LcsResidualColumnFilters *PLcsResidualColumnFilters; 00118 00119 FENNEL_END_NAMESPACE 00120 00121 #endif 00122 00123 // End LcsResidualColumnFilters.h