LcsClusterDump.h

Go to the documentation of this file.
00001 /*
00002 // $Id: //open/dev/fennel/lucidera/colstore/LcsClusterDump.h#8 $
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_LcsClusterDump_Included
00023 #define Fennel_LcsClusterDump_Included
00024 
00025 #include "fennel/btree/BTreeDescriptor.h"
00026 #include "fennel/common/TraceSource.h"
00027 #include "fennel/lucidera/colstore/LcsClusterAccessBase.h"
00028 #include <boost/enable_shared_from_this.hpp>
00029 
00030 FENNEL_BEGIN_NAMESPACE
00031 
00035 class FENNEL_LCS_EXPORT LcsClusterDump
00036     : public LcsClusterAccessBase, public TraceSource
00037 {
00043     TraceLevel traceLevel;
00044 
00048     TupleDescriptor colTupleDesc;
00049 
00050     void callTrace(const char *format, ...);
00051 
00052     PBuffer fprintVal(uint idx, PBuffer pV, uint col);
00053 
00054 public:
00055     explicit LcsClusterDump(
00056         BTreeDescriptor const &bTreeDescriptor,
00057         TupleDescriptor const &colTupleDescInit,
00058         TraceLevel traceLevelInit,
00059         SharedTraceTarget pTraceTarget,
00060         std::string name);
00061 
00071     void dump(uint64_t pageId, PConstLcsClusterNode pHdr, uint szBlock);
00072 };
00073 
00074 
00075 FENNEL_END_NAMESPACE
00076 
00077 #endif
00078 
00079 // End LcsClusterDump.h

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