Camel.Index¶
- Subclasses:
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
flags |
r |
||
normalize |
r |
||
normalize_data |
r |
||
parent |
r |
||
path |
r |
||
state |
r |
||
version |
r |
Class Details¶
- class Camel.Index(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- add_name(name)¶
- Parameters:
name (
str
) – a name to add- Returns:
a
Camel.IndexName
with added given name, orNone
, when the name could not be added.- Return type:
- find(word)¶
- Parameters:
word (
str
) – a word to find- Returns:
a
Camel.IndexCursor
object with the given word, orNone
, when not found- Return type:
- find_name(name)¶
- Parameters:
name (
str
) – a name to find- Returns:
a
Camel.IndexCursor
with the given name, orNone
< when not found.- Return type:
- set_normalize(func, *user_data)¶
- Parameters:
func (
Camel.IndexNorm
) – normalization function
New in version 2.32.
- words()¶
- Returns:
a
Camel.IndexCursor
containing all words of the self, orNone
, when there are none- Return type:
- write_name(idn)¶
- Parameters:
idn (
Camel.IndexName
) –- Return type:
- do_add_name(name) virtual¶
- Parameters:
name (
str
) – a name to add- Returns:
a
Camel.IndexName
with added given name, orNone
, when the name could not be added.- Return type:
- 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.IndexCursor
object with the given word, orNone
, when not found- Return type:
- do_find_name(name) virtual¶
- Parameters:
name (
str
) – a name to find- Returns:
a
Camel.IndexCursor
with the given name, orNone
< when not found.- Return type:
- do_words() virtual¶
- Returns:
a
Camel.IndexCursor
containing all words of the index, orNone
, when there are none- Return type:
- do_write_name(idn) virtual¶
- Parameters:
idn (
Camel.IndexName
) –- Return type: