#include <HIdx.h>

Public Types | |
| enum | HIdxKeyType { stringType = 1, dataType } |
| enum | Hints { IniSize_Hints, IniObjCnt_Hints, XCoef_Hints, SzMax_Hints, DataGroupedByKey_Hints } |
Public Member Functions | |
| HIdx (DbHandle *vh, KeyType type, unsigned int datasz, short dspid, int magorder, int key_count=0, const int *impl_hints=0, unsigned int impl_hints_cnt=0) | |
| Not yet documented. | |
| HIdx (DbHandle *vh, const Oid *poid, hash_key_t hash_key=0, void *hash_data=0, Boolean(*precmp)(void const *p, void const *q, KeyType const *type, int &r)=0) | |
| Not yet documented. | |
| void | open (hash_key_t hash_key=0, void *hash_data=0, Boolean(*precmp)(void const *p, void const *q, KeyType const *type, int &r)=0) |
| Not yet documented. | |
| unsigned int | getCount () const |
| Not yet documented. | |
| short | getDefaultDspid () const |
| Not yet documented. | |
| void | setDefaultDspid (short dspid) |
| Not yet documented. | |
| Status | getObjects (Oid *&oids, unsigned int &cnt) const |
| Not yet documented. | |
| virtual HIdx * | asHIdx () |
| Not yet documented. | |
| const KeyType & | getKeyType () const |
| Not yet documented. | |
| const HIdx::_Idx & | getIdx () const |
| Not yet documented. | |
| ~HIdx () | |
| Status | insert (const void *key, const void *data) |
| Not yet documented. | |
| Status | insert (const void *key, const void *data, unsigned int datasz) |
| Not yet documented. | |
| Status | insert (const void *key, std::vector< const void * > &data_v) |
| Not yet documented. | |
| Status | insert_cache (const void *key, const void *data) |
| Not yet documented. | |
| Status | insert_cache (const void *key, std::vector< const void * > &data_v) |
| Not yet documented. | |
| Status | flush_cache (bool insert_data=true) |
| Not yet documented. | |
| Status | remove (const void *key, const void *data, Boolean *found=0) |
| Not yet documented. | |
| Status | remove (const void *key, const void *data, unsigned int datasz, Boolean *found=0) |
| Not yet documented. | |
| Status | search (const void *key, unsigned int *found_cnt) |
| Not yet documented. | |
| Status | searchAny (const void *key, Boolean *found, void *data=0) |
| Not yet documented. | |
| Status | destroy () |
| Not yet documented. | |
| Status | printStat (FILE *fd=stdout) const |
| Not yet documented. | |
| Status | dumpMemoryMap (FILE *fd=stdout) |
| Not yet documented. | |
| Oid const & | oid () const |
| Not yet documented. | |
| Boolean | isDataGroupedByKey () const |
| Not yet documented. | |
| bool | isDataVarSize () const |
| Not yet documented. | |
| unsigned int | getDataGroupedSizeof () const |
| Not yet documented. | |
| Status | status () const |
| Not yet documented. | |
| unsigned int | getKeyCount () const |
| Not yet documented. | |
| Status | collapse () |
| Not yet documented. | |
| Status | copy (HIdx *&idx_n, int key_count, int mag_order=0, short dspid=DefaultDspid, const int *impl_hints=0, unsigned int impl_hints_cnt=0, hash_key_t _hash_key=0, void *_hash_data=0, KeyType *ktype=0) const |
| Not yet documented. | |
| Status | getStats (std::string &stats) const |
| Not yet documented. | |
| Status | getStats (HIdx::Stats &stats) const |
| Not yet documented. | |
| Status | move (short dspid, eyedbsm::Oid &newoid, hash_key_t hash_key=0, void *hash_data=0) |
| Not yet documented. | |
| Status | reimplementToHash (Oid &newoid, int key_count, int mag_order=0, short dspid=DefaultDspid, const int *impl_hints=0, unsigned int impl_hints_cnt=0, hash_key_t hash_key=0, void *hash_data=0, KeyType *ktype=0) |
| Not yet documented. | |
| Status | reimplementToBTree (Oid &newoid, int degree=0, short dspid=DefaultDspid) |
| Not yet documented. | |
| Status | simulate (HIdx::Stats &stats, int key_count, int mag_order=0, const int *impl_hints=0, unsigned int impl_hints_cnt=0, hash_key_t hash_key=0, void *hash_data=0) const |
| Not yet documented. | |
Static Public Member Functions | |
| static unsigned int | getMagOrder (unsigned int keycount) |
| Not yet documented. | |
| static unsigned int | getKeyCount (unsigned int magorder) |
| Not yet documented. | |
Public Attributes | |
| struct _Idx | hidx |
Static Public Attributes | |
| static const unsigned int | MaxKeys = 0x800000 |
| static const unsigned int | VarSize = 0xffffffff |
| static const unsigned int | MagorderKeycountCoef = 64 |
Friends | |
| class | HIdxCursor |
| class | HKey |
Classes | |
| struct | _Idx |
| struct | CellHeader |
| struct | CListHeader |
| struct | CListObjHeader |
| struct | Stats |
Definition at line 57 of file HIdx.h.
| enum eyedbsm::HIdx::Hints |
| eyedbsm::HIdx::HIdx | ( | DbHandle * | vh, | |
| KeyType | type, | |||
| unsigned int | datasz, | |||
| short | dspid, | |||
| int | magorder, | |||
| int | key_count = 0, |
|||
| const int * | impl_hints = 0, |
|||
| unsigned int | impl_hints_cnt = 0 | |||
| ) |
| eyedbsm::HIdx::HIdx | ( | DbHandle * | vh, | |
| const Oid * | poid, | |||
| hash_key_t | hash_key = 0, |
|||
| void * | hash_data = 0, |
|||
| Boolean(*)(void const *p, void const *q, KeyType const *type, int &r) | precmp = 0 | |||
| ) |
| void eyedbsm::HIdx::open | ( | hash_key_t | hash_key = 0, |
|
| void * | hash_data = 0, |
|||
| Boolean(*)(void const *p, void const *q, KeyType const *type, int &r) | precmp = 0 | |||
| ) |
| unsigned int eyedbsm::HIdx::getCount | ( | void | ) | const [virtual] |
| short eyedbsm::HIdx::getDefaultDspid | ( | ) | const [virtual] |
| void eyedbsm::HIdx::setDefaultDspid | ( | short | dspid | ) | [virtual] |
| virtual HIdx* eyedbsm::HIdx::asHIdx | ( | ) | [inline, virtual] |
| const KeyType& eyedbsm::HIdx::getKeyType | ( | ) | const [inline] |
| const HIdx::_Idx& eyedbsm::HIdx::getIdx | ( | ) | const [inline] |
| Status eyedbsm::HIdx::insert | ( | const void * | key, | |
| const void * | data | |||
| ) | [virtual] |
| Status eyedbsm::HIdx::insert | ( | const void * | key, | |
| const void * | data, | |||
| unsigned int | datasz | |||
| ) | [virtual] |
| Status eyedbsm::HIdx::insert | ( | const void * | key, | |
| std::vector< const void * > & | data_v | |||
| ) |
| Status eyedbsm::HIdx::insert_cache | ( | const void * | key, | |
| const void * | data | |||
| ) |
| Status eyedbsm::HIdx::insert_cache | ( | const void * | key, | |
| std::vector< const void * > & | data_v | |||
| ) |
| Status eyedbsm::HIdx::flush_cache | ( | bool | insert_data = true |
) |
| Status eyedbsm::HIdx::remove | ( | const void * | key, | |
| const void * | data, | |||
| unsigned int | datasz, | |||
| Boolean * | found = 0 | |||
| ) | [virtual] |
| Status eyedbsm::HIdx::search | ( | const void * | key, | |
| unsigned int * | found_cnt | |||
| ) | [virtual] |
| Status eyedbsm::HIdx::destroy | ( | ) | [virtual] |
| Status eyedbsm::HIdx::printStat | ( | FILE * | fd = stdout |
) | const |
| Status eyedbsm::HIdx::dumpMemoryMap | ( | FILE * | fd = stdout |
) |
| Oid const& eyedbsm::HIdx::oid | ( | ) | const [inline, virtual] |
| Boolean eyedbsm::HIdx::isDataGroupedByKey | ( | ) | const [inline] |
| bool eyedbsm::HIdx::isDataVarSize | ( | ) | const [inline] |
| unsigned int eyedbsm::HIdx::getDataGroupedSizeof | ( | ) | const [inline] |
| Status eyedbsm::HIdx::status | ( | ) | const [inline, virtual] |
| unsigned int eyedbsm::HIdx::getKeyCount | ( | ) | const [inline] |
| Status eyedbsm::HIdx::collapse | ( | ) |
| Status eyedbsm::HIdx::copy | ( | HIdx *& | idx_n, | |
| int | key_count, | |||
| int | mag_order = 0, |
|||
| short | dspid = DefaultDspid, |
|||
| const int * | impl_hints = 0, |
|||
| unsigned int | impl_hints_cnt = 0, |
|||
| hash_key_t | _hash_key = 0, |
|||
| void * | _hash_data = 0, |
|||
| KeyType * | ktype = 0 | |||
| ) | const |
| unsigned int eyedbsm::HIdx::getMagOrder | ( | unsigned int | keycount | ) | [static] |
| unsigned int eyedbsm::HIdx::getKeyCount | ( | unsigned int | magorder | ) | [static] |
| Status eyedbsm::HIdx::getStats | ( | std::string & | stats | ) | const |
| Status eyedbsm::HIdx::getStats | ( | HIdx::Stats & | stats | ) | const |
| Status eyedbsm::HIdx::move | ( | short | dspid, | |
| eyedbsm::Oid & | newoid, | |||
| hash_key_t | hash_key = 0, |
|||
| void * | hash_data = 0 | |||
| ) |
| Status eyedbsm::HIdx::reimplementToHash | ( | Oid & | newoid, | |
| int | key_count, | |||
| int | mag_order = 0, |
|||
| short | dspid = DefaultDspid, |
|||
| const int * | impl_hints = 0, |
|||
| unsigned int | impl_hints_cnt = 0, |
|||
| hash_key_t | hash_key = 0, |
|||
| void * | hash_data = 0, |
|||
| KeyType * | ktype = 0 | |||
| ) |
| Status eyedbsm::HIdx::reimplementToBTree | ( | Oid & | newoid, | |
| int | degree = 0, |
|||
| short | dspid = DefaultDspid | |||
| ) | [virtual] |
| Status eyedbsm::HIdx::simulate | ( | HIdx::Stats & | stats, | |
| int | key_count, | |||
| int | mag_order = 0, |
|||
| const int * | impl_hints = 0, |
|||
| unsigned int | impl_hints_cnt = 0, |
|||
| hash_key_t | hash_key = 0, |
|||
| void * | hash_data = 0 | |||
| ) | const |
1.5.3