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

Public Types

enum  ReceiverType {
  NDB_UNINITIALIZED, NDB_OPERATION = 1, NDB_SCANRECEIVER = 2, NDB_INDEX_OPERATION = 3,
  NDB_QUERY_OPERATION = 4
}

Public Member Functions

 NdbReceiver (Ndb *aNdb)
int init (ReceiverType type, bool useRec, void *owner)
void release ()
Uint32 getId () const
ReceiverType getType () const
NdbTransactiongetTransaction () const
void * getOwner () const
bool checkMagicNumber () const
void next (NdbReceiver *next_arg)
NdbReceivernext ()
void setErrorCode (int)
void prepareReceive (char *buf)
void prepareRead (char *buf, Uint32 rows)

Friends

class Ndb
class NdbOperation
class NdbQueryImpl
class NdbQueryOperationImpl
class NdbResultStream
class NdbScanOperation
class NdbIndexOperation
class NdbIndexScanOperation
class NdbTransaction
class NdbRootFragment
int compare_ndbrecord (const NdbReceiver *r1, const NdbReceiver *r2, const NdbRecord *key_record, const NdbRecord *result_record, bool descending, bool read_range_no)
int spjTest (int argc, char **argv)

Detailed Description

Definition at line 32 of file NdbReceiver.hpp.

Friends And Related Function Documentation

int compare_ndbrecord ( const NdbReceiver r1,
const NdbReceiver r2,
const NdbRecord key_record,
const NdbRecord result_record,
bool  descending,
bool  read_range_no 
)
friend

Compare keys of the current records of two NdbReceiver objects.

Parameters
r1holds the first record to compare.
r2holds the second record to compare.
key_recordspecifies the keys to compare.
result_recordspecifies the format of full records.
descendingif true, descending sort order is to be used.
read_range_noif true, range numbers will first be compared, and then keys if range numbers are the same for both records.
Returns
-1 if r1<r2, 0 if r1=r2, 1 if r1> r2 (reversed when using 'descending').

Definition at line 3549 of file NdbScanOperation.cpp.

friend class Ndb
friend

Reciver(s)

Definition at line 34 of file NdbReceiver.hpp.

friend class NdbIndexOperation
friend

Sender(s)

Definition at line 40 of file NdbReceiver.hpp.

friend class NdbOperation
friend

Sender(s)

Definition at line 35 of file NdbReceiver.hpp.


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