|
ROOT
Reference Guide |
|
Go to the documentation of this file.
78 #ifdef R__TRACK_BASKET_ALLOC_TIME
139 #ifdef R__TRACK_BASKET_ALLOC_TIME
140 ULong64_t GetResetAllocationTime()
const {
return fResetAllocationTime; }
TBasket()
Default contructor.
void InitializeCompressedBuffer(Int_t len, TFile *file)
Initialize the compressed buffer; either from the TTree or create a local one.
Int_t ReadBasketBuffers(Long64_t pos, Int_t len, TFile *file)
Read basket buffers in memory and cleanup.
void DisownBuffer()
Disown all references to the internal buffer - some other object likely now owns it.
void SetNevBufSize(Int_t n)
Bool_t fReadEntryOffset
!Set to true if offset array was read from a file.
A TTree represents a columnar dataset.
Bool_t GetResetAllocationCount() const
Bool_t CanGenerateOffsetArray()
Determine whether we can generate the offset array when this branch is read.
Int_t fNevBufSize
Length in Int_t of fEntryOffset OR fixed length of each entry if fEntryOffset is null!
TBranch * fBranch
Pointer to the basket support branch.
static constexpr int kIOBitCount
TBranch * GetBranch() const
Long64_t CopyTo(TFile *to)
Copy the basket of this branch onto the file to.
Buffer base class used for serializing objects.
Int_t fLastWriteBufferSize[3]
! Size of the buffer last three buffers we wrote it to disk
virtual void MoveEntries(Int_t dentries)
Remove the first dentries of this basket, moving entries at dentries to the start of the buffer.
Int_t ReadBasketBytes(Long64_t pos, TFile *file)
Read basket buffers in memory and cleanup.
Int_t * fDisplacement
![fNevBuf] Displacement of entries in fBuffer(TKey)
virtual Int_t DropBuffers()
Drop buffers of this basket if it is not the current basket.
A TTree is a list of TBranches.
TBasket(const TBasket &)
TBasket objects are not copiable.
UChar_t fIOBits
!IO feature flags. Serialized in custom portion of streamer to avoid forward compat issues unless nee...
virtual void DeleteEntryOffset()
Delete fEntryOffset array.
virtual void SetWriteMode()
Set write mode of basket.
Int_t fLast
Pointer to last used byte in basket.
Int_t LoadBasketBuffers(Long64_t pos, Int_t len, TFile *file, TTree *tree=0)
Load basket buffers in memory without unziping.
Int_t * fEntryOffset
[fNevBuf] Offset of entries in fBuffer(TKey); generated at runtime.
Int_t * GetCalculatedEntryOffset()
Calculates the entry offset array, if possible.
Int_t fBufferSize
fBuffer length in bytes
Int_t fNevBuf
Number of entries in basket.
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format.
TBasket & operator=(const TBasket &)
TBasket objects are not copiable.
Int_t GetNevBufSize() const
virtual void PrepareBasket(Long64_t)
Book space in a file, create I/O buffers, to fill them, (un)compress them.
Bool_t fHeaderOnly
True when only the basket header must be read/written.
virtual Int_t WriteBuffer()
Write buffer of this basket on the current file.
unsigned long long ULong64_t
Manages buffers for branches of a Tree.
Int_t GetBufferSize() const
virtual void SetReadMode()
Set read mode of basket.
Int_t * GetDisplacement() const
Bool_t fResetAllocation
! True if last reset re-allocated the memory
Int_t ReadBasketBuffersUnzip(char *, Int_t, Bool_t, TFile *)
We always create the TBuffer for the basket but it hold the buffer from the cache.
virtual void ReadResetBuffer(Int_t basketnumber)
Reset the read basket TBuffer memory allocation if needed.
virtual void AdjustSize(Int_t newsize)
Increase the size of the current fBuffer up to newsize.
Int_t ReadBasketBuffersUncompressedCase()
By-passing buffer unzipping has been requested and is possible (only 1 entry in this basket).
Int_t GetEntryPointer(Int_t Entry)
Get pointer to buffer for internal entry.
#define ClassDef(name, id)
UChar_t fNextBufferSizeRecord
! Index into fLastWriteBufferSize of the last buffer written to disk
virtual ~TBasket()
Basket destructor.
Describe directory structure in memory.
void SetBranch(TBranch *branch)
Bool_t fOwnsCompressedBuffer
! Whether or not we own the compressed buffer.
void Update(Int_t newlast)
TBuffer * fCompressedBufferRef
! Compressed buffer.
void AdoptBuffer(TBuffer *user_buffer)
Adopt a buffer from an external entity.
virtual void WriteReset()
Reset the write basket to the starting state.