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
feat(): propagate long strings SP type change
This commit is contained in:
@ -38,6 +38,7 @@
|
||||
#include "any.hpp"
|
||||
#include "nullstring.h"
|
||||
#include "countingallocator.h"
|
||||
#include "buffertypes.h"
|
||||
|
||||
class ByteStreamTestSuite;
|
||||
|
||||
@ -447,9 +448,9 @@ class ByteStream : public Serializeable
|
||||
3 * sizeof(uint32_t); // space for the BS magic & length & number of long strings.
|
||||
|
||||
// Methods to get and set `long strings`.
|
||||
EXPORT std::vector<std::shared_ptr<uint8_t[]>>& getLongStrings();
|
||||
EXPORT const std::vector<std::shared_ptr<uint8_t[]>>& getLongStrings() const;
|
||||
EXPORT void setLongStrings(const std::vector<std::shared_ptr<uint8_t[]>>& other);
|
||||
EXPORT std::vector<rowgroup::StringStoreBufSPType>& getLongStrings();
|
||||
EXPORT const std::vector<rowgroup::StringStoreBufSPType>& getLongStrings() const;
|
||||
EXPORT void setLongStrings(const std::vector<rowgroup::StringStoreBufSPType>& other);
|
||||
|
||||
friend class ::ByteStreamTestSuite;
|
||||
|
||||
@ -484,7 +485,7 @@ class ByteStream : public Serializeable
|
||||
BSBufType* fCurOutPtr; // the point in fBuf where data is extracted from next
|
||||
BSSizeType fMaxLen; // how big fBuf is currently
|
||||
// Stores `long strings`.
|
||||
std::vector<std::shared_ptr<uint8_t[]>> longStrings;
|
||||
std::vector<rowgroup::StringStoreBufSPType> longStrings;
|
||||
allocators::CountingAllocator<BSBufType>* allocator = nullptr;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user