0.9.8.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
CellStore.cc
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2007-2015 Hypertable, Inc.
3  *
4  * This file is part of Hypertable.
5  *
6  * Hypertable is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License
8  * as published by the Free Software Foundation; version 3 of the
9  * License, or any later version.
10  *
11  * Hypertable is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19  * 02110-1301, USA.
20  */
21 
29 #include "Common/Compat.h"
30 #include "CellStore.h"
31 #include "KeyDecompressorNone.h"
32 
33 using namespace Hypertable;
34 
35 const char CellStore::DATA_BLOCK_MAGIC[10] =
36  { 'D','a','t','a','-','-','-','-','-','-' };
38  { 'I','d','x','F','i','x','-','-','-','-' };
40  { 'I','d','x','V','a','r','-','-','-','-' };
41 
43  return new KeyDecompressorNone();
44 }
45 
46 void CellStore::set_replaced_files(const std::vector<String> &old_files) {
47  m_replaced_files = old_files;
48 }
49 
50 const std::vector<String> &CellStore::get_replaced_files() {
51  return m_replaced_files;
52 }
static const char INDEX_FIXED_BLOCK_MAGIC[10]
Definition: CellStore.h:326
static const char INDEX_VARIABLE_BLOCK_MAGIC[10]
Definition: CellStore.h:327
Declarations for CellStore.
Compatibility Macros for C/C++.
virtual KeyDecompressor * create_key_decompressor()
Creates a key decompressor suitable for decompressing the keys stored in this cell store...
Definition: CellStore.cc:42
Hypertable definitions
virtual void set_replaced_files(const std::vector< String > &old_files)
Sets the cell store files replaced by this CellStore.
Definition: CellStore.cc:46
std::vector< String > m_replaced_files
Definition: CellStore.h:333
static const char DATA_BLOCK_MAGIC[10]
Definition: CellStore.h:325
virtual const std::vector< String > & get_replaced_files()
Returns all the cell store files replaced by this CellStore.
Definition: CellStore.cc:50