MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RestoreDataIterator Class Reference
Inheritance diagram for RestoreDataIterator:
Collaboration diagram for RestoreDataIterator:

Public Member Functions

 RestoreDataIterator (const RestoreMetaData &, void(*free_data_callback)())
bool readFragmentHeader (int &res, Uint32 *fragmentId)
bool validateFragmentFooter ()
const TupleSgetNextTuple (int &res)
TableSgetCurrentTable ()
- Public Member Functions inherited from BackupFile
bool readHeader ()
bool validateFooter ()
const char * getPath () const
const char * getFilename () const
Uint32 getNodeId () const
const BackupFormat::FileHeadergetFileHeader () const
bool Twiddle (const AttributeDesc *const attr_desc, AttributeData *attr_data)
Uint64 get_file_size () const
Uint64 get_file_pos () const

Protected Member Functions

virtual void reset_buffers ()
int readTupleData_old (Uint32 *buf_ptr, Uint32 dataLength)
int readTupleData_packed (Uint32 *buf_ptr, Uint32 dataLength)
int readVarData (Uint32 *buf_ptr, Uint32 *ptr, Uint32 dataLength)
int readVarData_drop6 (Uint32 *buf_ptr, Uint32 *ptr, Uint32 dataLength)
- Protected Member Functions inherited from BackupFile
bool openFile ()
void setCtlFile (Uint32 nodeId, Uint32 backupId, const char *path)
void setDataFile (const BackupFile &bf, Uint32 no)
void setLogFile (const BackupFile &bf, Uint32 no)
Uint32 buffer_get_ptr (void **p_buf_ptr, Uint32 size, Uint32 nmemb)
Uint32 buffer_read (void *ptr, Uint32 size, Uint32 nmemb)
Uint32 buffer_get_ptr_ahead (void **p_buf_ptr, Uint32 size, Uint32 nmemb)
Uint32 buffer_read_ahead (void *ptr, Uint32 size, Uint32 nmemb)
void setName (const char *path, const char *name)
 BackupFile (void(*free_data_callback)()=0)

Additional Inherited Members

- Protected Attributes inherited from BackupFile
ndbzio_stream m_file
char m_path [PATH_MAX]
char m_fileName [PATH_MAX]
bool m_hostByteOrder
BackupFormat::FileHeader m_fileHeader
BackupFormat::FileHeader m_expectedFileHeader
Uint32 m_nodeId
void * m_buffer
void * m_buffer_ptr
Uint32 m_buffer_sz
Uint32 m_buffer_data_left
Uint64 m_file_size
Uint64 m_file_pos
UtilBuffer m_twiddle_buffer
bool m_is_undolog
void(* free_data_callback )()

Detailed Description

Definition at line 417 of file Restore.hpp.

Member Function Documentation

const TupleS * RestoreDataIterator::getNextTuple ( int &  res)

Informing buffer reader that it does not need to cache "old" data here would be clever... But I can't find a good/easy way to do this

Definition at line 922 of file Restore.cpp.

Here is the call graph for this function:

int RestoreDataIterator::readTupleData_packed ( Uint32 *  buf_ptr,
Uint32  dataLength 
)
protected

Unpack READ_PACKED header

Twiddle READ_BACKED header

Iterate through attributes...

Handle padding

Next

Definition at line 994 of file Restore.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following files: