Camel.Index¶
| Subclasses: | Camel.TextIndex | 
|---|
Methods¶
| Inherited: | GObject.Object (37) | 
|---|---|
| Structs: | GObject.ObjectClass (5) | 
| add_name(name) | |
| compress() | |
| construct(path, flags) | |
| delete() | |
| delete_name(name) | |
| find(word) | |
| find_name(name) | |
| has_name(name) | |
| rename(path) | |
| set_normalize(func, *user_data) | |
| sync() | |
| words() | |
| write_name(idn) | 
Virtual Methods¶
| Inherited: | GObject.Object (7) | 
|---|
| do_add_name(name) | |
| do_compress() | |
| do_delete_() | |
| do_delete_name(name) | |
| do_find(word) | |
| do_find_name(name) | |
| do_has_name(name) | |
| do_rename(path) | |
| do_sync() | |
| do_words() | |
| do_write_name(idn) | 
Properties¶
None
Signals¶
| Inherited: | GObject.Object (1) | 
|---|
Fields¶
| Inherited: | GObject.Object (1) | 
|---|
| Name | Type | Access | Description | 
|---|---|---|---|
| flags | int | r | |
| normalize | Camel.IndexNorm | r | |
| normalize_data | object | r | |
| parent | GObject.Object | r | |
| path | str | r | |
| state | int | r | |
| version | int | r | 
Class Details¶
- 
class Camel.Index(**kwargs)¶
- Bases: - GObject.Object- Abstract: - No - Structure: - Camel.IndexClass- 
add_name(name)¶
- Parameters: - name ( - str) – a name to add- Returns: - a - Camel.IndexNamewith added given name, or- None, when the name could not be added.- Return type: - Camel.IndexNameor- None
 - 
find(word)¶
- Parameters: - word ( - str) – a word to find- Returns: - a - Camel.IndexCursorobject with the given word, or- None, when not found- Return type: - Camel.IndexCursoror- None
 - 
find_name(name)¶
- Parameters: - name ( - str) – a name to find- Returns: - a - Camel.IndexCursorwith the given name, or- None< when not found.- Return type: - Camel.IndexCursoror- None
 - 
set_normalize(func, *user_data)¶
- Parameters: - func (Camel.IndexNorm) – normalization function
- user_data (objectorNone) – user data for func
 - New in version 2.32. 
- func (
 - 
words()¶
- Returns: - a - Camel.IndexCursorcontaining all words of the self, or- None, when there are none- Return type: - Camel.IndexCursoror- None
 - 
write_name(idn)¶
- Parameters: - idn ( - Camel.IndexName) –- Return type: - int
 - 
do_add_name(name) virtual¶
- Parameters: - name ( - str) – a name to add- Returns: - a - Camel.IndexNamewith added given name, or- None, when the name could not be added.- Return type: - Camel.IndexNameor- None
 - 
do_delete_name(name) virtual¶
- Parameters: - name ( - str) – a name to delete- Deletes the given name from index. 
 - 
do_find(word) virtual¶
- Parameters: - word ( - str) – a word to find- Returns: - a - Camel.IndexCursorobject with the given word, or- None, when not found- Return type: - Camel.IndexCursoror- None
 - 
do_find_name(name) virtual¶
- Parameters: - name ( - str) – a name to find- Returns: - a - Camel.IndexCursorwith the given name, or- None< when not found.- Return type: - Camel.IndexCursoror- None
 - 
do_words() virtual¶
- Returns: - a - Camel.IndexCursorcontaining all words of the index, or- None, when there are none- Return type: - Camel.IndexCursoror- None
 - 
do_write_name(idn) virtual¶
- Parameters: - idn ( - Camel.IndexName) –- Return type: - int
 
-