You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-30 19:23:07 +03:00
clang format apply
This commit is contained in:
@ -41,22 +41,19 @@ using namespace joblist;
|
||||
|
||||
namespace execplan
|
||||
{
|
||||
|
||||
/**
|
||||
* Constructors/Destructors
|
||||
*/
|
||||
UDAFColumn::UDAFColumn():
|
||||
AggregateColumn()
|
||||
UDAFColumn::UDAFColumn() : AggregateColumn()
|
||||
{
|
||||
}
|
||||
|
||||
UDAFColumn::UDAFColumn(const uint32_t sessionID):
|
||||
AggregateColumn(sessionID)
|
||||
UDAFColumn::UDAFColumn(const uint32_t sessionID) : AggregateColumn(sessionID)
|
||||
{
|
||||
}
|
||||
|
||||
UDAFColumn::UDAFColumn(const UDAFColumn& rhs, const uint32_t sessionID):
|
||||
AggregateColumn(dynamic_cast<const AggregateColumn&>(rhs), sessionID), context(rhs.context)
|
||||
UDAFColumn::UDAFColumn(const UDAFColumn& rhs, const uint32_t sessionID)
|
||||
: AggregateColumn(dynamic_cast<const AggregateColumn&>(rhs), sessionID), context(rhs.context)
|
||||
{
|
||||
}
|
||||
|
||||
@ -70,69 +67,69 @@ UDAFColumn::~UDAFColumn()
|
||||
|
||||
const string UDAFColumn::toString() const
|
||||
{
|
||||
ostringstream output;
|
||||
output << "UDAFColumn " << endl;
|
||||
output << AggregateColumn::toString() << endl;
|
||||
output << context.toString() << endl;
|
||||
return output.str();
|
||||
ostringstream output;
|
||||
output << "UDAFColumn " << endl;
|
||||
output << AggregateColumn::toString() << endl;
|
||||
output << context.toString() << endl;
|
||||
return output.str();
|
||||
}
|
||||
|
||||
ostream& operator<<(ostream& output, const UDAFColumn& rhs)
|
||||
{
|
||||
output << rhs.toString();
|
||||
return output;
|
||||
output << rhs.toString();
|
||||
return output;
|
||||
}
|
||||
|
||||
void UDAFColumn::serialize(messageqcpp::ByteStream& b) const
|
||||
{
|
||||
b << (uint8_t) ObjectReader::UDAFCOLUMN;
|
||||
AggregateColumn::serialize(b);
|
||||
context.serialize(b);
|
||||
b << (uint8_t)ObjectReader::UDAFCOLUMN;
|
||||
AggregateColumn::serialize(b);
|
||||
context.serialize(b);
|
||||
}
|
||||
|
||||
void UDAFColumn::unserialize(messageqcpp::ByteStream& b)
|
||||
{
|
||||
ObjectReader::checkType(b, ObjectReader::UDAFCOLUMN);
|
||||
AggregateColumn::unserialize(b);
|
||||
context.unserialize(b);
|
||||
ObjectReader::checkType(b, ObjectReader::UDAFCOLUMN);
|
||||
AggregateColumn::unserialize(b);
|
||||
context.unserialize(b);
|
||||
}
|
||||
|
||||
bool UDAFColumn::operator==(const UDAFColumn& t) const
|
||||
{
|
||||
const AggregateColumn* rc1, *rc2;
|
||||
const AggregateColumn *rc1, *rc2;
|
||||
|
||||
rc1 = static_cast<const AggregateColumn*>(this);
|
||||
rc2 = static_cast<const AggregateColumn*>(&t);
|
||||
rc1 = static_cast<const AggregateColumn*>(this);
|
||||
rc2 = static_cast<const AggregateColumn*>(&t);
|
||||
|
||||
if (*rc1 != *rc2)
|
||||
return false;
|
||||
if (*rc1 != *rc2)
|
||||
return false;
|
||||
|
||||
if (context != t.context)
|
||||
return false;
|
||||
if (context != t.context)
|
||||
return false;
|
||||
|
||||
return true;
|
||||
return true;
|
||||
}
|
||||
|
||||
bool UDAFColumn::operator==(const TreeNode* t) const
|
||||
{
|
||||
const UDAFColumn* ac;
|
||||
const UDAFColumn* ac;
|
||||
|
||||
ac = dynamic_cast<const UDAFColumn*>(t);
|
||||
ac = dynamic_cast<const UDAFColumn*>(t);
|
||||
|
||||
if (ac == NULL)
|
||||
return false;
|
||||
if (ac == NULL)
|
||||
return false;
|
||||
|
||||
return *this == *ac;
|
||||
return *this == *ac;
|
||||
}
|
||||
|
||||
bool UDAFColumn::operator!=(const UDAFColumn& t) const
|
||||
{
|
||||
return !(*this == t);
|
||||
return !(*this == t);
|
||||
}
|
||||
|
||||
bool UDAFColumn::operator!=(const TreeNode* t) const
|
||||
{
|
||||
return !(*this == t);
|
||||
return !(*this == t);
|
||||
}
|
||||
|
||||
} // namespace execplan
|
||||
} // namespace execplan
|
||||
|
Reference in New Issue
Block a user