You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-08 14:22:09 +03:00
clang format apply
This commit is contained in:
@@ -15,7 +15,6 @@
|
||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
||||
MA 02110-1301, USA. */
|
||||
|
||||
|
||||
/******************************************************************************
|
||||
* $Id: we_colbufsec.h 4450 2013-01-21 14:13:24Z rdempsey $
|
||||
*
|
||||
@@ -32,13 +31,12 @@
|
||||
|
||||
namespace WriteEngine
|
||||
{
|
||||
|
||||
/* @brief Status codes for the ColumnBufferSection
|
||||
*/
|
||||
enum
|
||||
{
|
||||
INIT_COMPLETE,
|
||||
WRITE_COMPLETE,
|
||||
INIT_COMPLETE,
|
||||
WRITE_COMPLETE,
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -47,74 +45,70 @@ enum
|
||||
*/
|
||||
class ColumnBufferSection
|
||||
{
|
||||
public:
|
||||
/* @brief Constructor
|
||||
*
|
||||
* @param cb Ptr to this section's corresponding CoulmnBuffer
|
||||
* @param startRowId Starting row-id of the column
|
||||
* @param endRowId Ending row-id of the column
|
||||
* @param Width Width of the underlying column
|
||||
* @param startOffset
|
||||
*/
|
||||
ColumnBufferSection(ColumnBuffer* const cb, RID startRowId, RID endRowId, int colWidth, int startOffset);
|
||||
|
||||
public:
|
||||
/* @brief Constructor
|
||||
*
|
||||
* @param cb Ptr to this section's corresponding CoulmnBuffer
|
||||
* @param startRowId Starting row-id of the column
|
||||
* @param endRowId Ending row-id of the column
|
||||
* @param Width Width of the underlying column
|
||||
* @param startOffset
|
||||
*/
|
||||
ColumnBufferSection(ColumnBuffer* const cb, RID startRowId,
|
||||
RID endRowId, int colWidth, int startOffset);
|
||||
/* @brief Default destructor
|
||||
*/
|
||||
~ColumnBufferSection();
|
||||
|
||||
/* @brief Default destructor
|
||||
*/
|
||||
~ColumnBufferSection();
|
||||
/* @brief Updates the status of the section
|
||||
*
|
||||
* @param Status value
|
||||
*/
|
||||
void setStatus(int status);
|
||||
|
||||
/* @brief Updates the status of the section
|
||||
*
|
||||
* @param Status value
|
||||
*/
|
||||
void setStatus(int status);
|
||||
/* @brief Write data into the column buffer section
|
||||
*
|
||||
* @param data pointer to the data
|
||||
* @param nRows Number of rows to be written, starting from data pointer
|
||||
*/
|
||||
void write(const void* const data, int nRows);
|
||||
|
||||
/* @brief Write data into the column buffer section
|
||||
*
|
||||
* @param data pointer to the data
|
||||
* @param nRows Number of rows to be written, starting from data pointer
|
||||
*/
|
||||
void write(const void* const data, int nRows);
|
||||
/* @brief Returns the current status of the section
|
||||
*/
|
||||
int getStatus() const;
|
||||
|
||||
/* @brief Returns the current status of the section
|
||||
*/
|
||||
int getStatus() const;
|
||||
/* @brief Returns the start offset of this section
|
||||
*/
|
||||
int getStartOffset() const;
|
||||
|
||||
/* @brief Returns the start offset of this section
|
||||
*/
|
||||
int getStartOffset() const;
|
||||
/* @brief Returns the size of this section
|
||||
*/
|
||||
int getSectionSize() const;
|
||||
|
||||
/* @brief Returns the size of this section
|
||||
*/
|
||||
int getSectionSize() const;
|
||||
/* @brief Returns the ending row-id of this section
|
||||
*/
|
||||
RID endRowId() const
|
||||
{
|
||||
return fEndRowId;
|
||||
}
|
||||
|
||||
/* @brief Returns the ending row-id of this section
|
||||
*/
|
||||
RID endRowId() const
|
||||
{
|
||||
return fEndRowId;
|
||||
}
|
||||
/* @brief Returns the starting row-id of this section
|
||||
*/
|
||||
RID startRowId() const
|
||||
{
|
||||
return fStartRowId;
|
||||
}
|
||||
|
||||
/* @brief Returns the starting row-id of this section
|
||||
*/
|
||||
RID startRowId() const
|
||||
{
|
||||
return fStartRowId;
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
const ColumnBuffer* const fCBuf; //ColumnBuffer associated with this section
|
||||
RID fStartRowId; // Starting row-id for this section
|
||||
RID fEndRowId; // Ending row-id for this section
|
||||
int fColWidth; // Width of column (in bytes)
|
||||
int fBufStartOffset; // Starting offset of this section in ColumnBuffer
|
||||
RID fCurrRowId; // row-id which will be written next
|
||||
int fStatus; // Status of this section
|
||||
private:
|
||||
const ColumnBuffer* const fCBuf; // ColumnBuffer associated with this section
|
||||
RID fStartRowId; // Starting row-id for this section
|
||||
RID fEndRowId; // Ending row-id for this section
|
||||
int fColWidth; // Width of column (in bytes)
|
||||
int fBufStartOffset; // Starting offset of this section in ColumnBuffer
|
||||
RID fCurrRowId; // row-id which will be written next
|
||||
int fStatus; // Status of this section
|
||||
};
|
||||
|
||||
}
|
||||
} // namespace WriteEngine
|
||||
|
||||
#endif /*WRITEENGINE_COLBUFSEC_H*/
|
||||
|
||||
|
Reference in New Issue
Block a user