Index

An index is a near-realtime updateable data structure with full CRUD functionality.

from keyvi.index import Index
from keyvi.index import ReadOnlyIndex

index = Index("/tmp/index-directory")
index.Set("a", "{'b': 3}")
index.Flush()

ri = ReadOnlyIndex("/tmp/index-directory")
class keyvi.index.Index

Cython implementation of _Index

Delete(self, in_0: bytes | str) None
Flush()

Overload:

Flush(self) None

Overload:

Flush(self, in_0: bool) None
Get()

Return the value for key if key is in the dictionary, else default.

GetFuzzy(self, in_0: bytes | str, max_edit_distance: int, minimum_exact_prefix: int) Any
GetNear()

Overload:

GetNear(self, in_0: bytes | str, minimum_prefix_length: int) Any

Overload:

GetNear(self, in_0: bytes | str, minimum_prefix_length: int, greedy: bool) Any
Set(self, in_0: bytes | str, in_1: bytes | str) None
class keyvi.index.ReadOnlyIndex

Cython implementation of _ReadOnlyIndex

Get()

Return the value for key if key is in the dictionary, else default.

GetFuzzy(self, in_0: bytes | str, max_edit_distance: int, minimum_exact_prefix: int) Any
GetNear()

Overload:

GetNear(self, in_0: bytes | str, minimum_prefix_length: int) Any

Overload:

GetNear(self, in_0: bytes | str, minimum_prefix_length: int, greedy: bool) Any