Classes
Client
Client for interacting with the TopK API. For available regions see regions Methods Constructorcollection()
Returns
CollectionClient
collections()
CollectionsClient
AsyncClient
Async client for interacting with the TopK API. For available regions see regions Methods Constructorcollection()
Returns
AsyncCollectionClient
collections()
AsyncCollectionsClient
CollectionClient
Synchronous client for collection operations. Methodsget()
Returns
dict[str, dict[str, Any]]
count()
Returns
int
query()
Returns
list[dict[str, Any]]
upsert()
Returns
str
update()
LSN at which the update was applied.
If no updates were applied, this will be empty.
Parameters
Returns
str
delete()
Returns
str
list_partitions()
Returns
PartitionListIterator
delete_partition()
Returns
None
AsyncCollectionClient
Asynchronous client for collection operations. Methodsget()
Returns
Awaitable[dict[str, dict[str, Any]]]
count()
Returns
Awaitable[int]
query()
Returns
Awaitable[list[dict[str, Any]]]
upsert()
Returns
Awaitable[str]
update()
LSN at which the update was applied.
If no updates were applied, this will be empty.
Parameters
Returns
Awaitable[str]
delete()
Returns
Awaitable[str]
list_partitions()
Returns
AsyncPartitionListIterator
delete_partition()
Returns
Awaitable[None]
Collection
Represents a collection in the TopK system. PropertiesPartition
Represents a partition in a collection. PropertiesCollectionsClient
Synchronous client for managing collections. Methodsget()
Returns
Collection
list()
Collection]
create()
Returns
Collection
delete()
Returns
None
AsyncCollectionsClient
Asynchronous client for managing collections. Methodsget()
Returns
Awaitable[
Collection]
list()
Collection]]
create()
Returns
Awaitable[
Collection]
delete()
Returns
Awaitable[None]
PartitionListIterator
Iterator for synchronous partition list responses.AsyncPartitionListIterator
Iterator for asynchronous partition list responses.ConsistencyLevel
Consistency level for read operations. PropertiesRetryConfig
Configuration for retry behavior. By default, retries occur in two situations:- When the server requests the client to reduce its request rate, resulting in a SlowDownError.
- When using the
query(..., lsn=N)to wait for writes to be available.
Methods
Constructor
BackoffConfig
Configuration for backoff behavior in retries. Properties
Methods
Constructor