rasdaman complete source
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
DBTCIndex Class Reference

#include <dbtcindex.hh>

Inheritance diagram for DBTCIndex:
DBHierIndex HierIndexDS IndexDS DBObject

Public Member Functions

 DBTCIndex (r_Dimension dim, bool isNode)
 
virtual void printStatus (unsigned int level=0, std::ostream &stream=std::cout) const
 
 ~DBTCIndex ()
 
virtual bool removeObject (const KeyObject &entry)
 
virtual bool removeObject (unsigned int pos)
 
virtual void removeInlineTile (InlineTile *)
 
virtual void addInlineTile (InlineTile *)
 
void setInlineTileHasChanged ()
 
virtual IndexDSgetNewInstance () const
 
- Public Member Functions inherited from DBHierIndex
 DBHierIndex (r_Dimension dim, bool isNode, bool makePersistent)
 
virtual double getOccupancy () const
 
HierIndexDSgetParent () const
 
void setParent (const HierIndexDS *newPa)
 
virtual void setIsNode (bool beNode)
 
virtual bool isLeaf () const
 
virtual bool isRoot () const
 
virtual unsigned int getHeight () const
 
virtual unsigned int getHeightOfTree () const
 
virtual unsigned int getHeightToRoot () const
 
virtual unsigned int getHeightToLeaf () const
 
virtual unsigned int getTotalEntryCount () const
 
virtual unsigned int getTotalNodeCount () const
 
virtual unsigned int getTotalLeafCount () const
 
virtual r_Minterval getCoveredDomain () const
 
virtual r_Minterval getAssignedDomain () const
 
virtual r_Minterval getObjectDomain (unsigned int pos) const
 
virtual r_Dimension getDimension () const
 
virtual void setAssignedDomain (const r_Minterval &domain)
 
virtual unsigned int getSize () const
 
virtual r_Bytes getTotalStorageSize () const
 
virtual bool isValid () const
 
virtual bool isUnderFull () const
 
virtual bool isOverFull () const
 
virtual bool isSameAs (const IndexDS *pix) const
 
virtual void insertObject (const KeyObject &theKey, unsigned int pos)
 
virtual void setObject (const KeyObject &theKey, unsigned int pos)
 
virtual void setObjectDomain (const r_Minterval &dom, unsigned int pos)
 
virtual const KeyObjectgetObject (unsigned int pos) const
 
virtual void getObjects (KeyObjectVector &objs) const
 
virtual unsigned int getOptimalSize () const
 
virtual void freeDS ()
 
virtual OId::OIdPrimitive getIdentifier () const
 
virtual ~DBHierIndex ()
 
virtual void destroy ()
 
virtual BinaryRepresentation getBinaryRepresentation () const throw (r_Error)
 
virtual void setBinaryRepresentation (const BinaryRepresentation &) throw (r_Error)
 
- Public Member Functions inherited from HierIndexDS
 HierIndexDS ()
 
 HierIndexDS (const OId &id)
 
- Public Member Functions inherited from IndexDS
 IndexDS ()
 
 IndexDS (const OId &id)
 
- Public Member Functions inherited from DBObject
int getReferenceCount (void) const
 
void incrementReferenceCount (void)
 
void decrementReferenceCount (void)
 
virtual ~DBObject ()
 
 DBObject ()
 
 DBObject (const DBObject &old)
 
 DBObject (const OId &id) throw (r_Error)
 
virtual void setPersistent (bool newPersistent) throw (r_Error)
 
bool isPersistent () const
 
void validate () throw (r_Error)
 
virtual void setModified () throw (r_Error)
 
bool isModified () const
 
OId getOId () const
 
EOId getEOId () const
 
OId::OIdType getObjectType () const
 
DBObjectoperator= (const DBObject &old)
 
bool isCached () const
 
virtual void setCached (bool newCached)
 
virtual r_Bytes getMemorySize () const
 
virtual char * getBinaryName () const
 

Protected Member Functions

InlineTilegetInlineTile (const OId &itid)
 
void changeIOIdToBOId ()
 
void readyForRemoval (const OId &id)
 
void changeBOIdToIOId ()
 
void registerIOIds ()
 
void readInlineTiles () throw (r_Error)
 
void decideForInlining ()
 
void insertBlob ()
 
void storeTiles ()
 
void writeInlineTiles (char *cells, r_Bytes blobSize) throw (r_Error)
 
void updateTileIndexMappings () throw (r_Error)
 
 DBTCIndex (const OId &id)
 
void setMappingHasChanged ()
 
virtual void readFromDb () throw (r_Error)
 
virtual void updateInDb () throw (r_Error)
 
virtual void deleteFromDb () throw (r_Error)
 
virtual void insertInDb () throw (r_Error)
 
- Protected Member Functions inherited from DBHierIndex
 DBHierIndex (const OId &id)
 
void extendCoveredDomain (const r_Minterval &newTilesExtents) throw (r_Edim_mismatch, r_Eno_interval)
 
- Protected Member Functions inherited from DBObject
virtual void release ()
 

Protected Attributes

bool mappingHasChanged
 
bool inlineTileHasChanged
 
bool _isLoaded
 
bool hasBlob
 
DBObjectPMap inlineTiles
 
- Protected Attributes inherited from DBHierIndex
OId parent
 
bool _isNode
 
unsigned int maxSize
 
KeyObjectVector myKeyObjects
 
InlineMinterval myDomain
 
short currentDbRows
 
- Protected Attributes inherited from DBObject
bool _isPersistent
 
bool _isInDatabase
 
bool _isModified
 
bool _isCached
 
OId myOId
 
OId::OIdType objecttype
 
int referenceCount
 

Additional Inherited Members

- Static Public Member Functions inherited from DBHierIndex
static unsigned int getOptimalSize (r_Dimension dim)
 
- Static Public Attributes inherited from DBHierIndex
static r_Bytes BytesPerTupel
 

Constructor & Destructor Documentation

DBTCIndex::DBTCIndex ( r_Dimension  dim,
bool  isNode 
)
DBTCIndex::~DBTCIndex ( )
DBTCIndex::DBTCIndex ( const OId id)
protected

Member Function Documentation

virtual void DBTCIndex::addInlineTile ( InlineTile )
virtual
void DBTCIndex::changeBOIdToIOId ( )
protected
void DBTCIndex::changeIOIdToBOId ( )
protected
void DBTCIndex::decideForInlining ( )
protected
virtual void DBTCIndex::deleteFromDb ( )
throw (r_Error
)
protectedvirtual

Reimplemented from DBHierIndex.

InlineTile* DBTCIndex::getInlineTile ( const OId itid)
protected
virtual IndexDS* DBTCIndex::getNewInstance ( ) const
virtual

Reimplemented from DBHierIndex.

void DBTCIndex::insertBlob ( )
protected
virtual void DBTCIndex::insertInDb ( )
throw (r_Error
)
protectedvirtual

Reimplemented from DBHierIndex.

virtual void DBTCIndex::printStatus ( unsigned int  level = 0,
std::ostream &  stream = std::cout 
) const
virtual

Reimplemented from DBHierIndex.

virtual void DBTCIndex::readFromDb ( )
throw (r_Error
)
protectedvirtual

Reimplemented from DBHierIndex.

void DBTCIndex::readInlineTiles ( )
throw (r_Error
)
protected
void DBTCIndex::readyForRemoval ( const OId id)
protected
void DBTCIndex::registerIOIds ( )
protected
virtual void DBTCIndex::removeInlineTile ( InlineTile )
virtual
virtual bool DBTCIndex::removeObject ( const KeyObject entry)
virtual

Reimplemented from DBHierIndex.

virtual bool DBTCIndex::removeObject ( unsigned int  pos)
virtual

Reimplemented from DBHierIndex.

void DBTCIndex::setInlineTileHasChanged ( )
void DBTCIndex::setMappingHasChanged ( )
protected
void DBTCIndex::storeTiles ( )
protected
virtual void DBTCIndex::updateInDb ( )
throw (r_Error
)
protectedvirtual

Reimplemented from DBHierIndex.

void DBTCIndex::updateTileIndexMappings ( )
throw (r_Error
)
protected
void DBTCIndex::writeInlineTiles ( char *  cells,
r_Bytes  blobSize 
)
throw (r_Error
)
protected

Member Data Documentation

bool DBTCIndex::_isLoaded
protected
bool DBTCIndex::hasBlob
protected
bool DBTCIndex::inlineTileHasChanged
protected
DBObjectPMap DBTCIndex::inlineTiles
protected
bool DBTCIndex::mappingHasChanged
protected

The documentation for this class was generated from the following file: