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.

get_fuzzy(self, in_0: bytes | str, max_edit_distance: int, minimum_exact_prefix: int) Any
get_near()

Overload:

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

Overload:

get_near(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.

get_fuzzy(self, in_0: bytes | str, max_edit_distance: int, minimum_exact_prefix: int) Any
get_near()

Overload:

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

Overload:

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