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
MCOL-987 Add LZ4 compression.
* Adds CompressInterfaceLZ4 which uses LZ4 API for compress/uncompress. * Adds CMake machinery to search LZ4 on running host. * All methods which use static data and do not modify any internal data - become `static`, so we can use them without creation of the specific object. This is possible, because the header specification has not been modified. We still use 2 sections in header, first one with file meta data, the second one with pointers for compressed chunks. * Methods `compress`, `uncompress`, `maxCompressedSize`, `getUncompressedSize` - become pure virtual, so we can override them for the other compression algos. * Adds method `getChunkMagicNumber`, so we can verify chunk magic number for each compression algo. * Renames "s/IDBCompressInterface/CompressInterface/g" according to requirement.
This commit is contained in:
@ -337,15 +337,12 @@ int BulkLoad::loadJobInfo(
|
||||
}
|
||||
}
|
||||
|
||||
// Validate that specified compression type is available
|
||||
compress::IDBCompressInterface compressor;
|
||||
|
||||
for (unsigned kT = 0; kT < curJob.jobTableList.size(); kT++)
|
||||
{
|
||||
for (unsigned kC = 0; kC < curJob.jobTableList[kT].colList.size(); kC++)
|
||||
{
|
||||
if ( !compressor.isCompressionAvail(
|
||||
curJob.jobTableList[kT].colList[kC].compressionType) )
|
||||
if (!compress::CompressInterface::isCompressionAvail(
|
||||
curJob.jobTableList[kT].colList[kC].compressionType))
|
||||
{
|
||||
std::ostringstream oss;
|
||||
oss << "Specified compression type (" <<
|
||||
|
Reference in New Issue
Block a user