1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +03:00

MCOL-4412 Introduce TypeHandler::getEmptyValueForType to return const ptr for an empty value

WE changes for SQL DML and DDL operations

Changes for bulk operations

Changes for scanning operations

Cleanup
This commit is contained in:
Roman Nozdrin
2021-01-15 16:02:10 +00:00
parent 16b52860e8
commit 5fce19df0a
27 changed files with 741 additions and 580 deletions

View File

@ -89,9 +89,9 @@ public:
/**
* @brief Get an empty row value
*/
EXPORT void getEmptyRowValue(const execplan::CalpontSystemCatalog::ColDataType colDataType,
const int width,
uint8_t* emptyVal ) const;
EXPORT const uint8_t* getEmptyRowValue(const execplan::CalpontSystemCatalog::ColDataType colDataType,
const int width) const;
/**
* @brief Calculate row id
@ -117,17 +117,23 @@ public:
*/
EXPORT void static setEmptyBuf( unsigned char* buf,
const int bufSize,
uint8_t* emptyVal, const int width );
const uint8_t* emptyVal,
const int width );
/**
* @brief Set a value in a buffer
*/
EXPORT void writeBufValue( unsigned char* buf,
void* val,
const void* val,
const size_t width,
const bool clear = false ) const;
EXPORT void findTypeHandler( const int colWidth,
const execplan::CalpontSystemCatalog::ColDataType colDataType);
private:
const datatypes::TypeHandler* m_typeHandler;
};
} //end of namespace
#undef EXPORT