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

Classes

struct  fifo_element_st

Public Member Functions

 NdbOptimizeTableHandleImpl (NdbDictionary::OptimizeTableHandle &)
int init (Ndb *ndb, const NdbTableImpl &table)
int next ()
int close ()
- Public Member Functions inherited from NdbDictionary::OptimizeTableHandle
 OptimizeTableHandle ()

Static Public Member Functions

static NdbOptimizeTableHandleImplgetImpl (NdbDictionary::OptimizeTableHandle &h)

Detailed Description

Definition at line 340 of file NdbDictionaryImpl.hpp.

Constructor & Destructor Documentation

NdbOptimizeTableHandleImpl::NdbOptimizeTableHandleImpl ( NdbDictionary::OptimizeTableHandle f)

Member Function Documentation

int NdbOptimizeTableHandleImpl::close ( void  )

Close the handle object

Returns
0 when completed -1 encountered some error

Reimplemented from NdbDictionary::OptimizeTableHandle.

Definition at line 1668 of file NdbDictionaryImpl.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

int NdbOptimizeTableHandleImpl::init ( Ndb ndb,
const NdbTableImpl table 
)

search whether there are var size columns in the table, in first step, we only optimize var part, then if the table has no var size columns, we do not do optimizing

Definition at line 1506 of file NdbDictionaryImpl.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

int NdbOptimizeTableHandleImpl::next ( void  )

Optimize one more batch of records

Returns
1 for more records left to optimize, 0 when completed -1 encountered some error

Get update operation

optimize a tuple through doing the update first step, move varpart

nextResult(false) means that the records cached in the NDBAPI are modified before fetching more rows from NDB.

Commit when all cached tuple have been updated

Reimplemented from NdbDictionary::OptimizeTableHandle.

Definition at line 1566 of file NdbDictionaryImpl.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: