The world's most popular open source database
#include <DbUtil.hpp>
Collaboration diagram for DbUtil::PreparedOperation:

Public Member Functions | |
| PreparedOperation (AttrMappingBuffer::DataBufferPool &am, AttrInfoBuffer::DataBufferPool &ai, ResultSetInfoBuffer::DataBufferPool &rs) | |
| void | print () const |
Public Attributes | |
| Uint32 | keyLen |
| Uint32 | rsLen |
| Uint32 | noOfKeyAttr |
| Uint32 | noOfAttr |
| bool | releaseFlag |
| AttrMappingBuffer | attrMapping |
| Uint32 | tckeyLenInBytes |
| Uint32 | keyDataPos |
| TcKeyReq | tckey |
| AttrInfoBuffer | attrInfo |
| ResultSetInfoBuffer | rsInfo |
| Bitmask< MAX_ATTRIBUTES_IN_TABLE > | pkBitmask |
| union { | |
| Uint32 nextPool | |
| Uint32 nextList | |
| }; | |
| Uint32 | prevList |
The prepare phase is finished by storing the request in a PreparedOperation record.
Definition at line 203 of file DbUtil.hpp.
| DbUtil::PreparedOperation::PreparedOperation | ( | AttrMappingBuffer::DataBufferPool & | am, | |
| AttrInfoBuffer::DataBufferPool & | ai, | |||
| ResultSetInfoBuffer::DataBufferPool & | rs | |||
| ) | [inline] |
Definition at line 204 of file DbUtil.hpp.
References BitmaskPOD< size >::clear(), and pkBitmask.
00206 : 00207 releaseFlag(false), attrMapping(am), attrInfo(ai), rsInfo(rs) 00208 { 00209 pkBitmask.clear(); 00210 }
Here is the call graph for this function:

| void DbUtil::PreparedOperation::print | ( | ) | const [inline] |
Definition at line 254 of file DbUtil.hpp.
References attrInfo, attrMapping, keyDataPos, keyLen, ndbout(), noOfAttr, noOfKeyAttr, DataBuffer< sz >::print(), printTCKEYREQ(), rsInfo, rsLen, tckey, and tckeyLenInBytes.
Referenced by DbUtil::Operation::print().
00254 { 00255 ndbout << "[-PreparedOperation-" << endl 00256 << " keyLen: " << keyLen 00257 << ", rsLen: " << rsLen 00258 << ", noOfKeyAttr: " << noOfKeyAttr 00259 << ", noOfAttr: " << noOfAttr 00260 << ", tckeyLenInBytes: " << tckeyLenInBytes 00261 << ", keyDataPos: " << keyDataPos << endl 00262 << "-AttrMapping- (AttrId, KeyPos)-pairs " 00263 << "(Pos=3fff if non-key attr):" << endl; 00264 attrMapping.print(stdout); 00265 ndbout << "[-tckey- "; 00266 printTCKEYREQ(stdout, (Uint32*)&tckey, 8, 0); 00267 ndbout << "[-attrInfo- "; 00268 attrInfo.print(stdout); 00269 ndbout << "[-rsInfo- "; 00270 rsInfo.print(stdout); 00271 ndbout << "]]]]" << endl; 00272 }
Here is the call graph for this function:

Here is the caller graph for this function:

| union { ... } |
Attribute Mapping
This datastructure (buffer of AttributeHeader:s) are used to map each execute request to a TCKEYREQ train of signals.
The datastructure contains (AttributeId, Position) pairs, where
Definition at line 232 of file DbUtil.hpp.
Referenced by print().
Definition at line 213 of file DbUtil.hpp.
Referenced by DbUtil::execUTIL_SEQUENCE_REQ(), and print().
Definition at line 250 of file DbUtil.hpp.
Definition at line 249 of file DbUtil.hpp.
| Bitmask<MAX_ATTRIBUTES_IN_TABLE> DbUtil::PreparedOperation::pkBitmask |
Definition at line 252 of file DbUtil.hpp.
Definition at line 217 of file DbUtil.hpp.
Definition at line 214 of file DbUtil.hpp.
Referenced by DbUtil::execUTIL_SEQUENCE_REQ(), print(), and DbUtil::runOperation().
1.4.7

