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:
@ -34,49 +34,77 @@ class BatchPrimitiveProcessorJL;
|
||||
class CommandJL
|
||||
{
|
||||
public:
|
||||
CommandJL();
|
||||
CommandJL(const CommandJL &);
|
||||
virtual ~CommandJL();
|
||||
CommandJL();
|
||||
CommandJL(const CommandJL&);
|
||||
virtual ~CommandJL();
|
||||
|
||||
// converts a rid or dictionary token to an LBID. For ColumnCommandJL it's a RID,
|
||||
// for a DictStep it's a token.
|
||||
virtual void setLBID(uint64_t data, uint32_t dbroot) = 0;
|
||||
virtual uint8_t getTableColumnType() = 0;
|
||||
virtual std::string toString() = 0;
|
||||
virtual void createCommand(messageqcpp::ByteStream &) const;
|
||||
virtual void runCommand(messageqcpp::ByteStream &) const = 0;
|
||||
uint32_t getOID() const { return OID; }
|
||||
const std::string& getColName() const { return colName; }
|
||||
void setTupleKey(uint32_t tkey) { tupleKey = tkey; }
|
||||
uint32_t getTupleKey() const { return tupleKey; }
|
||||
virtual uint16_t getWidth() = 0;
|
||||
const boost::uuids::uuid& getQueryUuid() const { return queryUuid; }
|
||||
void setQueryUuid(const boost::uuids::uuid& u) { queryUuid = u; }
|
||||
const boost::uuids::uuid& getStepUuid() const { return stepUuid; }
|
||||
void setStepUuid(const boost::uuids::uuid& u) { stepUuid = u; }
|
||||
// converts a rid or dictionary token to an LBID. For ColumnCommandJL it's a RID,
|
||||
// for a DictStep it's a token.
|
||||
virtual void setLBID(uint64_t data, uint32_t dbroot) = 0;
|
||||
virtual uint8_t getTableColumnType() = 0;
|
||||
virtual std::string toString() = 0;
|
||||
virtual void createCommand(messageqcpp::ByteStream&) const;
|
||||
virtual void runCommand(messageqcpp::ByteStream&) const = 0;
|
||||
uint32_t getOID() const
|
||||
{
|
||||
return OID;
|
||||
}
|
||||
const std::string& getColName() const
|
||||
{
|
||||
return colName;
|
||||
}
|
||||
void setTupleKey(uint32_t tkey)
|
||||
{
|
||||
tupleKey = tkey;
|
||||
}
|
||||
uint32_t getTupleKey() const
|
||||
{
|
||||
return tupleKey;
|
||||
}
|
||||
virtual uint16_t getWidth() = 0;
|
||||
const boost::uuids::uuid& getQueryUuid() const
|
||||
{
|
||||
return queryUuid;
|
||||
}
|
||||
void setQueryUuid(const boost::uuids::uuid& u)
|
||||
{
|
||||
queryUuid = u;
|
||||
}
|
||||
const boost::uuids::uuid& getStepUuid() const
|
||||
{
|
||||
return stepUuid;
|
||||
}
|
||||
void setStepUuid(const boost::uuids::uuid& u)
|
||||
{
|
||||
stepUuid = u;
|
||||
}
|
||||
|
||||
void setBatchPrimitiveProcessor(BatchPrimitiveProcessorJL* b) { bpp = b; }
|
||||
void setBatchPrimitiveProcessor(BatchPrimitiveProcessorJL* b)
|
||||
{
|
||||
bpp = b;
|
||||
}
|
||||
|
||||
enum CommandType {
|
||||
NONE,
|
||||
COLUMN_COMMAND,
|
||||
DICT_STEP,
|
||||
DICT_SCAN,
|
||||
PASS_THRU,
|
||||
RID_TO_STRING,
|
||||
FILTER_COMMAND,
|
||||
PSEUDO_COLUMN
|
||||
};
|
||||
enum CommandType
|
||||
{
|
||||
NONE,
|
||||
COLUMN_COMMAND,
|
||||
DICT_STEP,
|
||||
DICT_SCAN,
|
||||
PASS_THRU,
|
||||
RID_TO_STRING,
|
||||
FILTER_COMMAND,
|
||||
PSEUDO_COLUMN
|
||||
};
|
||||
|
||||
virtual CommandType getCommandType() = 0;
|
||||
virtual CommandType getCommandType() = 0;
|
||||
|
||||
protected:
|
||||
BatchPrimitiveProcessorJL *bpp;
|
||||
uint32_t OID;
|
||||
uint32_t tupleKey;
|
||||
std::string colName; // for stats
|
||||
boost::uuids::uuid queryUuid;
|
||||
boost::uuids::uuid stepUuid;
|
||||
BatchPrimitiveProcessorJL* bpp;
|
||||
uint32_t OID;
|
||||
uint32_t tupleKey;
|
||||
std::string colName; // for stats
|
||||
boost::uuids::uuid queryUuid;
|
||||
boost::uuids::uuid stepUuid;
|
||||
|
||||
private:
|
||||
|
||||
|
Reference in New Issue
Block a user