#include <indexlist.h>
|
| | IndexList () |
| | An empty index list. More...
|
| |
| | IndexList (const Configuration &config, bool overwrite=false) |
| | open an already-existing index list, or create one with this Configuration More...
|
| |
| | IndexList (const String &iiFile, const String &idFile) |
| | open an already-existing index list More...
|
| |
| | IndexList (const IndexList &rhs) |
| | create a new reference to a list More...
|
| |
| IndexList & | operator= (const IndexList &rhs) |
| | make this refer to a list More...
|
| |
| | ~IndexList () |
| |
| uint | getCount () const |
| |
| const Configuration & | getIndexConfig (uint indexNum) const |
| | Get the Configuration of an index. More...
|
| |
| size_t | getIndexByField (const String &tag, size_t pos=0) const |
| | Find indexes that include a field. More...
|
| |
| Index & | openIndex (const String &indexName, uint *indexNum=0, Configuration config=Configuration()) |
| | open an index by name More...
|
| |
| const Index & | openIndex (const String &indexName, uint *indexNum=0, Configuration config=Configuration()) const |
| |
| Index & | openIndex (uint indexNum, Configuration config=Configuration()) |
| | open an index by number More...
|
| |
| const Index & | openIndex (uint indexNum, Configuration config=Configuration()) const |
| |
| uint | addIndex (Index &index) |
| |
| bool | write (Index::WriteStatus *st=0) |
| | write in current state More...
|
| |
| bool | range (const Configuration &config, Index::WriteStatus *st=0) |
| | speed up range search for indexes in a list More...
|
| |
| virtual const Configuration & | getConfig () const =0 |
| |
Definition at line 25 of file indexlist.h.
| Xpace::IndexList::IndexList |
( |
| ) |
|
open an already-existing index list, or create one with this Configuration
- Parameters
-
| config | the Configuration |
| overwrite | if true, delete if list already exists |
- Exceptions
-
| Xpace::IndexList::IndexList |
( |
const String & |
iiFile, |
|
|
const String & |
idFile |
|
) |
| |
open an already-existing index list
- Parameters
-
| iiFile | the index-index file |
| idFile | the actual indexes &throw CantOpen |
| Xpace::IndexList::IndexList |
( |
const IndexList & |
rhs | ) |
|
create a new reference to a list
- Parameters
-
| Xpace::IndexList::~IndexList |
( |
| ) |
|
make this refer to a list
- Parameters
-
| uint Xpace::IndexList::getCount |
( |
| ) |
const |
- Returns
- the number of indexes in the list
| size_t Xpace::IndexList::getIndexByField |
( |
const String & |
tag, |
|
|
size_t |
pos = 0 |
|
) |
| const |
Find indexes that include a field.
- Parameters
-
| tag | the field's tag |
| pos | which of the indexes containing the field to return |
- Returns
- number of the pos'th index that contains the field, ~0 for none
open an index by name
- Parameters
-
| indexName | the index to get |
- Return values
-
| indexNum | fill in the index's number |
- Returns
- the found index, Index() if not found
open an index by number
- Parameters
-
| indexNum | the number of the index to get |
| config | if != Configuration(), override index's Configuration with this one |
- Returns
- the found index, Index() if not found
| uint Xpace::IndexList::addIndex |
( |
Index & |
index | ) |
|
- Parameters
-
- Returns
- number of added index
write in current state
- Parameters
-
- Returns
- true if successful and complete, false if failed or stopped by callback
speed up range search for indexes in a list
- Parameters
-
| config | specifies from/to files, indexes to be oprimized |
- Returns
- true if successful, false if failed of stopped by callback
merge a list of index lists
- Parameters
-
| config | merge to a new index list with this configuration |
| list | list of lindx lists to merge |
- Returns
- true if successful and complete, false if failed or stopped by callback
The documentation for this class was generated from the following file: