add index_stats python api (#1096)

the integration test will be covered in another PR:
https://github.com/lancedb/sophon/pull/1876
This commit is contained in:
QianZhu
2024-03-13 08:47:54 -07:00
committed by Weston Pace
parent c33110397e
commit 723defbe7e

View File

@@ -68,10 +68,16 @@ class RemoteTable(Table):
def list_indices(self):
"""List all the indices on the table"""
print(self._name)
resp = self._conn._client.post(f"/v1/table/{self._name}/index/list/")
return resp
def index_stats(self, index_uuid: str):
"""List all the indices on the table"""
resp = self._conn._client.post(
f"/v1/table/{self._name}/index/{index_uuid}/stats/"
)
return resp
def create_scalar_index(
self,
column: str,