You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-01 06:46:55 +03:00
Reformat all code to coding standard
This commit is contained in:
@ -24,9 +24,10 @@ using namespace std;
|
||||
using namespace messageqcpp;
|
||||
using namespace execplan;
|
||||
|
||||
namespace joblist {
|
||||
namespace joblist
|
||||
{
|
||||
|
||||
PseudoCCJL::PseudoCCJL(const PseudoColStep &pcs) : ColumnCommandJL(pcs), function(pcs.pseudoColumnId())
|
||||
PseudoCCJL::PseudoCCJL(const PseudoColStep& pcs) : ColumnCommandJL(pcs), function(pcs.pseudoColumnId())
|
||||
{
|
||||
}
|
||||
|
||||
@ -34,41 +35,46 @@ PseudoCCJL::~PseudoCCJL()
|
||||
{
|
||||
}
|
||||
|
||||
void PseudoCCJL::createCommand(ByteStream &bs) const
|
||||
void PseudoCCJL::createCommand(ByteStream& bs) const
|
||||
{
|
||||
bs << (uint8_t) PSEUDO_COLUMN;
|
||||
bs << function;
|
||||
ColumnCommandJL::createCommand(bs);
|
||||
bs << (uint8_t) PSEUDO_COLUMN;
|
||||
bs << function;
|
||||
ColumnCommandJL::createCommand(bs);
|
||||
}
|
||||
|
||||
void PseudoCCJL::runCommand(ByteStream &bs) const
|
||||
void PseudoCCJL::runCommand(ByteStream& bs) const
|
||||
{
|
||||
if (function == PSEUDO_EXTENTMAX) {
|
||||
int64_t max = extents[currentExtentIndex].partition.cprange.hi_val;
|
||||
int64_t min = extents[currentExtentIndex].partition.cprange.lo_val;
|
||||
if (extents[currentExtentIndex].partition.cprange.isValid == BRM::CP_VALID && max >= min)
|
||||
bs << max;
|
||||
else
|
||||
bs << utils::getNullValue(colType.colDataType, colType.colWidth);
|
||||
}
|
||||
else if (function == PSEUDO_EXTENTMIN) {
|
||||
int64_t max = extents[currentExtentIndex].partition.cprange.hi_val;
|
||||
int64_t min = extents[currentExtentIndex].partition.cprange.lo_val;
|
||||
if (extents[currentExtentIndex].partition.cprange.isValid == BRM::CP_VALID && max >= min)
|
||||
bs << min;
|
||||
else
|
||||
bs << utils::getNullValue(colType.colDataType, colType.colWidth);
|
||||
}
|
||||
else if (function == PSEUDO_EXTENTID)
|
||||
bs << extents[currentExtentIndex].range.start;
|
||||
ColumnCommandJL::runCommand(bs);
|
||||
if (function == PSEUDO_EXTENTMAX)
|
||||
{
|
||||
int64_t max = extents[currentExtentIndex].partition.cprange.hi_val;
|
||||
int64_t min = extents[currentExtentIndex].partition.cprange.lo_val;
|
||||
|
||||
if (extents[currentExtentIndex].partition.cprange.isValid == BRM::CP_VALID && max >= min)
|
||||
bs << max;
|
||||
else
|
||||
bs << utils::getNullValue(colType.colDataType, colType.colWidth);
|
||||
}
|
||||
else if (function == PSEUDO_EXTENTMIN)
|
||||
{
|
||||
int64_t max = extents[currentExtentIndex].partition.cprange.hi_val;
|
||||
int64_t min = extents[currentExtentIndex].partition.cprange.lo_val;
|
||||
|
||||
if (extents[currentExtentIndex].partition.cprange.isValid == BRM::CP_VALID && max >= min)
|
||||
bs << min;
|
||||
else
|
||||
bs << utils::getNullValue(colType.colDataType, colType.colWidth);
|
||||
}
|
||||
else if (function == PSEUDO_EXTENTID)
|
||||
bs << extents[currentExtentIndex].range.start;
|
||||
|
||||
ColumnCommandJL::runCommand(bs);
|
||||
}
|
||||
|
||||
string PseudoCCJL::toString()
|
||||
{
|
||||
ostringstream oss;
|
||||
oss << "PseudoColumnJL fcn: " << function << " on: " << ColumnCommandJL::toString();
|
||||
return oss.str();
|
||||
ostringstream oss;
|
||||
oss << "PseudoColumnJL fcn: " << function << " on: " << ColumnCommandJL::toString();
|
||||
return oss.str();
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user