LbmNormalizerExecStream.h

Go to the documentation of this file.
00001 /*
00002 // $Id: //open/dev/fennel/lucidera/bitmap/LbmNormalizerExecStream.h#4 $
00003 // Fennel is a library of data storage and processing components.
00004 // Copyright (C) 2005-2009 LucidEra, Inc.
00005 // Copyright (C) 2005-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_LbmNormalizerExecStream_Included
00023 #define Fennel_LbmNormalizerExecStream_Included
00024 
00025 #include "fennel/lucidera/bitmap/LbmByteSegment.h"
00026 #include "fennel/lucidera/bitmap/LbmSeqSegmentReader.h"
00027 
00028 #include "fennel/exec/ConduitExecStream.h"
00029 #include "fennel/tuple/TupleAccessor.h"
00030 #include "fennel/tuple/TupleData.h"
00031 
00032 FENNEL_BEGIN_NAMESPACE
00033 
00038 struct LbmNormalizerExecStreamParams : public ConduitExecStreamParams
00039 {
00040     TupleProjection keyProj;
00041 };
00042 
00059 class FENNEL_LBM_EXPORT LbmNormalizerExecStream
00060     : public ConduitExecStream
00061 {
00065     TupleDescriptor keyBitmapDesc;
00066     TupleAccessor keyBitmapAccessor;
00067     TupleData keyBitmapData;
00068 
00072     TupleProjection keyProj;
00073     TupleDescriptor keyDesc;
00074     TupleData keyData;
00075 
00079     LbmSeqSegmentReader segmentReader;
00080 
00084     bool producePending;
00085 
00089     uint nTuplesPending;
00090 
00094     LbmByteSegment segment;
00095 
00099     ExecStreamResult readSegment();
00100 
00104     bool produceTuple();
00105 
00106 public:
00107     virtual void prepare(LbmNormalizerExecStreamParams const &params);
00108     virtual void open(bool restart);
00109     virtual ExecStreamResult execute(ExecStreamQuantum const &quantum);
00110 };
00111 
00112 FENNEL_END_NAMESPACE
00113 
00114 #endif
00115 
00116 // End LbmNormalizerExecStream.h

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