int Int_t
Signed integer 4 bytes (int).
long long Long64_t
Portable signed long integer 8 bytes.
#define ClassDefOverride(name, id)
Implement TBasket for a SQL backend.
Manages buffers for branches of a Tree.
A TTree is a list of TBranches.
TClass instances represent classes, structs and namespaces in the ROOT type system.
Collection abstract base class.
TBasket * CreateBasket(TBranch *br) override
Create a TBasketSQL.
TString ConvertTypeName(const TString &typeName)
Convert from ROOT typename to SQL typename.
TBranch * BranchImp(const char *branchname, const char *classname, TClass *ptrClass, void *addobj, Int_t bufsize, Int_t splitlevel) override
Not implemented yet.
bool CheckTable(const TString &table) const
Check the table exist in the database.
TBranch * BranchOld(const char *name, const char *classname, void *addobj, Int_t bufsize=32000, Int_t splitlevel=1) override
Not implemented yet.
void CreateBranches()
determine leaf description string
TSQLTableInfo * fTableInfo
void Init()
Initialization routine.
Int_t GetEntry(Long64_t entry=0, Int_t getall=0) override
Load the data for the entry from the database.
std::vector< Int_t > * GetColumnIndice(TBranch *branch)
Return a vector of columns index corresponding to the current SQL table and the branch given as argum...
Long64_t LoadTree(Long64_t entry) override
Setup the tree to the load the specified entry.
virtual Long64_t PrepEntry(Long64_t entry)
Make sure the server and result set are setup for the requested entry.
bool CreateTable(const TString &table)
Create the database table corresponding to this TTree.
Int_t Fill() override
Copy the information from the user object to the TTree.
TBranch * Bronch(const char *name, const char *classname, void *addobj, Int_t bufsize=32000, Int_t splitlevel=99) override
Not implemented yet.
virtual void CreateBranch(const TString &branchName, const TString &typeName)
Create the column(s) in the database that correspond to the branch/.
void ResetQuery()
Reset the internal query.
Int_t Branch(TCollection *list, Int_t bufsize=32000, Int_t splitlevel=99, const char *name="") override
Not implemented yet.
bool CheckBranch(TBranch *tb)
Check if the table has a column corresponding the branch and that the resultset are properly setup.
Long64_t GetEntries() const override
Get the number of rows in the database.
TTreeSQL(TSQLServer *server, TString DB, const TString &table)
Constructor with an explicit TSQLServer.
Long64_t GetEntriesFast() const override
Return the number of entries as of the last check.
Long64_t GetEntries(const char *sel) override
Return the number of entries matching the selection.
void Refresh() override
Refresh contents of this Tree and its branches from the current Tree status in the database One can c...
void CheckBasket(TBranch *tb)
Check if the basket is properly setup.
virtual Long64_t GetEntries() const
TTree()
Default constructor and I/O constructor.