1
/* Copyright (C) 2003 MySQL AB
3
This program is free software; you can redistribute it and/or modify
4
it under the terms of the GNU General Public License as published by
5
the Free Software Foundation; version 2 of the License.
7
This program is distributed in the hope that it will be useful,
8
but WITHOUT ANY WARRANTY; without even the implied warranty of
9
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
GNU General Public License for more details.
12
You should have received a copy of the GNU General Public License
13
along with this program; if not, write to the Free Software
14
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
19
#include "Restore.hpp"
20
#include "ndb_nodegroup_map.h"
22
#include "../../../../sql/ha_ndbcluster_tables.h"
23
extern const char *Ndb_apply_table;
25
class BackupConsumer {
28
virtual ~BackupConsumer() { }
29
virtual bool init() { return true;}
30
virtual bool object(Uint32 tableType, const void*) { return true;}
31
virtual bool table(const TableS &){return true;}
32
virtual bool endOfTables() { return true; }
33
virtual void tuple(const TupleS &, Uint32 fragId){}
34
virtual void tuple_free(){}
35
virtual void endOfTuples(){}
36
virtual void logEntry(const LogEntry &){}
37
virtual void endOfLogEntrys(){}
38
virtual bool finalize_table(const TableS &){return true;}
39
virtual bool createSystable(const TableS &){ return true;}
40
virtual bool update_apply_status(const RestoreMetaData &metaData){return true;}
41
NODE_GROUP_MAP *m_nodegroup_map;
42
uint m_nodegroup_map_len;
43
virtual bool has_temp_error() {return false;}
44
virtual bool table_equal(const TableS &) {return true;}