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

Public Member Functions

 NdbEventOperationImpl (NdbEventOperation &f, Ndb *theNdb, const char *eventName)
 NdbEventOperationImpl (Ndb *theNdb, NdbEventImpl &evnt)
void init (NdbEventImpl &evnt)
 NdbEventOperationImpl (NdbEventOperationImpl &)
NdbEventOperationImploperator= (const NdbEventOperationImpl &)
NdbEventOperation::State getState ()
int execute ()
int execute_nolock ()
int stop ()
NdbRecAttrgetValue (const char *colName, char *aValue, int n)
NdbRecAttrgetValue (const NdbColumnImpl *, char *aValue, int n)
NdbBlobgetBlobHandle (const char *colName, int n)
NdbBlobgetBlobHandle (const NdbColumnImpl *, int n)
Uint32 get_blob_part_no (bool hasDist)
int readBlobParts (char *buf, NdbBlob *blob, Uint32 part, Uint32 count, Uint16 *lenLoc)
int receive_event ()
bool tableNameChanged () const
bool tableFrmChanged () const
bool tableFragmentationChanged () const
bool tableRangeListChanged () const
Uint64 getGCI ()
Uint32 getAnyValue () const
Uint64 getLatestGCI ()
Uint64 getTransId () const
bool execSUB_TABLE_DATA (const NdbApiSignal *signal, const LinearSectionPtr ptr[3])
NdbDictionary::Event::TableEvent getEventType ()
void print ()
void printAll ()
const NdbErrorgetNdbError () const
- Public Member Functions inherited from NdbEventOperation
void mergeEvents (bool flag)
NdbRecAttrgetValue (const char *anAttrName, char *aValue=0)
NdbRecAttrgetPreValue (const char *anAttrName, char *aValue=0)
NdbBlobgetBlobHandle (const char *anAttrName)
NdbBlobgetPreBlobHandle (const char *anAttrName)
int isOverrun () const
bool isConsistent () const
NdbDictionary::Event::TableEvent getEventType () const
Uint64 getGCI () const
Uint64 getLatestGCI () const
const NdbDictionary::TablegetTable () const
const NdbDictionary::EventgetEvent () const
const NdbRecAttrgetFirstPkAttr () const
const NdbRecAttrgetFirstPkPreAttr () const
const NdbRecAttrgetFirstDataAttr () const
const NdbRecAttrgetFirstDataPreAttr () const
void setCustomData (void *data)
void * getCustomData () const
void clearError ()
int hasError () const
int getReqNodeId () const
int getNdbdNodeId () const

Public Attributes

NdbEventOperationm_facade
Uint32 m_magic_number
NdbError m_error
Ndbm_ndb
NdbEventImplm_eventImpl
NdbRecAttrtheFirstPkAttrs [2]
NdbRecAttrtheCurrentPkAttrs [2]
NdbRecAttrtheFirstDataAttrs [2]
NdbRecAttrtheCurrentDataAttrs [2]
NdbBlobtheBlobList
NdbEventOperationImpltheBlobOpList
NdbEventOperationImpltheMainOp
int theBlobVersion
NdbEventOperation::State m_state
Uint32 mi_type
Uint32 m_eventId
Uint32 m_oid
Uint64 m_stop_gci
int m_ref_count
bool m_mergeEvents
EventBufDatam_data_item
void * m_custom_data
int m_has_error
Uint32 m_fragmentId
UtilBuffer m_buffer
Uint32 m_change_mask
NdbEventOperationImplm_next
NdbEventOperationImplm_prev

Additional Inherited Members

- Public Types inherited from NdbEventOperation
enum  State { EO_CREATED, EO_EXECUTING, EO_DROPPED, EO_ERROR }

Detailed Description

Definition at line 353 of file NdbEventOperationImpl.hpp.

Member Function Documentation

int NdbEventOperationImpl::execute ( )

Activates the NdbEventOperation to start receiving events. The changed attribute values may be retrieved after Ndb::nextEvent() has returned not NULL. The getValue() methods must be called prior to execute().

Returns
0 if successful otherwise -1.

Reimplemented from NdbEventOperation.

Definition at line 570 of file NdbEventOperationImpl.cpp.

Here is the caller graph for this function:

Uint32 NdbEventOperationImpl::getAnyValue ( ) const

Retrieve the AnyValue of the latest retrieved event

Returns
AnyValue

Reimplemented from NdbEventOperation.

Definition at line 784 of file NdbEventOperationImpl.cpp.

Here is the caller graph for this function:

const NdbError & NdbEventOperationImpl::getNdbError ( ) const

Get the latest error

Returns
Error object.

Reimplemented from NdbEventOperation.

Definition at line 73 of file Ndberr.cpp.

Here is the caller graph for this function:

NdbEventOperation::State NdbEventOperationImpl::getState ( )

Retrieve current state of the NdbEventOperation object

Reimplemented from NdbEventOperation.

Definition at line 228 of file NdbEventOperationImpl.cpp.

Here is the caller graph for this function:

Uint64 NdbEventOperationImpl::getTransId ( ) const

Retrieve the TransId of the latest retrieved event

Only valid for data events. If the kernel does not support transaction ids with events, the max Uint64 value is returned.

Returns
TransId

Reimplemented from NdbEventOperation.

Definition at line 796 of file NdbEventOperationImpl.cpp.

Here is the caller graph for this function:

bool NdbEventOperationImpl::tableFragmentationChanged ( ) const

Check if table fragmentation has changed, for event TE_ALTER

Reimplemented from NdbEventOperation.

Definition at line 765 of file NdbEventOperationImpl.cpp.

Here is the caller graph for this function:

bool NdbEventOperationImpl::tableFrmChanged ( ) const

Check if table frm has changed, for event TE_ALTER

Reimplemented from NdbEventOperation.

Definition at line 760 of file NdbEventOperationImpl.cpp.

Here is the caller graph for this function:

bool NdbEventOperationImpl::tableNameChanged ( ) const

Check if table name has changed, for event TE_ALTER

Reimplemented from NdbEventOperation.

Definition at line 755 of file NdbEventOperationImpl.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool NdbEventOperationImpl::tableRangeListChanged ( ) const

Check if table range partition list name has changed, for event TE_ALTER

Reimplemented from NdbEventOperation.

Definition at line 770 of file NdbEventOperationImpl.cpp.

Here is the caller graph for this function:


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