NdbIndexStat Class Reference

#include <NdbIndexStat.hpp>

List of all members.

Classes

struct  Area
struct  Entry
struct  Pointer

Public Types

enum  { RR_UseDb = 1, RR_NoUpdate = 2 }

Public Member Functions

 NdbIndexStat (const NdbDictionary::Index *index)
 ~NdbIndexStat ()
int alloc_cache (Uint32 entries)
int records_in_range (const NdbDictionary::Index *index, NdbTransaction *trans, const NdbRecord *key_record, const NdbRecord *result_record, const NdbIndexScanOperation::IndexBound *ib, Uint64 table_rows, Uint64 *count, int flags)
const NdbErrorgetNdbError () const

Private Member Functions

 STATIC_CONST (EntrySize=sizeof(Entry) >> 2)
 STATIC_CONST (PointerSize=sizeof(Pointer) >> 2)
int stat_cmpkey (const Area &a, const Uint32 *key1, Uint32 keylen1, const Uint32 *key2, Uint32 keylen2)
int stat_search (const Area &a, const Uint32 *key, Uint32 keylen, Uint32 *idx, bool *match)
int stat_oldest (const Area &a)
int stat_delete (Area &a, Uint32 k)
int stat_update (const Uint32 *key1, Uint32 keylen1, const Uint32 *key2, Uint32 keylen2, const float pct[2])
int stat_select (const Uint32 *key1, Uint32 keylen1, const Uint32 *key2, Uint32 keylen2, float pct[2])
void set_error (int code)
int addKeyPartInfo (const NdbRecord *record, const char *keyRecordData, Uint32 keyPartNum, const NdbIndexScanOperation::BoundType boundType, Uint32 *keyStatData, Uint32 &keyLength)

Private Attributes

 NDB_MAX_KEYSIZE_IN_WORDS
const NdbIndexImpl & m_index
Uint32 m_areasize
Uint16 m_seq
Area m_area [2]
Uint32 * m_cache
NdbError m_error

Friends

struct Pointer
struct Entry
struct Area


Member Enumeration Documentation

anonymous enum

Enumerator:
RR_UseDb 
RR_NoUpdate 


Constructor & Destructor Documentation

NdbIndexStat::NdbIndexStat ( const NdbDictionary::Index index  ) 

NdbIndexStat::~NdbIndexStat (  ) 


Member Function Documentation

int NdbIndexStat::addKeyPartInfo ( const NdbRecord *  record,
const char *  keyRecordData,
Uint32  keyPartNum,
const NdbIndexScanOperation::BoundType  boundType,
Uint32 *  keyStatData,
Uint32 &  keyLength 
) [private]

int NdbIndexStat::alloc_cache ( Uint32  entries  ) 

const NdbError& NdbIndexStat::getNdbError (  )  const

int NdbIndexStat::records_in_range ( const NdbDictionary::Index index,
NdbTransaction trans,
const NdbRecord *  key_record,
const NdbRecord *  result_record,
const NdbIndexScanOperation::IndexBound ib,
Uint64  table_rows,
Uint64 *  count,
int  flags 
)

void NdbIndexStat::set_error ( int  code  )  [private]

int NdbIndexStat::stat_cmpkey ( const Area a,
const Uint32 *  key1,
Uint32  keylen1,
const Uint32 *  key2,
Uint32  keylen2 
) [private]

int NdbIndexStat::stat_delete ( Area a,
Uint32  k 
) [private]

int NdbIndexStat::stat_oldest ( const Area a  )  [private]

int NdbIndexStat::stat_search ( const Area a,
const Uint32 *  key,
Uint32  keylen,
Uint32 *  idx,
bool *  match 
) [private]

int NdbIndexStat::stat_select ( const Uint32 *  key1,
Uint32  keylen1,
const Uint32 *  key2,
Uint32  keylen2,
float  pct[2] 
) [private]

int NdbIndexStat::stat_update ( const Uint32 *  key1,
Uint32  keylen1,
const Uint32 *  key2,
Uint32  keylen2,
const float  pct[2] 
) [private]

NdbIndexStat::STATIC_CONST ( PointerSize  = sizeof(Pointer) >> 2  )  [private]

NdbIndexStat::STATIC_CONST ( EntrySize  = sizeof(Entry) >> 2  )  [private]


Friends And Related Function Documentation

friend struct Area [friend]

friend struct Entry [friend]

friend struct Pointer [friend]


Member Data Documentation

Area NdbIndexStat::m_area[2] [private]

Uint32 NdbIndexStat::m_areasize [private]

Uint32* NdbIndexStat::m_cache [private]

const NdbIndexImpl& NdbIndexStat::m_index [private]

Uint16 NdbIndexStat::m_seq [private]


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

MySQL Cluster Database Blog

Based on MySQL Cluster 7.0.10.

This page is for information only and is not maintained by MySQL or Sun Microsystems - use at your own risk. For an upto date view of the API refer to the header files included with your MySQL Cluster distribution or check the MySQL Cluster API Developer Guide.