1
0
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:
Leonid Fedorov
2022-02-11 12:24:40 +00:00
parent 509f005be7
commit 7c808317dc
1367 changed files with 394342 additions and 413129 deletions

View File

@@ -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*/