1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-12-18 13:54:11 +03:00

Added some add'l stubs for key manipulation

This commit is contained in:
Patrick LeBlanc
2019-03-20 14:23:43 -05:00
parent 0b4cbad829
commit fe66382580
2 changed files with 42 additions and 6 deletions

View File

@@ -37,11 +37,20 @@ class MetadataFile
vector<metadataObject> metadataRead(off_t offset, size_t length);
// updates the metadatafile with new object
int updateMetadata(const char *filename);
// updates the name and length fields of an entry, given the offset
void updateEntry(off_t offset, const std::string &newName, size_t newLength);
metadataObject addMetadataObject(const char *filename, size_t length);
// TBD: this may have to go; there may be no use case where only the uuid needs to change.
std::string getNewKeyFromOldKey(const std::string &oldKey);
std::string getNewKey(std::string sourceName, size_t offset, size_t length);
static std::string getNewKeyFromOldKey(std::string oldKey, size_t length=0);
static std::string getNewKey(std::string sourceName, size_t offset, size_t length);
static off_t getOffsetFromKey(const std::string &key);
static std::string getSourceFromKey(const std::string &key);
static size_t getLengthFromKey(const std::string &key);
static void setOffset(std::string &key, off_t newOffset);
static void setLength(std::string &key, size_t newLength);
private:
Config *mpConfig;