/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Public Types | Public Member Functions | Private Member Functions | Private Attributes
DbiValidityRecBuilder Class Reference

#include <DbiValidityRecBuilder.h>

Collaboration diagram for DbiValidityRecBuilder:
Collaboration graph
[legend]

List of all members.

Public Types

enum  { kMAX_AGGREGATE_NO = 1000 }

Public Member Functions

 DbiValidityRecBuilder (const DbiDBProxy &proxy, const Context &vc, const Dbi::SubSite &subsite, const Dbi::Task &task, Int_t selectDbNo=-1, Bool_t findFullTimeWindow=true)
 DbiValidityRecBuilder (const DbiDBProxy &proxy, const std::string &context, const Dbi::SubSite &subsite, const Dbi::Task &task)
 DbiValidityRecBuilder (const DbiValidityRec &vr, const std::string tableName)
virtual ~DbiValidityRecBuilder ()
std::string GetL2CacheName () const
Dbi::Task GetTask () const
Dbi::SubSite GetSubSite () const
UInt_t GetNumValidityRec () const
Int_t IndexOfAggno (Int_t aggNo) const
 Get index of AggNo or -1 if missing.
Bool_t IsExtendedContext () const
const DbiValidityRecGetValidityRec (Int_t rowNo) const
const DbiValidityRecGetValidityRecFromAggNo (Int_t aggNo) const
const DbiValidityRecGetValidityRecFromSeqNo (UInt_t SeqNo) const
Bool_t NonAggregated () const

Private Member Functions

UInt_t AddNewAgg (const DbiValidityRec &vrec, Int_t aggNo)
 Add new aggregate into tables and return its index.
UInt_t AddNewGap (Int_t aggNo)
 Add new aggregate gap into tables and return its index.
void MakeGapRec (const Context &vc, const std::string &tableName, Bool_t findFullTimeWindow=true)

Private Attributes

DbiValidityRec fGap
Bool_t fIsExtendedContext
 True for extended context query.
Dbi::SubSite fSubSite
Dbi::Task fTask
std::vector< DbiValidityRecfVRecs
 Table of effective ValidityRecs.
std::map< Int_t, UInt_t > fAggNoToIndex
 Map of Aggregate number to index in fVRecs.

Detailed Description

Id:
DbiValidityRecBuilder.h,v 1.15 2006/08/08 10:51:32 west Exp

Definition at line 39 of file DbiValidityRecBuilder.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
kMAX_AGGREGATE_NO 

Definition at line 47 of file DbiValidityRecBuilder.h.

{ kMAX_AGGREGATE_NO = 1000 };

Constructor & Destructor Documentation

DbiValidityRecBuilder::DbiValidityRecBuilder ( const DbiDBProxy proxy,
const Context vc,
const Dbi::SubSite subsite,
const Dbi::Task task,
Int_t  selectDbNo = -1,
Bool_t  findFullTimeWindow = true 
)
DbiValidityRecBuilder::DbiValidityRecBuilder ( const DbiDBProxy proxy,
const std::string &  context,
const Dbi::SubSite subsite,
const Dbi::Task task 
)
DbiValidityRecBuilder::DbiValidityRecBuilder ( const DbiValidityRec vr,
const std::string  tableName 
)
virtual DbiValidityRecBuilder::~DbiValidityRecBuilder ( ) [virtual]

Member Function Documentation

std::string DbiValidityRecBuilder::GetL2CacheName ( ) const
Dbi::Task DbiValidityRecBuilder::GetTask ( ) const [inline]

Definition at line 67 of file DbiValidityRecBuilder.h.

{ return fTask; }
Dbi::SubSite DbiValidityRecBuilder::GetSubSite ( ) const [inline]

Definition at line 68 of file DbiValidityRecBuilder.h.

{ return fSubSite; }
UInt_t DbiValidityRecBuilder::GetNumValidityRec ( ) const [inline]

Definition at line 69 of file DbiValidityRecBuilder.h.

                                                { 
                                                 return fVRecs.size(); }
Int_t DbiValidityRecBuilder::IndexOfAggno ( Int_t  aggNo) const

Get index of AggNo or -1 if missing.

Bool_t DbiValidityRecBuilder::IsExtendedContext ( ) const [inline]

Definition at line 73 of file DbiValidityRecBuilder.h.

                                                {
                                            return fIsExtendedContext; }
const DbiValidityRec& DbiValidityRecBuilder::GetValidityRec ( Int_t  rowNo) const
const DbiValidityRec& DbiValidityRecBuilder::GetValidityRecFromAggNo ( Int_t  aggNo) const [inline]

Definition at line 76 of file DbiValidityRecBuilder.h.

                                                                 {
               return this->GetValidityRec(this->IndexOfAggno(aggNo)); }
const DbiValidityRec& DbiValidityRecBuilder::GetValidityRecFromSeqNo ( UInt_t  SeqNo) const
Bool_t DbiValidityRecBuilder::NonAggregated ( ) const [inline]

Definition at line 79 of file DbiValidityRecBuilder.h.

                                             {
                 return  ! this->IsExtendedContext()
                        && this->GetNumValidityRec() == 1; }
UInt_t DbiValidityRecBuilder::AddNewAgg ( const DbiValidityRec vrec,
Int_t  aggNo 
) [private]

Add new aggregate into tables and return its index.

UInt_t DbiValidityRecBuilder::AddNewGap ( Int_t  aggNo) [private]

Add new aggregate gap into tables and return its index.

void DbiValidityRecBuilder::MakeGapRec ( const Context vc,
const std::string &  tableName,
Bool_t  findFullTimeWindow = true 
) [private]

Member Data Documentation

Definition at line 101 of file DbiValidityRecBuilder.h.

True for extended context query.

Definition at line 103 of file DbiValidityRecBuilder.h.

Definition at line 104 of file DbiValidityRecBuilder.h.

Definition at line 105 of file DbiValidityRecBuilder.h.

Table of effective ValidityRecs.

For context specific queries indexed by row number 0,.. The first row is guaranteed to correspond to aggregate -1, although this may be a gap. Other aggregates may come in any order. For extended context queries first entry is a gap (to be consistent with aggregated query) and all entries are filled in the order they are loaded.

Definition at line 114 of file DbiValidityRecBuilder.h.

std::map<Int_t,UInt_t> DbiValidityRecBuilder::fAggNoToIndex [private]

Map of Aggregate number to index in fVRecs.

Definition at line 116 of file DbiValidityRecBuilder.h.


The documentation for this class was generated from the following file:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 09:56:46 for DatabaseInterface by doxygen 1.7.4