You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-07 03:22:57 +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:
@@ -383,7 +383,7 @@ public:
|
||||
BlockOp blockOp;
|
||||
char fileName[20];
|
||||
int rc;
|
||||
char hdrs[ IDBCompressInterface::HDR_BUF_LEN * 2 ];
|
||||
char hdrs[ CompressInterface::HDR_BUF_LEN * 2 ];
|
||||
|
||||
printf("\nRunning testCreateDeleteFile \n");
|
||||
idbdatafile::IDBPolicy::init(true, false, "", 0);
|
||||
@@ -966,7 +966,7 @@ public:
|
||||
BlockOp blockOp;
|
||||
char fileName[20];
|
||||
int rc;
|
||||
char hdrs[ IDBCompressInterface::HDR_BUF_LEN * 2 ];
|
||||
char hdrs[ CompressInterface::HDR_BUF_LEN * 2 ];
|
||||
int dbRoot = 1;
|
||||
|
||||
printf("\nRunning testExtensionWOPrealloc \n");
|
||||
@@ -1085,7 +1085,7 @@ public:
|
||||
int dbRoot = 1;
|
||||
int colWidth = 65535;
|
||||
|
||||
DctnryCompress1 m_Dctnry;
|
||||
DctnryCompress1 m_Dctnry(/*compressionType=*/1);
|
||||
// This is the magic for the stub in FileOp::oid2FileName
|
||||
int oId = 42;
|
||||
|
||||
@@ -1565,7 +1565,7 @@ public:
|
||||
BlockOp blockOp;
|
||||
char fileName[20];
|
||||
int rc;
|
||||
char hdrs[ IDBCompressInterface::HDR_BUF_LEN * 2 ];
|
||||
char hdrs[ CompressInterface::HDR_BUF_LEN * 2 ];
|
||||
int dbRoot = 1;
|
||||
|
||||
idbdatafile::IDBPolicy::init(true, false, "", 0);
|
||||
|
Reference in New Issue
Block a user