LbmSegmentReader.h

Go to the documentation of this file.
00001 /*
00002 // $Id: //open/dev/fennel/lucidera/bitmap/LbmSegmentReader.h#12 $
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_LbmSegmentReader_Included
00023 #define Fennel_LbmSegmentReader_Included
00024 
00025 #include "fennel/tuple/TupleData.h"
00026 #include "fennel/exec/ExecStreamDefs.h"
00027 #include "fennel/lucidera/bitmap/LbmSegmentReaderBase.h"
00028 
00029 FENNEL_BEGIN_NAMESPACE
00030 
00041 class FENNEL_LBM_EXPORT LbmSegmentReader
00042     : public LbmSegmentReaderBase
00043 {
00047     bool firstReadDone;
00048 
00054     ExecStreamResult readSegment();
00055 
00059     void initCommon();
00060 
00061 public:
00070     void init(
00071         SharedExecStreamBufAccessor &pInAccessorInit,
00072         TupleData &bitmapSegTupleInit);
00073 
00087     void init(
00088         SharedExecStreamBufAccessor &pInAccessorInit,
00089         TupleData &bitmapSegTupleInit,
00090         bool setBitmapInit,
00091         boost::dynamic_bitset<> *pBitmapInit);
00092 
00101     void init(
00102         SharedLbmTupleReader &pTupleReaderInit,
00103         TupleData &bitmapSegTupleInit);
00104 
00118     void init(
00119         SharedLbmTupleReader &pTupleReaderInit,
00120         TupleData &bitmapSegTupleInit,
00121         bool setBitmapInit,
00122         boost::dynamic_bitset<> *pBitmapInit);
00123 
00132     ExecStreamResult advanceToRid(LcsRid rid);
00133 
00143     ExecStreamResult advanceToByte(LbmByteNumber byteNum);
00144 
00157     void readCurrentByteSegment(LcsRid &startRid, PBuffer &byteSeg, uint &len);
00158 };
00159 
00160 FENNEL_END_NAMESPACE
00161 
00162 #endif
00163 
00164 // End LbmSegmentReader.h

Generated on Mon Jun 22 04:00:19 2009 for Fennel by  doxygen 1.5.1