You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-29 08:21:15 +03:00
clang format apply
This commit is contained in:
@ -32,7 +32,6 @@
|
||||
|
||||
namespace execplan
|
||||
{
|
||||
|
||||
/** @brief The class that manages the Object ID space
|
||||
*
|
||||
* The class that manages the allocation and deallocation of IDs
|
||||
@ -40,71 +39,70 @@ namespace execplan
|
||||
*/
|
||||
class ObjectIDManager
|
||||
{
|
||||
public:
|
||||
/** @brief Default constructor
|
||||
*
|
||||
* @note Throws ios::failure on a file IO error
|
||||
*/
|
||||
ObjectIDManager();
|
||||
virtual ~ObjectIDManager();
|
||||
|
||||
public:
|
||||
/** @brief Default constructor
|
||||
*
|
||||
* @note Throws ios::failure on a file IO error
|
||||
*/
|
||||
ObjectIDManager();
|
||||
virtual ~ObjectIDManager();
|
||||
/** @brief Allocate one Object ID
|
||||
*
|
||||
* @return The allocated OID (>= 0) on success, -1 on error.
|
||||
*/
|
||||
int allocOID();
|
||||
|
||||
/** @brief Allocate one Object ID
|
||||
*
|
||||
* @return The allocated OID (>= 0) on success, -1 on error.
|
||||
*/
|
||||
int allocOID();
|
||||
/** @brief Allocate a contiguous range of Object IDs
|
||||
*
|
||||
* @param num The number of contiguous Object IDs to allocate
|
||||
* @return The first OID allocated on success, -1 on failure
|
||||
*/
|
||||
int allocOIDs(int num);
|
||||
|
||||
/** @brief Allocate a contiguous range of Object IDs
|
||||
*
|
||||
* @param num The number of contiguous Object IDs to allocate
|
||||
* @return The first OID allocated on success, -1 on failure
|
||||
*/
|
||||
int allocOIDs(int num);
|
||||
/** @brief Allocates a new oid for a version buffer file, associates it
|
||||
* with dbroot.
|
||||
*
|
||||
* @return Returns -1 on all errors.
|
||||
*/
|
||||
int allocVBOID(uint32_t dbroot);
|
||||
|
||||
/** @brief Allocates a new oid for a version buffer file, associates it
|
||||
* with dbroot.
|
||||
*
|
||||
* @return Returns -1 on all errors.
|
||||
*/
|
||||
int allocVBOID(uint32_t dbroot);
|
||||
/** @brief Returns the DBRoot of the given version buffer OID, or -1 on error. */
|
||||
int getDBRootOfVBOID(uint32_t vboid);
|
||||
|
||||
/** @brief Returns the DBRoot of the given version buffer OID, or -1 on error. */
|
||||
int getDBRootOfVBOID(uint32_t vboid);
|
||||
/** @brief Returns the VB OID -> DB Root mapping. ret[0] = dbroot of VB OID 0
|
||||
*
|
||||
* @return vector where index n = dbroot of VBOID n.
|
||||
* @throw runtime_exception on error
|
||||
*/
|
||||
std::vector<uint16_t> getVBOIDToDBRootMap();
|
||||
/** @brief Return an OID to the pool
|
||||
*
|
||||
* @param oid The OID to return
|
||||
*/
|
||||
void returnOID(int oid);
|
||||
|
||||
/** @brief Returns the VB OID -> DB Root mapping. ret[0] = dbroot of VB OID 0
|
||||
*
|
||||
* @return vector where index n = dbroot of VBOID n.
|
||||
* @throw runtime_exception on error
|
||||
*/
|
||||
std::vector<uint16_t> getVBOIDToDBRootMap();
|
||||
/** @brief Return an OID to the pool
|
||||
*
|
||||
* @param oid The OID to return
|
||||
*/
|
||||
void returnOID(int oid);
|
||||
/** @brief Return a list of OIDs to the pool
|
||||
*
|
||||
* @param start The first OID to return
|
||||
* @param end The last OID to return
|
||||
*/
|
||||
void returnOIDs(int start, int end);
|
||||
|
||||
/** @brief Return a list of OIDs to the pool
|
||||
*
|
||||
* @param start The first OID to return
|
||||
* @param end The last OID to return
|
||||
*/
|
||||
void returnOIDs(int start, int end);
|
||||
/** @brief Counts the number of allocated OIDs
|
||||
*
|
||||
* @note This currently assumes the bitmap length is a multiple of 4096
|
||||
* @return The number of allocated OIDs
|
||||
*/
|
||||
int size();
|
||||
|
||||
/** @brief Counts the number of allocated OIDs
|
||||
*
|
||||
* @note This currently assumes the bitmap length is a multiple of 4096
|
||||
* @return The number of allocated OIDs
|
||||
*/
|
||||
int size();
|
||||
/** @brief Get the OID bitmap filename
|
||||
*/
|
||||
const std::string getFilename() const;
|
||||
|
||||
/** @brief Get the OID bitmap filename
|
||||
*/
|
||||
const std::string getFilename() const;
|
||||
|
||||
private:
|
||||
std::string fFilename;
|
||||
BRM::DBRM dbrm;
|
||||
private:
|
||||
std::string fFilename;
|
||||
BRM::DBRM dbrm;
|
||||
|
||||
#if 0
|
||||
|
||||
@ -188,9 +186,6 @@ private:
|
||||
*/
|
||||
void patchFreelist(struct FEntry* freelist, int start, int num) const;
|
||||
#endif
|
||||
|
||||
|
||||
};
|
||||
|
||||
} // namespace
|
||||
|
||||
} // namespace execplan
|
||||
|
Reference in New Issue
Block a user