Dazzle.FuzzyIndex

g Dazzle.FuzzyIndex Dazzle.FuzzyIndex GObject.Object GObject.Object GObject.Object->Dazzle.FuzzyIndex

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

get_metadata (key)

get_metadata_string (key)

get_metadata_uint32 (key)

get_metadata_uint64 (key)

load_file (file, cancellable)

load_file_async (file, cancellable, callback, *user_data)

load_file_finish (result)

query_async (query, max_matches, cancellable, callback, *user_data)

query_finish (result)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Dazzle.FuzzyIndex(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Dazzle.FuzzyIndexClass

classmethod new()
Return type:

Dazzle.FuzzyIndex

get_metadata(key)
Parameters:

key (str) –

Returns:

A GLib.Variant or None.

Return type:

GLib.Variant or None

Looks up the metadata for key.

get_metadata_string(key)
Parameters:

key (str) –

Return type:

str

get_metadata_uint32(key)
Parameters:

key (str) –

Return type:

int

get_metadata_uint64(key)
Parameters:

key (str) –

Return type:

int

load_file(file, cancellable)
Parameters:
Raises:

GLib.Error

Return type:

bool

load_file_async(file, cancellable, callback, *user_data)
Parameters:
load_file_finish(result)
Parameters:

result (Gio.AsyncResult) –

Raises:

GLib.Error

Return type:

bool

query_async(query, max_matches, cancellable, callback, *user_data)
Parameters:
query_finish(result)
Parameters:

result (Gio.AsyncResult) –

Raises:

GLib.Error

Returns:

A Gio.ListModel of results.

Return type:

Gio.ListModel

Completes an asynchronous request to Dazzle.FuzzyIndex.query_async().