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

Cell predicate. More...

#include <CellPredicate.h>

Collaboration diagram for Hypertable::CellPredicate:
Collaboration graph
[legend]

Classes

struct  CellPattern
 

Public Member Functions

 CellPredicate ()
 Default constructor. More...
 
void all_matches (const char *qualifier, size_t qualifier_len, const char *value, size_t value_len, std::bitset< 32 > &matching)
 
bool matches (const char *qualifier, size_t qualifier_len, const char *value, size_t value_len)
 Evaluates predicate for the given cell. More...
 
bool pattern_match (CellPatternPtr &cp, const char *qualifier, size_t qualifier_len, const char *value, size_t value_len)
 
void add_column_predicate (const ColumnPredicate &column_predicate, size_t id)
 

Public Attributes

int64_t cutoff_time
 TTL cutoff time. More...
 
uint32_t max_versions
 Max versions (0 for all versions) More...
 
bool counter
 Column family has counter option. More...
 
bool indexed
 Column family is indexed. More...
 

Private Types

typedef std::shared_ptr
< CellPattern
CellPatternPtr
 Smart pointer to CellPattern. More...
 

Private Attributes

std::vector< CellPatternPtrpatterns
 Vector of patterns used in predicate match. More...
 

Detailed Description

Cell predicate.

Definition at line 48 of file CellPredicate.h.

Member Typedef Documentation

typedef std::shared_ptr<CellPattern> Hypertable::CellPredicate::CellPatternPtr
private

Smart pointer to CellPattern.

Definition at line 96 of file CellPredicate.h.

Constructor & Destructor Documentation

Hypertable::CellPredicate::CellPredicate ( )
inline

Default constructor.

Definition at line 101 of file CellPredicate.h.

Member Function Documentation

void Hypertable::CellPredicate::add_column_predicate ( const ColumnPredicate column_predicate,
size_t  id 
)
inline

Definition at line 180 of file CellPredicate.h.

void Hypertable::CellPredicate::all_matches ( const char *  qualifier,
size_t  qualifier_len,
const char *  value,
size_t  value_len,
std::bitset< 32 > &  matching 
)
inline

Definition at line 104 of file CellPredicate.h.

bool Hypertable::CellPredicate::matches ( const char *  qualifier,
size_t  qualifier_len,
const char *  value,
size_t  value_len 
)
inline

Evaluates predicate for the given cell.

Parameters
qualifierCell column qualifier
qualifier_lenCell column qualifier length
valueCell value
value_lenCell value length
Returns
true if predicate matches, otherwise false

Definition at line 119 of file CellPredicate.h.

bool Hypertable::CellPredicate::pattern_match ( CellPatternPtr cp,
const char *  qualifier,
size_t  qualifier_len,
const char *  value,
size_t  value_len 
)
inline

Definition at line 130 of file CellPredicate.h.

Member Data Documentation

bool Hypertable::CellPredicate::counter

Column family has counter option.

Definition at line 191 of file CellPredicate.h.

int64_t Hypertable::CellPredicate::cutoff_time

TTL cutoff time.

Definition at line 185 of file CellPredicate.h.

bool Hypertable::CellPredicate::indexed

Column family is indexed.

Definition at line 194 of file CellPredicate.h.

uint32_t Hypertable::CellPredicate::max_versions

Max versions (0 for all versions)

Definition at line 188 of file CellPredicate.h.

std::vector<CellPatternPtr> Hypertable::CellPredicate::patterns
private

Vector of patterns used in predicate match.

Definition at line 199 of file CellPredicate.h.


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