0.9.8.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Public Attributes | List of all members
Hypertable::QueryCache::RowKey Class Reference

Row key information. More...

#include <QueryCache.h>

Public Member Functions

 RowKey (const char *t, const char *r)
 Constructor. More...
 
bool operator== (const RowKey &other) const
 Equality operator. More...
 

Public Attributes

const char * tablename
 Table name More...
 
const char * row
 Row. More...
 
uint32_t hash
 Hash code computed from tablename and row. More...
 

Detailed Description

Row key information.

Definition at line 67 of file QueryCache.h.

Constructor & Destructor Documentation

Hypertable::QueryCache::RowKey::RowKey ( const char *  t,
const char *  r 
)
inline

Constructor.

Initializes tablename to t and row to r. This member function assumes that t and r are pointers to memory that will be valid for the lifetime of the cache entry. Also sets hash to the fletcher32 checksum of the tablename and row for invalidation purposes.

Parameters
tTable name
rRow

Definition at line 77 of file QueryCache.h.

Member Function Documentation

bool Hypertable::QueryCache::RowKey::operator== ( const RowKey other) const
inline

Equality operator.

Parameters
otherOther key to compare
Returns
true if keys are equal, false otherwise.

Definition at line 83 of file QueryCache.h.

Member Data Documentation

uint32_t Hypertable::QueryCache::RowKey::hash

Hash code computed from tablename and row.

Definition at line 91 of file QueryCache.h.

const char* Hypertable::QueryCache::RowKey::row

Row.

Definition at line 89 of file QueryCache.h.

const char* Hypertable::QueryCache::RowKey::tablename

Table name

Definition at line 87 of file QueryCache.h.


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