1111import io .weaviate .client6 .v1 .api .collections .pagination .AsyncPaginator ;
1212import io .weaviate .client6 .v1 .api .collections .query .ConsistencyLevel ;
1313import io .weaviate .client6 .v1 .api .collections .query .WeaviateQueryClientAsync ;
14+ import io .weaviate .client6 .v1 .api .collections .tenants .WeaviateTenantsClientAsync ;
1415import io .weaviate .client6 .v1 .internal .ObjectBuilder ;
1516import io .weaviate .client6 .v1 .internal .grpc .GrpcTransport ;
1617import io .weaviate .client6 .v1 .internal .orm .CollectionDescriptor ;
@@ -21,19 +22,21 @@ public class CollectionHandleAsync<PropertiesT> {
2122 public final WeaviateDataClientAsync <PropertiesT > data ;
2223 public final WeaviateQueryClientAsync <PropertiesT > query ;
2324 public final WeaviateAggregateClientAsync aggregate ;
25+ public final WeaviateTenantsClientAsync tenants ;
2426
2527 private final CollectionHandleDefaults defaults ;
2628
2729 public CollectionHandleAsync (
2830 RestTransport restTransport ,
2931 GrpcTransport grpcTransport ,
30- CollectionDescriptor <PropertiesT > collectionDescriptor ,
32+ CollectionDescriptor <PropertiesT > collection ,
3133 CollectionHandleDefaults defaults ) {
3234
33- this .config = new WeaviateConfigClientAsync (collectionDescriptor , restTransport , grpcTransport );
34- this .aggregate = new WeaviateAggregateClientAsync (collectionDescriptor , grpcTransport , defaults );
35- this .query = new WeaviateQueryClientAsync <>(collectionDescriptor , grpcTransport , defaults );
36- this .data = new WeaviateDataClientAsync <>(collectionDescriptor , restTransport , grpcTransport , defaults );
35+ this .config = new WeaviateConfigClientAsync (collection , restTransport , grpcTransport );
36+ this .aggregate = new WeaviateAggregateClientAsync (collection , grpcTransport , defaults );
37+ this .query = new WeaviateQueryClientAsync <>(collection , grpcTransport , defaults );
38+ this .data = new WeaviateDataClientAsync <>(collection , restTransport , grpcTransport , defaults );
39+ this .tenants = new WeaviateTenantsClientAsync (collection , restTransport , grpcTransport );
3740
3841 this .defaults = defaults ;
3942 }
@@ -42,6 +45,7 @@ public CollectionHandleAsync(
4245 private CollectionHandleAsync (CollectionHandleAsync <PropertiesT > c , CollectionHandleDefaults defaults ) {
4346 this .config = c .config ;
4447 this .aggregate = c .aggregate ;
48+ this .tenants = c .tenants ;
4549 this .query = new WeaviateQueryClientAsync <>(c .query , defaults );
4650 this .data = new WeaviateDataClientAsync <>(c .data , defaults );
4751
0 commit comments