xtrace_sdk.integrations.local

Classes

LocalIntegration

Local integration for development purposes.

Module Contents

class xtrace_sdk.integrations.local.LocalIntegration(**kwargs)

Bases: xtrace_sdk.integrations.base.IntegrationBase

Local integration for development purposes.

Parameters:
  • IntegrationBase (class) – Interface for local integrations

  • kwargs (Any)

#TODO: Make this work with minimal effort

__del__(**kwargs)

Destructor for the Local class.

Parameters:

kwargs (Any)

Return type:

None

async get_chunk(chunk_ids, **kwargs)

Get a chunk from the local storage.

Parameters:
  • chunk_ids (Any)

  • kwargs (Any)

Return type:

Any

async store_index(index, **kwargs)

Store the index in the local storage.

Parameters:
  • index (Any)

  • kwargs (Any)

Return type:

None

async store_db(db, **kwargs)

Store the database in the local storage.

Parameters:
  • db (Any)

  • kwargs (Any)

Return type:

None

async load_index(**kwargs)

Load the index from the local storage.

Parameters:

kwargs (Any)

Return type:

Any

load_db(**kwargs)

Load the database from the local storage.

Parameters:

kwargs (Any)

Return type:

Any

async compute_hamming_distances(query, pk, **kwargs)

Given a query and key, compute the Hamming distances between the query and the data in the local storage.

Parameters:
  • query (Any)

  • pk (Any)

  • kwargs (Any)

Return type:

Any