ROOT logo
ROOT » TREE » TREE » TBasketSQL

class TBasketSQL: public TBasket


TBasketSQL

Implement TBasket for a SQL backend


Function Members (Methods)

public:
TBasketSQL()
TBasketSQL(const char* name, const char* title, TBranch* branch, TSQLResult** rs, TString* insert_query, vector<Int_t>* vc, TSQLRow** row)
virtual~TBasketSQL()
voidTObject::AbstractMethod(const char* method) const
virtual voidTBasket::AdjustSize(Int_t newsize)
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTKey::Browse(TBrowser* b)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTNamed::Clear(Option_t* option = "")
virtual TObject*TNamed::Clone(const char* newname = "") const
virtual Int_tTNamed::Compare(const TObject* obj) const
virtual voidTNamed::Copy(TObject& named) const
Long64_tTBasket::CopyTo(TFile* to)
voidCreateBuffer(const char* name, TString title, vector<Int_t>* vc, TBranch* branch, TSQLResult** rs)
virtual voidTKey::Delete(Option_t* option = "")
virtual voidTKey::DeleteBuffer()
virtual voidTBasket::DeleteEntryOffset()
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual Int_tTBasket::DropBuffers()
virtual voidTObject::Dump() constMENU
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual voidTKey::FillBuffer(char*& buffer)
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
TBranch*TBasket::GetBranch() const
virtual char*TKey::GetBuffer() const
TBuffer*TKey::GetBufferRef() const
Int_tTBasket::GetBufferSize() const
virtual const char*TKey::GetClassName() const
Short_tTKey::GetCycle() const
const TDatime&TKey::GetDatime() const
Int_t*TBasket::GetDisplacement() const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
Int_t*TBasket::GetEntryOffset() const
Int_tTBasket::GetEntryPointer(Int_t Entry)
TFile*TKey::GetFile() const
virtual const char*TKey::GetIconName() const
Short_tTKey::GetKeep() const
Int_tTKey::GetKeylen() const
Int_tTBasket::GetLast() const
TDirectory*TKey::GetMotherDir() const
virtual const char*TNamed::GetName() const
Int_tTKey::GetNbytes() const
Int_tTBasket::GetNevBuf() const
Int_tTBasket::GetNevBufSize() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
Int_tTKey::GetObjlen() const
virtual Option_t*TObject::GetOption() const
TSQLResult*GetResultSet()
virtual Long64_tTKey::GetSeekKey() const
virtual Long64_tTKey::GetSeekPdir() const
virtual const char*TKey::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
Int_tTKey::GetVersion() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTKey::Hash() const
virtual voidTKey::IncrementPidOffset(UShort_t offset)
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidTObject::Inspect() constMENU
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTKey::IsFolder() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTNamed::IsSortable() const
Bool_tTObject::IsZombie() const
virtual voidTKey::Keep()
Int_tTBasket::LoadBasketBuffers(Long64_t pos, Int_t len, TFile* file)
virtual voidTKey::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
virtual voidTBasket::MoveEntries(Int_t dentries)
virtual Bool_tTObject::Notify()
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidPrepareBasket(Long64_t entry)
virtual voidTKey::Print(Option_t* option = "") const
virtual Int_tTKey::Read(TObject* obj)
virtual Int_tReadBasketBuffers(Long64_t pos, Int_t len, TFile* file)
virtual Int_tReadBasketBytes(Long64_t pos, TFile* file)
virtual voidTKey::ReadBuffer(char*& buffer)
virtual voidTKey::ReadFile()
voidTKey::ReadKeyBuffer(char*& buffer)
virtual TObject*TKey::ReadObj()
virtual void*TKey::ReadObjectAny(const TClass* expectedClass)
virtual TObject*TKey::ReadObjWithBuffer(char* bufferRead)
virtual voidTObject::RecursiveRemove(TObject* obj)
voidTObject::ResetBit(UInt_t f)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(basic_ostream<char,char_traits<char> >& out, Option_t* option = "")
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
voidTBasket::SetBranch(TBranch* branch)
virtual voidTKey::SetBuffer()
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
voidTKey::SetMotherDir(TDirectory* dir)
virtual voidTNamed::SetName(const char* name)MENU
virtual voidTNamed::SetNameTitle(const char* name, const char* title)
voidTBasket::SetNevBufSize(Int_t n)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidTKey::SetParent(const TObject* parent)
virtual voidTBasket::SetReadMode()
virtual voidTNamed::SetTitle(const char* title = "")MENU
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidTBasket::SetWriteMode()
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual Int_tTKey::Sizeof() const
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
virtual voidUpdate(Int_t offset, Int_t skipped)
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
virtual Int_tTBasket::WriteBuffer()
virtual Int_tTKey::WriteFile(Int_t cycle = 1, TFile* f = 0)
protected:
voidTKey::Build(TDirectory* motherDir, const char* classname, Long64_t filepos)
virtual voidTKey::Create(Int_t nbytes, TFile* f = 0)
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidTObject::MakeZombie()
virtual Int_tTKey::Read(const char* name)

Data Members

protected:
TBranch*TBasket::fBranchPointer to the basket support branch
char*TKey::fBufferObject buffer
TBuffer*TKey::fBufferRefPointer to the TBuffer object
Int_tTBasket::fBufferSizefBuffer length in bytes
TStringTKey::fClassNameObject Class name
Short_tTKey::fCycleCycle number
TDatimeTKey::fDatimeDate/Time of insertion in file
Int_t*TBasket::fDisplacement![fNevBuf] Displacement of entries in fBuffer(TKey)
Int_t*TBasket::fEntryOffset[fNevBuf] Offset of entries in fBuffer(TKey)
Bool_tTBasket::fHeaderOnlyTrue when only the basket header must be read/written
TString*fInsertQuery!
Short_tTKey::fKeylenNumber of bytes for the key itself
Int_tTBasket::fLastPointer to last used byte in basket
Int_tTKey::fLeftNumber of bytes left in current segment
TDirectory*TKey::fMotherDir! pointer to mother directory
TStringTNamed::fNameobject identifier
Int_tTKey::fNbytesNumber of bytes for the object on file
Int_tTBasket::fNevBufNumber of entries in basket
Int_tTBasket::fNevBufSizeLength in Int_t of fEntryOffset OR fixed length of each entry if fEntryOffset is null!
Int_tTKey::fObjlenLength of uncompressed object in bytes
UShort_tTKey::fPidOffset! Offset to be added to the pid index in this key/buffer. This is actually saved in the high bits of fSeekPdir
TSQLResult**fResultPtr!
TSQLRow**fRowPtr!
Long64_tTKey::fSeekKeyLocation of object on file
Long64_tTKey::fSeekPdirLocation of parent directory on file
TStringTNamed::fTitleobject title
Int_tTKey::fVersionKey version identifier

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TBasketSQL()
 Default constructor
TBasketSQL(const char* name, const char* title, TBranch* branch, TSQLResult** rs, TString* insert_query, vector<Int_t>* vc, TSQLRow** row)
 Regular constructor
~TBasketSQL()
 Destructor
void CreateBuffer(const char* name, TString title, vector<Int_t>* vc, TBranch* branch, TSQLResult** rs)
 Create a TSQLBuffer for this basket.
void PrepareBasket(Long64_t entry)
 Prepare the basket for the next entry.
Int_t ReadBasketBytes(Long64_t pos, TFile* file)
 See TBasket::ReadBasketBytes.  This is not implemented in TBasketSQL.
Int_t ReadBasketBuffers(Long64_t pos, Int_t len, TFile* file)
 See TBasket::ReadBasketBuffers.  This is not implemented in TBasketSQL.
void Update(Int_t offset, Int_t skipped)
 See TBasket::Update.
TBasketSQL(const TBasketSQL& )
TBasketSQL& operator=(const TBasketSQL& )
TSQLResult * GetResultSet()
{ return *fResultPtr;}