├── .github ├── mergify.yml └── workflows │ ├── generate_javadoc.yml │ ├── java_sdk_ci_test.yaml │ ├── maven.yml │ └── release_event.yml ├── .gitignore ├── .gitmodules ├── CHANGELOG.md ├── CODE_REVIEW.md ├── CONTRIBUTING.md ├── DEVELOPMENT.md ├── LICENSE ├── OWNERS ├── README.md ├── doc ├── allclasses-frame.html ├── allclasses-noframe.html ├── constant-values.html ├── deprecated-list.html ├── help-doc.html ├── index-files │ ├── index-1.html │ ├── index-10.html │ ├── index-11.html │ ├── index-12.html │ ├── index-13.html │ ├── index-14.html │ ├── index-15.html │ ├── index-16.html │ ├── index-17.html │ ├── index-18.html │ ├── index-19.html │ ├── index-2.html │ ├── index-20.html │ ├── index-21.html │ ├── index-22.html │ ├── index-23.html │ ├── index-3.html │ ├── index-4.html │ ├── index-5.html │ ├── index-6.html │ ├── index-7.html │ ├── index-8.html │ └── index-9.html ├── index.html ├── io │ └── milvus │ │ ├── bulkwriter │ │ ├── Buffer.html │ │ ├── BulkWriter.html │ │ ├── CloudImport.html │ │ ├── LocalBulkWriter.html │ │ ├── LocalBulkWriterParam.Builder.html │ │ ├── LocalBulkWriterParam.html │ │ ├── RemoteBulkWriter.html │ │ ├── RemoteBulkWriterParam.Builder.html │ │ ├── RemoteBulkWriterParam.html │ │ ├── common │ │ │ ├── clientenum │ │ │ │ ├── BulkFileType.html │ │ │ │ ├── CloudStorage.html │ │ │ │ ├── TypeSize.html │ │ │ │ ├── package-frame.html │ │ │ │ ├── package-summary.html │ │ │ │ └── package-tree.html │ │ │ └── utils │ │ │ │ ├── GeneratorUtils.html │ │ │ │ ├── ImportUtils.html │ │ │ │ ├── ParquetReaderUtils.html │ │ │ │ ├── ParquetUtils.html │ │ │ │ ├── package-frame.html │ │ │ │ ├── package-summary.html │ │ │ │ └── package-tree.html │ │ ├── connect │ │ │ ├── AzureConnectParam.Builder.html │ │ │ ├── AzureConnectParam.html │ │ │ ├── S3ConnectParam.Builder.html │ │ │ ├── S3ConnectParam.html │ │ │ ├── StorageConnectParam.html │ │ │ ├── package-frame.html │ │ │ ├── package-summary.html │ │ │ └── package-tree.html │ │ ├── package-frame.html │ │ ├── package-summary.html │ │ ├── package-tree.html │ │ ├── response │ │ │ ├── BulkImportResponse.html │ │ │ ├── GetImportProgressResponse.html │ │ │ ├── ListImportJobsResponse.html │ │ │ ├── RestfulResponse.html │ │ │ ├── package-frame.html │ │ │ ├── package-summary.html │ │ │ └── package-tree.html │ │ └── storage │ │ │ ├── StorageClient.html │ │ │ ├── client │ │ │ ├── AzureStorageClient.html │ │ │ ├── MinioStorageClient.html │ │ │ ├── package-frame.html │ │ │ ├── package-summary.html │ │ │ └── package-tree.html │ │ │ ├── package-frame.html │ │ │ ├── package-summary.html │ │ │ └── package-tree.html │ │ ├── client │ │ ├── AbstractMilvusGrpcClient.html │ │ ├── MilvusClient.html │ │ ├── MilvusMultiServiceClient.html │ │ ├── MilvusServiceClient.html │ │ ├── package-frame.html │ │ ├── package-summary.html │ │ └── package-tree.html │ │ ├── common │ │ ├── clientenum │ │ │ ├── ConsistencyLevelEnum.html │ │ │ ├── package-frame.html │ │ │ ├── package-summary.html │ │ │ └── package-tree.html │ │ ├── constant │ │ │ ├── MilvusClientConstant.MilvusConsts.html │ │ │ ├── MilvusClientConstant.StringValue.html │ │ │ ├── MilvusClientConstant.html │ │ │ ├── package-frame.html │ │ │ ├── package-summary.html │ │ │ └── package-tree.html │ │ ├── resourcegroup │ │ │ ├── ResourceGroupConfig.Builder.html │ │ │ ├── ResourceGroupConfig.html │ │ │ ├── ResourceGroupLimit.html │ │ │ ├── ResourceGroupTransfer.html │ │ │ ├── package-frame.html │ │ │ ├── package-summary.html │ │ │ └── package-tree.html │ │ └── utils │ │ │ ├── ExceptionUtils.html │ │ │ ├── Float16Utils.html │ │ │ ├── JacksonUtils.html │ │ │ ├── VectorUtils.html │ │ │ ├── package-frame.html │ │ │ ├── package-summary.html │ │ │ └── package-tree.html │ │ ├── connection │ │ ├── ClusterFactory.Builder.html │ │ ├── ClusterFactory.html │ │ ├── ClusterListener.html │ │ ├── Listener.html │ │ ├── QueryNodeListener.html │ │ ├── ServerMonitor.html │ │ ├── ServerSetting.Builder.html │ │ ├── ServerSetting.html │ │ ├── package-frame.html │ │ ├── package-summary.html │ │ └── package-tree.html │ │ ├── exception │ │ ├── ClientNotConnectedException.html │ │ ├── IllegalResponseException.html │ │ ├── MilvusException.html │ │ ├── ParamException.html │ │ ├── ServerException.html │ │ ├── UnExpectedException.html │ │ ├── package-frame.html │ │ ├── package-summary.html │ │ └── package-tree.html │ │ ├── orm │ │ └── iterator │ │ │ ├── IteratorAdapterV2.html │ │ │ ├── IteratorCache.html │ │ │ ├── QueryIterator.html │ │ │ ├── SearchIterator.html │ │ │ ├── package-frame.html │ │ │ ├── package-summary.html │ │ │ └── package-tree.html │ │ ├── param │ │ ├── ConnectParam.Builder.html │ │ ├── ConnectParam.html │ │ ├── Constant.html │ │ ├── IndexBuildState.html │ │ ├── IndexType.html │ │ ├── LogLevel.html │ │ ├── MetricType.html │ │ ├── MultiConnectParam.Builder.html │ │ ├── MultiConnectParam.html │ │ ├── ParamUtils.InsertBuilderWrapper.html │ │ ├── ParamUtils.InsertDataInfo.html │ │ ├── ParamUtils.html │ │ ├── QueryNodeSingleSearch.Builder.html │ │ ├── QueryNodeSingleSearch.html │ │ ├── R.Status.html │ │ ├── R.html │ │ ├── RetryParam.Builder.html │ │ ├── RetryParam.html │ │ ├── RpcStatus.html │ │ ├── ServerAddress.Builder.html │ │ ├── ServerAddress.html │ │ ├── alias │ │ │ ├── AlterAliasParam.Builder.html │ │ │ ├── AlterAliasParam.html │ │ │ ├── CreateAliasParam.Builder.html │ │ │ ├── CreateAliasParam.html │ │ │ ├── DropAliasParam.Builder.html │ │ │ ├── DropAliasParam.html │ │ │ ├── ListAliasesParam.Builder.html │ │ │ ├── ListAliasesParam.html │ │ │ ├── package-frame.html │ │ │ ├── package-summary.html │ │ │ └── package-tree.html │ │ ├── bulkinsert │ │ │ ├── BulkInsertParam.Builder.html │ │ │ ├── BulkInsertParam.html │ │ │ ├── GetBulkInsertStateParam.Builder.html │ │ │ ├── GetBulkInsertStateParam.html │ │ │ ├── ListBulkInsertTasksParam.Builder.html │ │ │ ├── ListBulkInsertTasksParam.html │ │ │ ├── package-frame.html │ │ │ ├── package-summary.html │ │ │ └── package-tree.html │ │ ├── collection │ │ │ ├── AlterCollectionParam.Builder.html │ │ │ ├── AlterCollectionParam.html │ │ │ ├── AlterDatabaseParam.Builder.html │ │ │ ├── AlterDatabaseParam.html │ │ │ ├── CollectionSchemaParam.Builder.html │ │ │ ├── CollectionSchemaParam.html │ │ │ ├── CreateCollectionParam.Builder.html │ │ │ ├── CreateCollectionParam.html │ │ │ ├── CreateDatabaseParam.Builder.html │ │ │ ├── CreateDatabaseParam.html │ │ │ ├── DescribeCollectionParam.Builder.html │ │ │ ├── DescribeCollectionParam.html │ │ │ ├── DescribeDatabaseParam.Builder.html │ │ │ ├── DescribeDatabaseParam.html │ │ │ ├── DropCollectionParam.Builder.html │ │ │ ├── DropCollectionParam.html │ │ │ ├── DropDatabaseParam.Builder.html │ │ │ ├── DropDatabaseParam.html │ │ │ ├── FieldType.Builder.html │ │ │ ├── FieldType.html │ │ │ ├── FlushParam.Builder.html │ │ │ ├── FlushParam.html │ │ │ ├── GetCollectionStatisticsParam.Builder.html │ │ │ ├── GetCollectionStatisticsParam.html │ │ │ ├── GetLoadStateParam.Builder.html │ │ │ ├── GetLoadStateParam.html │ │ │ ├── GetLoadingProgressParam.Builder.html │ │ │ ├── GetLoadingProgressParam.html │ │ │ ├── HasCollectionParam.Builder.html │ │ │ ├── HasCollectionParam.html │ │ │ ├── LoadCollectionParam.Builder.html │ │ │ ├── LoadCollectionParam.html │ │ │ ├── ReleaseCollectionParam.Builder.html │ │ │ ├── ReleaseCollectionParam.html │ │ │ ├── RenameCollectionParam.Builder.html │ │ │ ├── RenameCollectionParam.html │ │ │ ├── ShowCollectionsParam.Builder.html │ │ │ ├── ShowCollectionsParam.html │ │ │ ├── package-frame.html │ │ │ ├── package-summary.html │ │ │ └── package-tree.html │ │ ├── control │ │ │ ├── GetCompactionPlansParam.Builder.html │ │ │ ├── GetCompactionPlansParam.html │ │ │ ├── GetCompactionStateParam.Builder.html │ │ │ ├── GetCompactionStateParam.html │ │ │ ├── GetFlushAllStateParam.Builder.html │ │ │ ├── GetFlushAllStateParam.html │ │ │ ├── GetFlushStateParam.Builder.html │ │ │ ├── GetFlushStateParam.html │ │ │ ├── GetMetricsParam.Builder.html │ │ │ ├── GetMetricsParam.html │ │ │ ├── GetPersistentSegmentInfoParam.Builder.html │ │ │ ├── GetPersistentSegmentInfoParam.html │ │ │ ├── GetQuerySegmentInfoParam.Builder.html │ │ │ ├── GetQuerySegmentInfoParam.html │ │ │ ├── GetReplicasParam.Builder.html │ │ │ ├── GetReplicasParam.html │ │ │ ├── LoadBalanceParam.Builder.html │ │ │ ├── LoadBalanceParam.html │ │ │ ├── ManualCompactParam.Builder.html │ │ │ ├── ManualCompactParam.html │ │ │ ├── package-frame.html │ │ │ ├── package-summary.html │ │ │ └── package-tree.html │ │ ├── credential │ │ │ ├── CreateCredentialParam.Builder.html │ │ │ ├── CreateCredentialParam.html │ │ │ ├── DeleteCredentialParam.Builder.html │ │ │ ├── DeleteCredentialParam.html │ │ │ ├── ListCredUsersParam.Builder.html │ │ │ ├── ListCredUsersParam.html │ │ │ ├── UpdateCredentialParam.Builder.html │ │ │ ├── UpdateCredentialParam.html │ │ │ ├── package-frame.html │ │ │ ├── package-summary.html │ │ │ └── package-tree.html │ │ ├── dml │ │ │ ├── AnnSearchParam.Builder.html │ │ │ ├── AnnSearchParam.html │ │ │ ├── DeleteParam.Builder.html │ │ │ ├── DeleteParam.html │ │ │ ├── HybridSearchParam.Builder.html │ │ │ ├── HybridSearchParam.html │ │ │ ├── InsertParam.Builder.html │ │ │ ├── InsertParam.Field.html │ │ │ ├── InsertParam.html │ │ │ ├── QueryIteratorParam.Builder.html │ │ │ ├── QueryIteratorParam.html │ │ │ ├── QueryParam.Builder.html │ │ │ ├── QueryParam.html │ │ │ ├── SearchIteratorParam.Builder.html │ │ │ ├── SearchIteratorParam.html │ │ │ ├── SearchParam.Builder.html │ │ │ ├── SearchParam.html │ │ │ ├── UpsertParam.Builder.html │ │ │ ├── UpsertParam.html │ │ │ ├── package-frame.html │ │ │ ├── package-summary.html │ │ │ ├── package-tree.html │ │ │ └── ranker │ │ │ │ ├── BaseRanker.html │ │ │ │ ├── RRFRanker.Builder.html │ │ │ │ ├── RRFRanker.html │ │ │ │ ├── WeightedRanker.Builder.html │ │ │ │ ├── WeightedRanker.html │ │ │ │ ├── package-frame.html │ │ │ │ ├── package-summary.html │ │ │ │ └── package-tree.html │ │ ├── highlevel │ │ │ ├── collection │ │ │ │ ├── CreateSimpleCollectionParam.Builder.html │ │ │ │ ├── CreateSimpleCollectionParam.html │ │ │ │ ├── ListCollectionsParam.Builder.html │ │ │ │ ├── ListCollectionsParam.html │ │ │ │ ├── package-frame.html │ │ │ │ ├── package-summary.html │ │ │ │ ├── package-tree.html │ │ │ │ └── response │ │ │ │ │ ├── ListCollectionsResponse.html │ │ │ │ │ ├── package-frame.html │ │ │ │ │ ├── package-summary.html │ │ │ │ │ └── package-tree.html │ │ │ └── dml │ │ │ │ ├── DeleteIdsParam.Builder.html │ │ │ │ ├── DeleteIdsParam.html │ │ │ │ ├── GetIdsParam.Builder.html │ │ │ │ ├── GetIdsParam.html │ │ │ │ ├── InsertRowsParam.Builder.html │ │ │ │ ├── InsertRowsParam.html │ │ │ │ ├── QuerySimpleParam.Builder.html │ │ │ │ ├── QuerySimpleParam.html │ │ │ │ ├── SearchSimpleParam.Builder.html │ │ │ │ ├── SearchSimpleParam.html │ │ │ │ ├── package-frame.html │ │ │ │ ├── package-summary.html │ │ │ │ ├── package-tree.html │ │ │ │ └── response │ │ │ │ ├── DeleteResponse.html │ │ │ │ ├── GetResponse.html │ │ │ │ ├── InsertResponse.html │ │ │ │ ├── QueryResponse.html │ │ │ │ ├── SearchResponse.html │ │ │ │ ├── package-frame.html │ │ │ │ ├── package-summary.html │ │ │ │ └── package-tree.html │ │ ├── index │ │ │ ├── AlterIndexParam.Builder.html │ │ │ ├── AlterIndexParam.html │ │ │ ├── CreateIndexParam.Builder.html │ │ │ ├── CreateIndexParam.html │ │ │ ├── DescribeIndexParam.Builder.html │ │ │ ├── DescribeIndexParam.html │ │ │ ├── DropIndexParam.Builder.html │ │ │ ├── DropIndexParam.html │ │ │ ├── GetIndexBuildProgressParam.Builder.html │ │ │ ├── GetIndexBuildProgressParam.html │ │ │ ├── GetIndexStateParam.Builder.html │ │ │ ├── GetIndexStateParam.html │ │ │ ├── package-frame.html │ │ │ ├── package-summary.html │ │ │ └── package-tree.html │ │ ├── package-frame.html │ │ ├── package-summary.html │ │ ├── package-tree.html │ │ ├── partition │ │ │ ├── CreatePartitionParam.Builder.html │ │ │ ├── CreatePartitionParam.html │ │ │ ├── DropPartitionParam.Builder.html │ │ │ ├── DropPartitionParam.html │ │ │ ├── GetPartitionStatisticsParam.Builder.html │ │ │ ├── GetPartitionStatisticsParam.html │ │ │ ├── HasPartitionParam.Builder.html │ │ │ ├── HasPartitionParam.html │ │ │ ├── LoadPartitionsParam.Builder.html │ │ │ ├── LoadPartitionsParam.html │ │ │ ├── ReleasePartitionsParam.Builder.html │ │ │ ├── ReleasePartitionsParam.html │ │ │ ├── ShowPartitionsParam.Builder.html │ │ │ ├── ShowPartitionsParam.html │ │ │ ├── package-frame.html │ │ │ ├── package-summary.html │ │ │ └── package-tree.html │ │ ├── resourcegroup │ │ │ ├── CreateResourceGroupParam.Builder.html │ │ │ ├── CreateResourceGroupParam.html │ │ │ ├── DescribeResourceGroupParam.Builder.html │ │ │ ├── DescribeResourceGroupParam.html │ │ │ ├── DropResourceGroupParam.Builder.html │ │ │ ├── DropResourceGroupParam.html │ │ │ ├── ListResourceGroupsParam.Builder.html │ │ │ ├── ListResourceGroupsParam.html │ │ │ ├── TransferNodeParam.Builder.html │ │ │ ├── TransferNodeParam.html │ │ │ ├── TransferReplicaParam.Builder.html │ │ │ ├── TransferReplicaParam.html │ │ │ ├── UpdateResourceGroupsParam.Builder.html │ │ │ ├── UpdateResourceGroupsParam.html │ │ │ ├── package-frame.html │ │ │ ├── package-summary.html │ │ │ └── package-tree.html │ │ └── role │ │ │ ├── AddUserToRoleParam.Builder.html │ │ │ ├── AddUserToRoleParam.html │ │ │ ├── CreateRoleParam.Builder.html │ │ │ ├── CreateRoleParam.html │ │ │ ├── DropRoleParam.Builder.html │ │ │ ├── DropRoleParam.html │ │ │ ├── GrantRolePrivilegeParam.Builder.html │ │ │ ├── GrantRolePrivilegeParam.html │ │ │ ├── RemoveUserFromRoleParam.Builder.html │ │ │ ├── RemoveUserFromRoleParam.html │ │ │ ├── RevokeRolePrivilegeParam.Builder.html │ │ │ ├── RevokeRolePrivilegeParam.html │ │ │ ├── SelectGrantForRoleAndObjectParam.Builder.html │ │ │ ├── SelectGrantForRoleAndObjectParam.html │ │ │ ├── SelectGrantForRoleParam.Builder.html │ │ │ ├── SelectGrantForRoleParam.html │ │ │ ├── SelectRoleParam.Builder.html │ │ │ ├── SelectRoleParam.html │ │ │ ├── SelectUserParam.Builder.html │ │ │ ├── SelectUserParam.html │ │ │ ├── package-frame.html │ │ │ ├── package-summary.html │ │ │ └── package-tree.html │ │ ├── pool │ │ ├── ClientPool.html │ │ ├── MilvusClientV1Pool.html │ │ ├── MilvusClientV2Pool.html │ │ ├── PoolClientFactory.html │ │ ├── PoolConfig.html │ │ ├── package-frame.html │ │ ├── package-summary.html │ │ └── package-tree.html │ │ ├── response │ │ ├── BulkInsertResponseWrapper.html │ │ ├── DescCollResponseWrapper.html │ │ ├── DescDBResponseWrapper.html │ │ ├── DescIndexResponseWrapper.IndexDesc.html │ │ ├── DescIndexResponseWrapper.html │ │ ├── FieldDataWrapper.html │ │ ├── GetBulkInsertStateWrapper.html │ │ ├── GetCollStatResponseWrapper.html │ │ ├── GetPartStatResponseWrapper.html │ │ ├── MutationResultWrapper.html │ │ ├── QueryResultsWrapper.RowRecord.html │ │ ├── QueryResultsWrapper.html │ │ ├── SearchResultsWrapper.IDScore.html │ │ ├── SearchResultsWrapper.html │ │ ├── ShowCollResponseWrapper.CollectionInfo.html │ │ ├── ShowCollResponseWrapper.html │ │ ├── ShowPartResponseWrapper.PartitionInfo.html │ │ ├── ShowPartResponseWrapper.html │ │ ├── basic │ │ │ ├── RowRecordWrapper.html │ │ │ ├── package-frame.html │ │ │ ├── package-summary.html │ │ │ └── package-tree.html │ │ ├── package-frame.html │ │ ├── package-summary.html │ │ └── package-tree.html │ │ ├── utils │ │ ├── URLParser.html │ │ ├── package-frame.html │ │ ├── package-summary.html │ │ └── package-tree.html │ │ └── v2 │ │ ├── client │ │ ├── ConnectConfig.html │ │ ├── MilvusClientV2.html │ │ ├── RetryConfig.html │ │ ├── package-frame.html │ │ ├── package-summary.html │ │ └── package-tree.html │ │ ├── common │ │ ├── ConsistencyLevel.html │ │ ├── DataType.html │ │ ├── IndexBuildState.html │ │ ├── IndexParam.IndexType.html │ │ ├── IndexParam.MetricType.html │ │ ├── IndexParam.html │ │ ├── package-frame.html │ │ ├── package-summary.html │ │ └── package-tree.html │ │ ├── exception │ │ ├── ErrorCode.html │ │ ├── MilvusClientException.html │ │ ├── package-frame.html │ │ ├── package-summary.html │ │ └── package-tree.html │ │ ├── service │ │ ├── BaseService.html │ │ ├── collection │ │ │ ├── CollectionService.html │ │ │ ├── package-frame.html │ │ │ ├── package-summary.html │ │ │ ├── package-tree.html │ │ │ ├── request │ │ │ │ ├── AddFieldReq.html │ │ │ │ ├── AlterCollectionReq.html │ │ │ │ ├── CreateCollectionReq.CollectionSchema.html │ │ │ │ ├── CreateCollectionReq.FieldSchema.html │ │ │ │ ├── CreateCollectionReq.html │ │ │ │ ├── DescribeCollectionReq.html │ │ │ │ ├── DropCollectionReq.html │ │ │ │ ├── GetCollectionStatsReq.html │ │ │ │ ├── GetLoadStateReq.html │ │ │ │ ├── HasCollectionReq.html │ │ │ │ ├── LoadCollectionReq.html │ │ │ │ ├── ReleaseCollectionReq.html │ │ │ │ ├── RenameCollectionReq.html │ │ │ │ ├── package-frame.html │ │ │ │ ├── package-summary.html │ │ │ │ └── package-tree.html │ │ │ └── response │ │ │ │ ├── DescribeCollectionResp.html │ │ │ │ ├── GetCollectionStatsResp.html │ │ │ │ ├── ListCollectionsResp.html │ │ │ │ ├── package-frame.html │ │ │ │ ├── package-summary.html │ │ │ │ └── package-tree.html │ │ ├── database │ │ │ ├── DatabaseService.html │ │ │ ├── package-frame.html │ │ │ ├── package-summary.html │ │ │ ├── package-tree.html │ │ │ ├── request │ │ │ │ ├── AlterDatabaseReq.html │ │ │ │ ├── CreateDatabaseReq.html │ │ │ │ ├── DescribeDatabaseReq.html │ │ │ │ ├── DropDatabaseReq.html │ │ │ │ ├── package-frame.html │ │ │ │ ├── package-summary.html │ │ │ │ └── package-tree.html │ │ │ └── response │ │ │ │ ├── DescribeDatabaseResp.html │ │ │ │ ├── ListDatabasesResp.html │ │ │ │ ├── package-frame.html │ │ │ │ ├── package-summary.html │ │ │ │ └── package-tree.html │ │ ├── index │ │ │ ├── IndexService.html │ │ │ ├── package-frame.html │ │ │ ├── package-summary.html │ │ │ ├── package-tree.html │ │ │ ├── request │ │ │ │ ├── AlterIndexReq.html │ │ │ │ ├── CreateIndexReq.html │ │ │ │ ├── DescribeIndexReq.html │ │ │ │ ├── DropIndexReq.html │ │ │ │ ├── ListIndexesReq.html │ │ │ │ ├── package-frame.html │ │ │ │ ├── package-summary.html │ │ │ │ └── package-tree.html │ │ │ └── response │ │ │ │ ├── DescribeIndexResp.IndexDesc.html │ │ │ │ ├── DescribeIndexResp.html │ │ │ │ ├── package-frame.html │ │ │ │ ├── package-summary.html │ │ │ │ └── package-tree.html │ │ ├── package-frame.html │ │ ├── package-summary.html │ │ ├── package-tree.html │ │ ├── partition │ │ │ ├── PartitionService.html │ │ │ ├── package-frame.html │ │ │ ├── package-summary.html │ │ │ ├── package-tree.html │ │ │ └── request │ │ │ │ ├── CreatePartitionReq.html │ │ │ │ ├── DropPartitionReq.html │ │ │ │ ├── HasPartitionReq.html │ │ │ │ ├── ListPartitionsReq.html │ │ │ │ ├── LoadPartitionsReq.html │ │ │ │ ├── ReleasePartitionsReq.html │ │ │ │ ├── package-frame.html │ │ │ │ ├── package-summary.html │ │ │ │ └── package-tree.html │ │ ├── rbac │ │ │ ├── RoleService.html │ │ │ ├── UserService.html │ │ │ ├── package-frame.html │ │ │ ├── package-summary.html │ │ │ ├── package-tree.html │ │ │ ├── request │ │ │ │ ├── CreateRoleReq.html │ │ │ │ ├── CreateUserReq.html │ │ │ │ ├── DescribeRoleReq.html │ │ │ │ ├── DescribeUserReq.html │ │ │ │ ├── DropRoleReq.html │ │ │ │ ├── DropUserReq.html │ │ │ │ ├── GrantPrivilegeReq.html │ │ │ │ ├── GrantRoleReq.html │ │ │ │ ├── RevokePrivilegeReq.html │ │ │ │ ├── RevokeRoleReq.html │ │ │ │ ├── UpdatePasswordReq.html │ │ │ │ ├── package-frame.html │ │ │ │ ├── package-summary.html │ │ │ │ └── package-tree.html │ │ │ └── response │ │ │ │ ├── DescribeRoleResp.GrantInfo.html │ │ │ │ ├── DescribeRoleResp.html │ │ │ │ ├── DescribeUserResp.html │ │ │ │ ├── package-frame.html │ │ │ │ ├── package-summary.html │ │ │ │ └── package-tree.html │ │ ├── utility │ │ │ ├── UtilityService.html │ │ │ ├── package-frame.html │ │ │ ├── package-summary.html │ │ │ ├── package-tree.html │ │ │ ├── request │ │ │ │ ├── AlterAliasReq.html │ │ │ │ ├── CreateAliasReq.html │ │ │ │ ├── DescribeAliasReq.html │ │ │ │ ├── DropAliasReq.html │ │ │ │ ├── FlushReq.html │ │ │ │ ├── ListAliasesReq.html │ │ │ │ ├── package-frame.html │ │ │ │ ├── package-summary.html │ │ │ │ └── package-tree.html │ │ │ └── response │ │ │ │ ├── DescribeAliasResp.html │ │ │ │ ├── ListAliasResp.html │ │ │ │ ├── package-frame.html │ │ │ │ ├── package-summary.html │ │ │ │ └── package-tree.html │ │ └── vector │ │ │ ├── VectorService.html │ │ │ ├── package-frame.html │ │ │ ├── package-summary.html │ │ │ ├── package-tree.html │ │ │ ├── request │ │ │ ├── AnnSearchReq.html │ │ │ ├── DeleteReq.html │ │ │ ├── GetReq.html │ │ │ ├── HybridSearchReq.html │ │ │ ├── InsertReq.html │ │ │ ├── QueryIteratorReq.html │ │ │ ├── QueryReq.html │ │ │ ├── SearchIteratorReq.html │ │ │ ├── SearchReq.html │ │ │ ├── UpsertReq.html │ │ │ ├── data │ │ │ │ ├── BFloat16Vec.html │ │ │ │ ├── BaseVector.html │ │ │ │ ├── BinaryVec.html │ │ │ │ ├── Float16Vec.html │ │ │ │ ├── FloatVec.html │ │ │ │ ├── SparseFloatVec.html │ │ │ │ ├── package-frame.html │ │ │ │ ├── package-summary.html │ │ │ │ └── package-tree.html │ │ │ ├── package-frame.html │ │ │ ├── package-summary.html │ │ │ ├── package-tree.html │ │ │ └── ranker │ │ │ │ ├── BaseRanker.html │ │ │ │ ├── RRFRanker.html │ │ │ │ ├── WeightedRanker.html │ │ │ │ ├── package-frame.html │ │ │ │ ├── package-summary.html │ │ │ │ └── package-tree.html │ │ │ └── response │ │ │ ├── DeleteResp.html │ │ │ ├── GetResp.html │ │ │ ├── InsertResp.html │ │ │ ├── QueryResp.QueryResult.html │ │ │ ├── QueryResp.html │ │ │ ├── SearchResp.SearchResult.html │ │ │ ├── SearchResp.html │ │ │ ├── UpsertResp.html │ │ │ ├── package-frame.html │ │ │ ├── package-summary.html │ │ │ └── package-tree.html │ │ └── utils │ │ ├── ClientUtils.html │ │ ├── ConvertUtils.html │ │ ├── DataUtils.InsertBuilderWrapper.html │ │ ├── DataUtils.html │ │ ├── RpcUtils.html │ │ ├── SchemaUtils.html │ │ ├── VectorUtils.html │ │ ├── package-frame.html │ │ ├── package-summary.html │ │ └── package-tree.html ├── overview-frame.html ├── overview-summary.html ├── overview-tree.html ├── package-list ├── script.js ├── serialized-form.html └── stylesheet.css ├── docker-compose.yml ├── examples ├── pom.xml └── src │ └── main │ ├── java │ └── io │ │ └── milvus │ │ ├── v1 │ │ ├── ArrayFieldExample.java │ │ ├── BinaryVectorExample.java │ │ ├── BulkWriterExample.java │ │ ├── ClientPoolExample.java │ │ ├── CommonUtils.java │ │ ├── ConsistencyLevelExample.java │ │ ├── Float16VectorExample.java │ │ ├── GeneralExample.java │ │ ├── HighLevelExample.java │ │ ├── HybridSearchExample.java │ │ ├── IteratorExample.java │ │ ├── JsonFieldExample.java │ │ ├── NullAndDefaultExample.java │ │ ├── RBACExample.java │ │ ├── ResourceGroupExample.java │ │ ├── SimpleExample.java │ │ ├── SparseVectorExample.java │ │ ├── TLSExample.java │ │ └── resourcegroup │ │ │ ├── NodeInfo.java │ │ │ ├── ResourceGroupInfo.java │ │ │ └── ResourceGroupManagement.java │ │ └── v2 │ │ ├── ArrayFieldExample.java │ │ ├── BinaryVectorExample.java │ │ ├── BulkWriterExample.java │ │ ├── ClientPoolExample.java │ │ ├── ConsistencyLevelExample.java │ │ ├── Float16VectorExample.java │ │ ├── FullTextSearchExample.java │ │ ├── GeneralExample.java │ │ ├── HybridSearchExample.java │ │ ├── Int8VectorExample.java │ │ ├── IteratorExample.java │ │ ├── JsonFieldExample.java │ │ ├── NullAndDefaultExample.java │ │ ├── SimpleExample.java │ │ ├── SparseVectorExample.java │ │ ├── TLSExample.java │ │ └── TextMatchExample.java │ └── resources │ ├── data │ └── train_embeddings.csv │ ├── log4j.properties │ └── tls │ ├── gen.sh │ └── openssl.cnf ├── pom.xml ├── sdk-bulkwriter ├── pom.xml └── src │ ├── main │ └── java │ │ └── io │ │ └── milvus │ │ └── bulkwriter │ │ ├── BaseBulkImport.java │ │ ├── BulkImport.java │ │ ├── BulkWriter.java │ │ ├── LocalBulkWriter.java │ │ ├── LocalBulkWriterParam.java │ │ ├── RemoteBulkWriter.java │ │ ├── RemoteBulkWriterParam.java │ │ ├── common │ │ ├── clientenum │ │ │ ├── BulkFileType.java │ │ │ ├── CloudStorage.java │ │ │ └── TypeSize.java │ │ └── utils │ │ │ ├── GeneratorUtils.java │ │ │ ├── ImportUtils.java │ │ │ ├── ParquetReaderUtils.java │ │ │ ├── ParquetUtils.java │ │ │ └── V2AdapterUtils.java │ │ ├── connect │ │ ├── AzureConnectParam.java │ │ ├── S3ConnectParam.java │ │ └── StorageConnectParam.java │ │ ├── request │ │ ├── describe │ │ │ ├── BaseDescribeImportRequest.java │ │ │ ├── CloudDescribeImportRequest.java │ │ │ └── MilvusDescribeImportRequest.java │ │ ├── import_ │ │ │ ├── BaseImportRequest.java │ │ │ ├── CloudImportRequest.java │ │ │ └── MilvusImportRequest.java │ │ └── list │ │ │ ├── BaseListImportJobsRequest.java │ │ │ ├── CloudListImportJobsRequest.java │ │ │ └── MilvusListImportJobsRequest.java │ │ ├── response │ │ ├── BulkImportResponse.java │ │ ├── GetImportProgressResponse.java │ │ ├── ListImportJobsResponse.java │ │ ├── Record.java │ │ └── RestfulResponse.java │ │ ├── storage │ │ ├── StorageClient.java │ │ └── client │ │ │ ├── AzureStorageClient.java │ │ │ └── MinioStorageClient.java │ │ └── writer │ │ ├── CSVFileWriter.java │ │ ├── FormatFileWriter.java │ │ ├── JSONFileWriter.java │ │ └── ParquetFileWriter.java │ └── test │ └── java │ └── io │ └── milvus │ └── bulkwriter │ ├── BulkWriterTest.java │ └── TestUtils.java ├── sdk-core ├── pom.xml └── src │ ├── main │ ├── java │ │ └── io │ │ │ └── milvus │ │ │ ├── client │ │ │ ├── AbstractMilvusGrpcClient.java │ │ │ ├── MilvusClient.java │ │ │ ├── MilvusMultiServiceClient.java │ │ │ └── MilvusServiceClient.java │ │ │ ├── common │ │ │ ├── clientenum │ │ │ │ ├── ConsistencyLevelEnum.java │ │ │ │ └── FunctionType.java │ │ │ ├── constant │ │ │ │ └── MilvusClientConstant.java │ │ │ ├── resourcegroup │ │ │ │ ├── NodeInfo.java │ │ │ │ ├── ResourceGroupConfig.java │ │ │ │ ├── ResourceGroupLimit.java │ │ │ │ ├── ResourceGroupNodeFilter.java │ │ │ │ └── ResourceGroupTransfer.java │ │ │ └── utils │ │ │ │ ├── ExceptionUtils.java │ │ │ │ ├── Float16Utils.java │ │ │ │ ├── GTsDict.java │ │ │ │ ├── JsonUtils.java │ │ │ │ ├── URLParser.java │ │ │ │ └── VectorUtils.java │ │ │ ├── connection │ │ │ ├── ClusterFactory.java │ │ │ ├── ClusterListener.java │ │ │ ├── Listener.java │ │ │ ├── QueryNodeListener.java │ │ │ ├── ServerMonitor.java │ │ │ └── ServerSetting.java │ │ │ ├── exception │ │ │ ├── ClientNotConnectedException.java │ │ │ ├── IllegalResponseException.java │ │ │ ├── MilvusException.java │ │ │ ├── ParamException.java │ │ │ ├── ServerException.java │ │ │ └── UnExpectedException.java │ │ │ ├── orm │ │ │ └── iterator │ │ │ │ ├── IteratorAdapterV2.java │ │ │ │ ├── IteratorCache.java │ │ │ │ ├── QueryIterator.java │ │ │ │ ├── SearchIterator.java │ │ │ │ └── SearchIteratorV2.java │ │ │ ├── param │ │ │ ├── ConnectParam.java │ │ │ ├── Constant.java │ │ │ ├── IndexBuildState.java │ │ │ ├── IndexType.java │ │ │ ├── LogLevel.java │ │ │ ├── MetricType.java │ │ │ ├── MultiConnectParam.java │ │ │ ├── ParamUtils.java │ │ │ ├── QueryNodeSingleSearch.java │ │ │ ├── R.java │ │ │ ├── RetryParam.java │ │ │ ├── RpcStatus.java │ │ │ ├── ServerAddress.java │ │ │ ├── alias │ │ │ │ ├── AlterAliasParam.java │ │ │ │ ├── CreateAliasParam.java │ │ │ │ ├── DropAliasParam.java │ │ │ │ └── ListAliasesParam.java │ │ │ ├── bulkinsert │ │ │ │ ├── BulkInsertParam.java │ │ │ │ ├── GetBulkInsertStateParam.java │ │ │ │ └── ListBulkInsertTasksParam.java │ │ │ ├── collection │ │ │ │ ├── AlterCollectionParam.java │ │ │ │ ├── AlterDatabaseParam.java │ │ │ │ ├── CollectionSchemaParam.java │ │ │ │ ├── CreateCollectionParam.java │ │ │ │ ├── CreateDatabaseParam.java │ │ │ │ ├── DescribeCollectionParam.java │ │ │ │ ├── DescribeDatabaseParam.java │ │ │ │ ├── DropCollectionParam.java │ │ │ │ ├── DropDatabaseParam.java │ │ │ │ ├── FieldType.java │ │ │ │ ├── FlushParam.java │ │ │ │ ├── GetCollectionStatisticsParam.java │ │ │ │ ├── GetLoadStateParam.java │ │ │ │ ├── GetLoadingProgressParam.java │ │ │ │ ├── HasCollectionParam.java │ │ │ │ ├── LoadCollectionParam.java │ │ │ │ ├── ReleaseCollectionParam.java │ │ │ │ ├── RenameCollectionParam.java │ │ │ │ └── ShowCollectionsParam.java │ │ │ ├── control │ │ │ │ ├── GetCompactionPlansParam.java │ │ │ │ ├── GetCompactionStateParam.java │ │ │ │ ├── GetFlushAllStateParam.java │ │ │ │ ├── GetFlushStateParam.java │ │ │ │ ├── GetMetricsParam.java │ │ │ │ ├── GetPersistentSegmentInfoParam.java │ │ │ │ ├── GetQuerySegmentInfoParam.java │ │ │ │ ├── GetReplicasParam.java │ │ │ │ ├── LoadBalanceParam.java │ │ │ │ └── ManualCompactParam.java │ │ │ ├── credential │ │ │ │ ├── CreateCredentialParam.java │ │ │ │ ├── DeleteCredentialParam.java │ │ │ │ ├── ListCredUsersParam.java │ │ │ │ └── UpdateCredentialParam.java │ │ │ ├── dml │ │ │ │ ├── AnnSearchParam.java │ │ │ │ ├── DeleteParam.java │ │ │ │ ├── HybridSearchParam.java │ │ │ │ ├── InsertParam.java │ │ │ │ ├── QueryIteratorParam.java │ │ │ │ ├── QueryParam.java │ │ │ │ ├── SearchIteratorParam.java │ │ │ │ ├── SearchParam.java │ │ │ │ ├── UpsertParam.java │ │ │ │ └── ranker │ │ │ │ │ ├── BaseRanker.java │ │ │ │ │ ├── RRFRanker.java │ │ │ │ │ └── WeightedRanker.java │ │ │ ├── highlevel │ │ │ │ ├── collection │ │ │ │ │ ├── CreateSimpleCollectionParam.java │ │ │ │ │ ├── ListCollectionsParam.java │ │ │ │ │ └── response │ │ │ │ │ │ └── ListCollectionsResponse.java │ │ │ │ └── dml │ │ │ │ │ ├── DeleteIdsParam.java │ │ │ │ │ ├── GetIdsParam.java │ │ │ │ │ ├── InsertRowsParam.java │ │ │ │ │ ├── QuerySimpleParam.java │ │ │ │ │ ├── SearchSimpleParam.java │ │ │ │ │ └── response │ │ │ │ │ ├── DeleteResponse.java │ │ │ │ │ ├── GetResponse.java │ │ │ │ │ ├── InsertResponse.java │ │ │ │ │ ├── QueryResponse.java │ │ │ │ │ └── SearchResponse.java │ │ │ ├── index │ │ │ │ ├── AlterIndexParam.java │ │ │ │ ├── CreateIndexParam.java │ │ │ │ ├── DescribeIndexParam.java │ │ │ │ ├── DropIndexParam.java │ │ │ │ ├── GetIndexBuildProgressParam.java │ │ │ │ └── GetIndexStateParam.java │ │ │ ├── partition │ │ │ │ ├── CreatePartitionParam.java │ │ │ │ ├── DropPartitionParam.java │ │ │ │ ├── GetPartitionStatisticsParam.java │ │ │ │ ├── HasPartitionParam.java │ │ │ │ ├── LoadPartitionsParam.java │ │ │ │ ├── ReleasePartitionsParam.java │ │ │ │ └── ShowPartitionsParam.java │ │ │ ├── resourcegroup │ │ │ │ ├── CreateResourceGroupParam.java │ │ │ │ ├── DescribeResourceGroupParam.java │ │ │ │ ├── DropResourceGroupParam.java │ │ │ │ ├── ListResourceGroupsParam.java │ │ │ │ ├── TransferNodeParam.java │ │ │ │ ├── TransferReplicaParam.java │ │ │ │ └── UpdateResourceGroupsParam.java │ │ │ └── role │ │ │ │ ├── AddUserToRoleParam.java │ │ │ │ ├── CreateRoleParam.java │ │ │ │ ├── DropRoleParam.java │ │ │ │ ├── GrantRolePrivilegeParam.java │ │ │ │ ├── RemoveUserFromRoleParam.java │ │ │ │ ├── RevokeRolePrivilegeParam.java │ │ │ │ ├── SelectGrantForRoleAndObjectParam.java │ │ │ │ ├── SelectGrantForRoleParam.java │ │ │ │ ├── SelectRoleParam.java │ │ │ │ └── SelectUserParam.java │ │ │ ├── pool │ │ │ ├── ClientPool.java │ │ │ ├── MilvusClientV1Pool.java │ │ │ ├── MilvusClientV2Pool.java │ │ │ ├── PoolClientFactory.java │ │ │ └── PoolConfig.java │ │ │ ├── response │ │ │ ├── BulkInsertResponseWrapper.java │ │ │ ├── DescCollResponseWrapper.java │ │ │ ├── DescDBResponseWrapper.java │ │ │ ├── DescIndexResponseWrapper.java │ │ │ ├── FieldDataWrapper.java │ │ │ ├── GetBulkInsertStateWrapper.java │ │ │ ├── GetCollStatResponseWrapper.java │ │ │ ├── GetPartStatResponseWrapper.java │ │ │ ├── MutationResultWrapper.java │ │ │ ├── QueryResultsWrapper.java │ │ │ ├── SearchResultsWrapper.java │ │ │ ├── ShowCollResponseWrapper.java │ │ │ ├── ShowPartResponseWrapper.java │ │ │ └── basic │ │ │ │ └── RowRecordWrapper.java │ │ │ └── v2 │ │ │ ├── client │ │ │ ├── ConnectConfig.java │ │ │ ├── MilvusClientV2.java │ │ │ └── RetryConfig.java │ │ │ ├── common │ │ │ ├── CompactionState.java │ │ │ ├── ConsistencyLevel.java │ │ │ ├── DataType.java │ │ │ ├── IndexBuildState.java │ │ │ └── IndexParam.java │ │ │ ├── exception │ │ │ ├── ErrorCode.java │ │ │ └── MilvusClientException.java │ │ │ ├── service │ │ │ ├── BaseService.java │ │ │ ├── collection │ │ │ │ ├── CollectionService.java │ │ │ │ ├── ReplicaInfo.java │ │ │ │ ├── ShardReplica.java │ │ │ │ ├── request │ │ │ │ │ ├── AddFieldReq.java │ │ │ │ │ ├── AlterCollectionFieldReq.java │ │ │ │ │ ├── AlterCollectionPropertiesReq.java │ │ │ │ │ ├── AlterCollectionReq.java │ │ │ │ │ ├── CreateCollectionReq.java │ │ │ │ │ ├── DescribeCollectionReq.java │ │ │ │ │ ├── DescribeReplicasReq.java │ │ │ │ │ ├── DropCollectionFieldPropertiesReq.java │ │ │ │ │ ├── DropCollectionPropertiesReq.java │ │ │ │ │ ├── DropCollectionReq.java │ │ │ │ │ ├── GetCollectionStatsReq.java │ │ │ │ │ ├── GetLoadStateReq.java │ │ │ │ │ ├── HasCollectionReq.java │ │ │ │ │ ├── LoadCollectionReq.java │ │ │ │ │ ├── RefreshLoadReq.java │ │ │ │ │ ├── ReleaseCollectionReq.java │ │ │ │ │ └── RenameCollectionReq.java │ │ │ │ └── response │ │ │ │ │ ├── DescribeCollectionResp.java │ │ │ │ │ ├── DescribeReplicasResp.java │ │ │ │ │ ├── GetCollectionStatsResp.java │ │ │ │ │ └── ListCollectionsResp.java │ │ │ ├── database │ │ │ │ ├── DatabaseService.java │ │ │ │ ├── request │ │ │ │ │ ├── AlterDatabasePropertiesReq.java │ │ │ │ │ ├── AlterDatabaseReq.java │ │ │ │ │ ├── CreateDatabaseReq.java │ │ │ │ │ ├── DescribeDatabaseReq.java │ │ │ │ │ ├── DropDatabasePropertiesReq.java │ │ │ │ │ └── DropDatabaseReq.java │ │ │ │ └── response │ │ │ │ │ ├── DescribeDatabaseResp.java │ │ │ │ │ └── ListDatabasesResp.java │ │ │ ├── index │ │ │ │ ├── IndexService.java │ │ │ │ ├── request │ │ │ │ │ ├── AlterIndexPropertiesReq.java │ │ │ │ │ ├── AlterIndexReq.java │ │ │ │ │ ├── CreateIndexReq.java │ │ │ │ │ ├── DescribeIndexReq.java │ │ │ │ │ ├── DropIndexPropertiesReq.java │ │ │ │ │ ├── DropIndexReq.java │ │ │ │ │ └── ListIndexesReq.java │ │ │ │ └── response │ │ │ │ │ └── DescribeIndexResp.java │ │ │ ├── partition │ │ │ │ ├── PartitionService.java │ │ │ │ ├── request │ │ │ │ │ ├── CreatePartitionReq.java │ │ │ │ │ ├── DropPartitionReq.java │ │ │ │ │ ├── GetPartitionStatsReq.java │ │ │ │ │ ├── HasPartitionReq.java │ │ │ │ │ ├── ListPartitionsReq.java │ │ │ │ │ ├── LoadPartitionsReq.java │ │ │ │ │ └── ReleasePartitionsReq.java │ │ │ │ └── response │ │ │ │ │ └── GetPartitionStatsResp.java │ │ │ ├── rbac │ │ │ │ ├── PrivilegeGroup.java │ │ │ │ ├── RBACService.java │ │ │ │ ├── request │ │ │ │ │ ├── AddPrivilegesToGroupReq.java │ │ │ │ │ ├── CreatePrivilegeGroupReq.java │ │ │ │ │ ├── CreateRoleReq.java │ │ │ │ │ ├── CreateUserReq.java │ │ │ │ │ ├── DescribeRoleReq.java │ │ │ │ │ ├── DescribeUserReq.java │ │ │ │ │ ├── DropPrivilegeGroupReq.java │ │ │ │ │ ├── DropRoleReq.java │ │ │ │ │ ├── DropUserReq.java │ │ │ │ │ ├── GrantPrivilegeReq.java │ │ │ │ │ ├── GrantPrivilegeReqV2.java │ │ │ │ │ ├── GrantRoleReq.java │ │ │ │ │ ├── ListPrivilegeGroupsReq.java │ │ │ │ │ ├── RemovePrivilegesFromGroupReq.java │ │ │ │ │ ├── RevokePrivilegeReq.java │ │ │ │ │ ├── RevokePrivilegeReqV2.java │ │ │ │ │ ├── RevokeRoleReq.java │ │ │ │ │ └── UpdatePasswordReq.java │ │ │ │ └── response │ │ │ │ │ ├── DescribeRoleResp.java │ │ │ │ │ ├── DescribeUserResp.java │ │ │ │ │ └── ListPrivilegeGroupsResp.java │ │ │ ├── resourcegroup │ │ │ │ ├── ResourceGroupService.java │ │ │ │ ├── request │ │ │ │ │ ├── CreateResourceGroupReq.java │ │ │ │ │ ├── DescribeResourceGroupReq.java │ │ │ │ │ ├── DropResourceGroupReq.java │ │ │ │ │ ├── ListResourceGroupsReq.java │ │ │ │ │ ├── TransferNodeReq.java │ │ │ │ │ ├── TransferReplicaReq.java │ │ │ │ │ └── UpdateResourceGroupsReq.java │ │ │ │ └── response │ │ │ │ │ ├── DescribeResourceGroupResp.java │ │ │ │ │ └── ListResourceGroupsResp.java │ │ │ ├── utility │ │ │ │ ├── UtilityService.java │ │ │ │ ├── request │ │ │ │ │ ├── AlterAliasReq.java │ │ │ │ │ ├── CompactReq.java │ │ │ │ │ ├── CreateAliasReq.java │ │ │ │ │ ├── DescribeAliasReq.java │ │ │ │ │ ├── DropAliasReq.java │ │ │ │ │ ├── FlushReq.java │ │ │ │ │ ├── GetCompactionStateReq.java │ │ │ │ │ ├── GetPersistentSegmentInfoReq.java │ │ │ │ │ ├── GetQuerySegmentInfoReq.java │ │ │ │ │ └── ListAliasesReq.java │ │ │ │ └── response │ │ │ │ │ ├── CheckHealthResp.java │ │ │ │ │ ├── CompactResp.java │ │ │ │ │ ├── DescribeAliasResp.java │ │ │ │ │ ├── FlushResp.java │ │ │ │ │ ├── GetCompactionStateResp.java │ │ │ │ │ ├── GetPersistentSegmentInfoResp.java │ │ │ │ │ ├── GetQuerySegmentInfoResp.java │ │ │ │ │ └── ListAliasResp.java │ │ │ └── vector │ │ │ │ ├── VectorService.java │ │ │ │ ├── request │ │ │ │ ├── AnnSearchReq.java │ │ │ │ ├── DeleteReq.java │ │ │ │ ├── GetReq.java │ │ │ │ ├── HybridSearchReq.java │ │ │ │ ├── InsertReq.java │ │ │ │ ├── QueryIteratorReq.java │ │ │ │ ├── QueryReq.java │ │ │ │ ├── RunAnalyzerReq.java │ │ │ │ ├── SearchIteratorReq.java │ │ │ │ ├── SearchIteratorReqV2.java │ │ │ │ ├── SearchReq.java │ │ │ │ ├── UpsertReq.java │ │ │ │ ├── data │ │ │ │ │ ├── BFloat16Vec.java │ │ │ │ │ ├── BaseVector.java │ │ │ │ │ ├── BinaryVec.java │ │ │ │ │ ├── EmbeddedText.java │ │ │ │ │ ├── Float16Vec.java │ │ │ │ │ ├── FloatVec.java │ │ │ │ │ ├── Int8Vec.java │ │ │ │ │ └── SparseFloatVec.java │ │ │ │ └── ranker │ │ │ │ │ ├── BaseRanker.java │ │ │ │ │ ├── RRFRanker.java │ │ │ │ │ └── WeightedRanker.java │ │ │ │ └── response │ │ │ │ ├── DeleteResp.java │ │ │ │ ├── GetResp.java │ │ │ │ ├── InsertResp.java │ │ │ │ ├── QueryResp.java │ │ │ │ ├── RunAnalyzerResp.java │ │ │ │ ├── SearchResp.java │ │ │ │ └── UpsertResp.java │ │ │ └── utils │ │ │ ├── ClientUtils.java │ │ │ ├── ConvertUtils.java │ │ │ ├── DataUtils.java │ │ │ ├── RpcUtils.java │ │ │ ├── SchemaUtils.java │ │ │ └── VectorUtils.java │ └── resources │ │ ├── log4j2.xml │ │ └── milvus-client.properties │ └── test │ └── java │ └── io │ └── milvus │ ├── TestUtils.java │ ├── client │ ├── MilvusClientDockerTest.java │ ├── MilvusMultiClientDockerTest.java │ └── MilvusServiceClientTest.java │ ├── server │ ├── MockMilvusServer.java │ └── MockMilvusServerImpl.java │ └── v2 │ ├── BaseTest.java │ ├── client │ ├── MilvusClientV2DockerTest.java │ └── MilvusClientV2Test.java │ └── service │ ├── collection │ └── CollectionTest.java │ ├── index │ └── IndexTest.java │ ├── partition │ └── PartitionTest.java │ ├── rbac │ ├── RoleTest.java │ └── UserTest.java │ ├── utility │ └── UtilityTest.java │ └── vector │ └── VectorTest.java └── tests ├── milvustest ├── .gitignore ├── README.md ├── allure-results │ └── environment.properties ├── pom.xml ├── pom.xslt ├── src │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── zilliz │ │ │ │ └── milvustest │ │ │ │ ├── MilvustestApplication.java │ │ │ │ ├── common │ │ │ │ ├── BaseCloudTest.java │ │ │ │ ├── BaseTest.java │ │ │ │ ├── CommonData.java │ │ │ │ └── CommonFunction.java │ │ │ │ ├── entity │ │ │ │ ├── FieldType.java │ │ │ │ ├── FileBody.java │ │ │ │ └── MilvusEntity.java │ │ │ │ ├── service │ │ │ │ ├── CustomerListener.java │ │ │ │ └── LogRecord.java │ │ │ │ └── util │ │ │ │ ├── FileUtils.java │ │ │ │ ├── HttpClientUtils.java │ │ │ │ ├── JacksonUtil.java │ │ │ │ ├── MathUtil.java │ │ │ │ └── PropertyFilesUtil.java │ │ └── resources │ │ │ ├── application.properties │ │ │ ├── images │ │ │ └── img.png │ │ │ └── log4j2.xml │ └── test │ │ └── java │ │ ├── com │ │ └── zilliz │ │ │ └── milvustest │ │ │ ├── MilvustestApplicationTests.java │ │ │ ├── ModifyXml.java │ │ │ ├── alias │ │ │ ├── AlterAliasTest.java │ │ │ ├── CreateAliasTest.java │ │ │ └── DropAliasTest.java │ │ │ ├── bulk │ │ │ └── BulkWriteTest.java │ │ │ ├── bulkimport │ │ │ └── BulkImportTest.java │ │ │ ├── businessflow │ │ │ ├── BigFileBulkLoadTest.java │ │ │ ├── ConcurrentTest.java │ │ │ └── Performance.java │ │ │ ├── collection │ │ │ ├── CreateCollectionTest.java │ │ │ ├── DescribeCollectionTest.java │ │ │ ├── DropCollectionTest.java │ │ │ ├── GetCollectionStatisticsTest.java │ │ │ ├── HasCollectionTest.java │ │ │ ├── LoadCollectionTest.java │ │ │ ├── ReleaseCollectionTest.java │ │ │ ├── RenameCollectionTest.java │ │ │ └── ShowCollectionsTest.java │ │ │ ├── compaction │ │ │ ├── GetCompactionStateTest.java │ │ │ ├── GetCompactionStateWithPlansTest.java │ │ │ └── ManualCompactionTest.java │ │ │ ├── connection │ │ │ └── CloseTest.java │ │ │ ├── credential │ │ │ ├── CreateCredentialTest.java │ │ │ ├── DeleteCredentialTest.java │ │ │ ├── ListCredUsersTest.java │ │ │ └── UpdateCredentialTest.java │ │ │ ├── database │ │ │ └── DatabaseTest.java │ │ │ ├── flush │ │ │ ├── FlushTest.java │ │ │ └── GetFlushStateTest.java │ │ │ ├── index │ │ │ ├── CreateIndexTest.java │ │ │ ├── DescribeIndexTest.java │ │ │ ├── DropIndexTest.java │ │ │ ├── GetIndexBuildProgressTest.java │ │ │ ├── GetIndexStateTest.java │ │ │ └── IndexLoadTest.java │ │ │ ├── insert │ │ │ ├── DeleteTest.java │ │ │ ├── InsertAsyncTest.java │ │ │ ├── InsertTest.java │ │ │ └── UpsertTest.java │ │ │ ├── limit │ │ │ ├── BackPressure.java │ │ │ ├── DDLTest.java │ │ │ ├── DMLTest.java │ │ │ ├── DQLTest.java │ │ │ ├── LimitTest.java │ │ │ └── LimitWriting.java │ │ │ ├── load │ │ │ ├── BulkInsertTest.java │ │ │ ├── BulkLoadStateTest.java │ │ │ └── ListBulkInsertTasksTest.java │ │ │ ├── mmap │ │ │ ├── AlterCollectionTest.java │ │ │ └── AlterIndexTest.java │ │ │ ├── other │ │ │ ├── GetMetricsTest.java │ │ │ ├── GetReplicasTest.java │ │ │ └── LoadBalanceTest.java │ │ │ ├── partition │ │ │ ├── CreatePartitionTest.java │ │ │ ├── DropPartitionTest.java │ │ │ ├── GetPartitionStatisticsTest.java │ │ │ ├── HasPartitionTest.java │ │ │ ├── LoadPartitionsTest.java │ │ │ ├── PartitionKeyTest.java │ │ │ ├── ReleasePartitionsTest.java │ │ │ └── ShowPartitionsTest.java │ │ │ ├── query │ │ │ ├── MultipleArraysDataFactory.java │ │ │ ├── QueryAsyncTest.java │ │ │ ├── QueryIteratorTest.java │ │ │ └── QueryTest.java │ │ │ ├── rbac │ │ │ ├── AddUserToRoleTest.java │ │ │ ├── CreateRoleTest.java │ │ │ ├── DropRoleTest.java │ │ │ ├── GrantRolePrivilegeTest.java │ │ │ ├── RemoveUserFromRoleTest.java │ │ │ ├── RevokeRolePrivilegeTest.java │ │ │ ├── SelectGrantForRoleAndObject.java │ │ │ ├── SelectGrantForRoleTest.java │ │ │ ├── SelectRoleTest.java │ │ │ └── SelectUserTest.java │ │ │ ├── search │ │ │ ├── RangeSearchTest.java │ │ │ ├── SearchAsyncTest.java │ │ │ ├── SearchIteratorTest.java │ │ │ └── SearchTest.java │ │ │ ├── segment │ │ │ ├── GetPersistentSegmentInfoTest.java │ │ │ └── GetQuerySegmentInfoTest.java │ │ │ ├── serverless │ │ │ └── HighLevelTest.java │ │ │ ├── tls │ │ │ └── TLSTest.java │ │ │ └── vdc │ │ │ ├── DBAdminRBACTest.java │ │ │ └── VectorSearch.java │ │ └── resources │ │ ├── cluster-values.yaml │ │ ├── docker-compose.yml │ │ ├── run.properties │ │ ├── scripts │ │ ├── docker_image_find_tag.sh │ │ ├── install_milvus.sh │ │ ├── install_milvus_cluster.sh │ │ ├── install_milvus_standalone.sh │ │ ├── modify_config.sh │ │ └── uninstall_milvus.sh │ │ ├── standalone-values.yaml │ │ ├── temp │ │ └── rowJson0.json │ │ ├── testcase │ │ └── milvus-java-sdk-TestCase.xlsx │ │ ├── testdata │ │ ├── db_admin.json │ │ └── privilege.json │ │ └── tls │ │ ├── ca.key │ │ ├── ca.pem │ │ ├── ca.srl │ │ ├── client.csr │ │ ├── client.key │ │ ├── client.pem │ │ ├── gen.sh │ │ ├── openssl.cnf │ │ ├── server.csr │ │ ├── server.key │ │ └── server.pem ├── testng.xml ├── testngAll.xml └── testngConcurrent.xml └── milvustestv2 ├── .gitignore ├── pom.xml ├── src ├── main │ └── java │ │ └── com │ │ └── zilliz │ │ └── milvustestv2 │ │ ├── Milvustestv2Application.java │ │ ├── common │ │ ├── BaseTest.java │ │ ├── CommonData.java │ │ └── CommonFunction.java │ │ ├── config │ │ └── ConnectInfoConfig.java │ │ ├── listener │ │ └── CustomerListener.java │ │ ├── params │ │ └── FieldParam.java │ │ └── utils │ │ ├── DataProviderUtils.java │ │ ├── FileUtils.java │ │ ├── Float16Utils.java │ │ ├── GenerateUtil.java │ │ ├── HttpClientUtils.java │ │ ├── JsonObjectUtil.java │ │ ├── MathUtil.java │ │ └── PropertyFilesUtil.java └── test │ ├── java │ ├── com │ │ └── zilliz │ │ │ └── milvustestv2 │ │ │ ├── Issue.java │ │ │ ├── Milvustestv2ApplicationTests.java │ │ │ ├── alias │ │ │ ├── AlterAliasTest.java │ │ │ ├── CreateAliasTest.java │ │ │ ├── DescribeAliasTest.java │ │ │ ├── DropAliasTest.java │ │ │ └── ListAliasTest.java │ │ │ ├── bulk │ │ │ ├── BulkImportTest.java │ │ │ ├── GetImportProgressTest.java │ │ │ └── ListImportJobsTest.java │ │ │ ├── collection │ │ │ ├── AlterCollectionFieldTest.java │ │ │ ├── CreateCollectionTest.java │ │ │ ├── DescribeCollectionTest.java │ │ │ ├── DropCollectionTest.java │ │ │ ├── GetCollectionStatsTest.java │ │ │ ├── HasCollectionTest.java │ │ │ ├── ListCollectionsTest.java │ │ │ └── RenameCollectionTest.java │ │ │ ├── database │ │ │ ├── AlterDatabasePropertiesTest.java │ │ │ ├── AlterDatabaseTest.java │ │ │ ├── CreateDatabaseTest.java │ │ │ ├── DescribeDatabaseTest.java │ │ │ ├── DropDatabasePropertiesTest.java │ │ │ ├── DropDatabaseTest.java │ │ │ ├── ListDatabaseTest.java │ │ │ └── UseDatabaseTest.java │ │ │ ├── index │ │ │ ├── AlterIndexPropertiesTest.java │ │ │ ├── AlterIndexTest.java │ │ │ ├── CreateIndexTest.java │ │ │ ├── DescribeIndexTest.java │ │ │ ├── DropIndexPropertiesTest.java │ │ │ ├── DropIndexTest.java │ │ │ └── ListIndexesTest.java │ │ │ ├── loadRelease │ │ │ ├── GetLoadStateTest.java │ │ │ ├── LoadCollectionTest.java │ │ │ ├── LoadPartitionsTest.java │ │ │ ├── RefreshLoadTest.java │ │ │ ├── ReleaseCollectionTest.java │ │ │ └── ReleasePartitionsTest.java │ │ │ ├── others │ │ │ ├── CompactTest.java │ │ │ ├── FlushTest.java │ │ │ ├── GetCompactionStateTest.java │ │ │ └── GetServerVersionTest.java │ │ │ ├── partition │ │ │ ├── CreatePartitionTest.java │ │ │ ├── DropPartitionTest.java │ │ │ ├── GetPartitionStatsTest.java │ │ │ ├── HasPartitionTest.java │ │ │ └── ListPartitionsTest.java │ │ │ ├── rbac │ │ │ ├── CreateRoleTest.java │ │ │ ├── CreateUserTest.java │ │ │ ├── DescribeRoleTest.java │ │ │ ├── DescribeUserTest.java │ │ │ ├── DropRoleTest.java │ │ │ ├── DropUserTest.java │ │ │ ├── GrantPrivilegeTest.java │ │ │ ├── GrantRoleTest.java │ │ │ ├── ListRolesTest.java │ │ │ ├── ListUsersTest.java │ │ │ ├── RevokePrivilegeTest.java │ │ │ ├── RevokeRoleTest.java │ │ │ └── UpdatePasswordTest.java │ │ │ ├── resourceGroup │ │ │ ├── CreateResourceGroupTest.java │ │ │ ├── DescribeResourceGroupTest.java │ │ │ ├── DropResourceGroupsTest.java │ │ │ ├── ListResourceGroupTest.java │ │ │ └── UpdateResourceGroupsTest.java │ │ │ └── vectorOperation │ │ │ ├── BF16SearchIssue.java │ │ │ ├── DeleteTest.java │ │ │ ├── GetTest.java │ │ │ ├── HybridSearchTest.java │ │ │ ├── InsertTest.java │ │ │ ├── QueryIteratorTest.java │ │ │ ├── QueryTest.java │ │ │ ├── SearchIteratorTest.java │ │ │ ├── SearchTest.java │ │ │ └── UpsertTest.java │ └── resources │ │ ├── cluster-values.yaml │ │ ├── docker-compose.yml │ │ ├── scripts │ │ ├── docker_image_find_tag.sh │ │ ├── install_milvus.sh │ │ ├── install_milvus_cluster.sh │ │ ├── install_milvus_standalone.sh │ │ ├── modify_config.sh │ │ └── uninstall_milvus.sh │ │ └── standalone-values.yaml │ └── resources │ ├── run.properties │ └── testdata │ ├── db_admin.json │ └── privilege.json └── testng.xml /.github/mergify.yml: -------------------------------------------------------------------------------- 1 | pull_request_rules: 2 | - name: Test passed for code changed 3 | conditions: 4 | - or: 5 | - base=master 6 | - base~=2\.\d 7 | - "status-success=Build and test" 8 | actions: 9 | label: 10 | add: 11 | - ci-passed 12 | 13 | - name: Remove ci-passed when code check failed 14 | conditions: 15 | - or: 16 | - base=master 17 | - base~=2\.\d 18 | - "check-failure=Build and test" 19 | actions: 20 | label: 21 | remove: 22 | - ci-passed 23 | -------------------------------------------------------------------------------- /.github/workflows/generate_javadoc.yml: -------------------------------------------------------------------------------- 1 | # This workflow will generate Javadoc using Maven and then publish it to GitHub packages when a release is created. 2 | 3 | name: Generate and update Javadoc 4 | 5 | on: 6 | release: 7 | types: [created] 8 | 9 | jobs: 10 | generateJavadoc: 11 | runs-on: ubuntu-latest 12 | steps: 13 | - name: Checkout 14 | uses: actions/checkout@v2 15 | - name: Install Java 1.8 16 | uses: actions/setup-java@v1 17 | with: 18 | java-version: 1.8 19 | - name: Generate javadoc 20 | run: mvn javadoc:javadoc 21 | - name: Deploy on milvus-io.github.io 22 | uses: peaceiris/actions-gh-pages@v3 23 | with: 24 | deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }} 25 | external_repository: milvus-io/milvus-io.github.io 26 | publish_branch: master # default: gh-pages 27 | publish_dir: ./target/site/apidocs 28 | destination_dir: milvus-sdk-java/javadoc/${{github.event.release.tag_name}} 29 | -------------------------------------------------------------------------------- /.github/workflows/maven.yml: -------------------------------------------------------------------------------- 1 | # This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time 2 | # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven 3 | 4 | name: Java CI with Maven 5 | 6 | on: 7 | pull_request: 8 | 9 | jobs: 10 | build: 11 | name: Build and test 12 | runs-on: ubuntu-latest 13 | 14 | steps: 15 | - uses: actions/checkout@v4 16 | - name: Setup JDK 11 17 | uses: actions/setup-java@v4 18 | with: 19 | java-version: '11' 20 | distribution: 'adopt' 21 | cache: maven 22 | - name: Checkout 23 | uses: actions/checkout@v4 24 | - name: Update submodule 25 | run: git submodule update --init 26 | - name: Build with Maven 27 | run: mvn --batch-mode --update-snapshots verify -------------------------------------------------------------------------------- /.github/workflows/release_event.yml: -------------------------------------------------------------------------------- 1 | name: web-content - Dispatch new release event 2 | 3 | on: 4 | release: 5 | types: [published] 6 | 7 | jobs: 8 | dispatch: 9 | name: Dispatch event 10 | runs-on: ubuntu-latest 11 | steps: 12 | - name: Tag name 13 | id: tag_name 14 | run: | 15 | echo ::set-output name=SOURCE_TAG::${GITHUB_REF#refs/tags/} 16 | - name: Dispatch tag name 17 | id: dispatch_tag_name 18 | run: | 19 | curl \ 20 | -X POST \ 21 | -H "Accept: application/vnd.github.v3+json" \ 22 | "https://api.github.com/repos/milvus-io/web-content/actions/workflows/updateApiReference.yml/dispatches" \ 23 | -d '{"ref":"master", "inputs": { "tagName": "${{ steps.tag_name.outputs.SOURCE_TAG }}", "repoName": "${{ github.event.repository.name }}" } }' \ 24 | -u ".:${{secrets.DOC_TOKEN}}" 25 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled class file 2 | *.class 3 | 4 | # Log file 5 | *.log 6 | 7 | # BlueJ files 8 | *.ctxt 9 | 10 | # Mobile Tools for Java (J2ME) 11 | .mtj.tmp/ 12 | 13 | # Package Files # 14 | *.jar 15 | *.war 16 | *.nar 17 | *.ear 18 | *.zip 19 | *.tar.gz 20 | *.rar 21 | 22 | # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml 23 | hs_err_pid* 24 | 25 | # Mac OS files 26 | .DS_Store 27 | 28 | .idea/ 29 | .vscode/ 30 | target/ 31 | volumes/ 32 | *.iml 33 | .flattened-pom.xml 34 | 35 | # Example files 36 | examples/bulk_writer 37 | examples/src/main/resources/tls/* 38 | !examples/src/main/resources/tls/gen.sh 39 | !examples/src/main/resources/tls/openssl.cnf 40 | 41 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "sdk-core/src/main/milvus-proto"] 2 | path = sdk-core/src/main/milvus-proto 3 | url = https://github.com/milvus-io/milvus-proto.git 4 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing to milvus-sdk-java 2 | 3 | We welcome all kinds of contributions. Simply file an issue stating your reason 4 | and plans for making the change, update CHANGELOG.md, and create a pull request 5 | to the current active branch. Make sure to refer to the issue you filed in your 6 | PR's description. Cheers!:tada: 7 | -------------------------------------------------------------------------------- /OWNERS: -------------------------------------------------------------------------------- 1 | filters: 2 | ".*": 3 | reviewers: 4 | - xiaofan-luan 5 | - yhmo 6 | - scsven 7 | - yelusion2 8 | approvers: 9 | - xiaofan-luan 10 | - yhmo 11 | - scsven 12 | - yelusion2 13 | 14 | -------------------------------------------------------------------------------- /doc/io/milvus/bulkwriter/common/clientenum/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | io.milvus.bulkwriter.common.clientenum 7 | 8 | 9 | 10 | 11 | 12 |

io.milvus.bulkwriter.common.clientenum

13 |
14 |

Enums

15 | 20 |
21 | 22 | 23 | -------------------------------------------------------------------------------- /doc/io/milvus/bulkwriter/common/utils/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | io.milvus.bulkwriter.common.utils 7 | 8 | 9 | 10 | 11 | 12 |

io.milvus.bulkwriter.common.utils

13 |
14 |

Classes

15 | 21 |
22 | 23 | 24 | -------------------------------------------------------------------------------- /doc/io/milvus/bulkwriter/response/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | io.milvus.bulkwriter.response 7 | 8 | 9 | 10 | 11 | 12 |

io.milvus.bulkwriter.response

13 |
14 |

Classes

15 | 21 |
22 | 23 | 24 | -------------------------------------------------------------------------------- /doc/io/milvus/bulkwriter/storage/client/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | io.milvus.bulkwriter.storage.client 7 | 8 | 9 | 10 | 11 | 12 |

io.milvus.bulkwriter.storage.client

13 |
14 |

Classes

15 | 19 |
20 | 21 | 22 | -------------------------------------------------------------------------------- /doc/io/milvus/bulkwriter/storage/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | io.milvus.bulkwriter.storage 7 | 8 | 9 | 10 | 11 | 12 |

io.milvus.bulkwriter.storage

13 |
14 |

Interfaces

15 | 18 |
19 | 20 | 21 | -------------------------------------------------------------------------------- /doc/io/milvus/client/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | io.milvus.client 7 | 8 | 9 | 10 | 11 | 12 |

io.milvus.client

13 |
14 |

Interfaces

15 | 18 |

Classes

19 | 24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /doc/io/milvus/common/clientenum/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | io.milvus.common.clientenum 7 | 8 | 9 | 10 | 11 | 12 |

io.milvus.common.clientenum

13 |
14 |

Enums

15 | 18 |
19 | 20 | 21 | -------------------------------------------------------------------------------- /doc/io/milvus/common/constant/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | io.milvus.common.constant 7 | 8 | 9 | 10 | 11 | 12 |

io.milvus.common.constant

13 |
14 |

Classes

15 | 20 |
21 | 22 | 23 | -------------------------------------------------------------------------------- /doc/io/milvus/common/resourcegroup/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | io.milvus.common.resourcegroup 7 | 8 | 9 | 10 | 11 | 12 |

io.milvus.common.resourcegroup

13 |
14 |

Classes

15 | 21 |
22 | 23 | 24 | -------------------------------------------------------------------------------- /doc/io/milvus/common/utils/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | io.milvus.common.utils 7 | 8 | 9 | 10 | 11 | 12 |

io.milvus.common.utils

13 |
14 |

Classes

15 | 21 |
22 | 23 | 24 | -------------------------------------------------------------------------------- /doc/io/milvus/orm/iterator/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | io.milvus.orm.iterator 7 | 8 | 9 | 10 | 11 | 12 |

io.milvus.orm.iterator

13 |
14 |

Classes

15 | 21 |
22 | 23 | 24 | -------------------------------------------------------------------------------- /doc/io/milvus/param/highlevel/collection/response/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | io.milvus.param.highlevel.collection.response 7 | 8 | 9 | 10 | 11 | 12 |

io.milvus.param.highlevel.collection.response

13 |
14 |

Classes

15 | 18 |
19 | 20 | 21 | -------------------------------------------------------------------------------- /doc/io/milvus/pool/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | io.milvus.pool 7 | 8 | 9 | 10 | 11 | 12 |

io.milvus.pool

13 |
14 |

Classes

15 | 22 |
23 | 24 | 25 | -------------------------------------------------------------------------------- /doc/io/milvus/response/basic/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | io.milvus.response.basic 7 | 8 | 9 | 10 | 11 | 12 |

io.milvus.response.basic

13 |
14 |

Classes

15 | 18 |
19 | 20 | 21 | -------------------------------------------------------------------------------- /doc/io/milvus/utils/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | io.milvus.utils 7 | 8 | 9 | 10 | 11 | 12 |

io.milvus.utils

13 |
14 |

Classes

15 | 18 |
19 | 20 | 21 | -------------------------------------------------------------------------------- /doc/io/milvus/v2/client/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | io.milvus.v2.client 7 | 8 | 9 | 10 | 11 | 12 |

io.milvus.v2.client

13 |
14 |

Classes

15 | 20 |
21 | 22 | 23 | -------------------------------------------------------------------------------- /doc/io/milvus/v2/exception/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | io.milvus.v2.exception 7 | 8 | 9 | 10 | 11 | 12 |

io.milvus.v2.exception

13 |
14 |

Enums

15 | 18 |

Exceptions

19 | 22 |
23 | 24 | 25 | -------------------------------------------------------------------------------- /doc/io/milvus/v2/service/collection/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | io.milvus.v2.service.collection 7 | 8 | 9 | 10 | 11 | 12 |

io.milvus.v2.service.collection

13 |
14 |

Classes

15 | 18 |
19 | 20 | 21 | -------------------------------------------------------------------------------- /doc/io/milvus/v2/service/collection/response/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | io.milvus.v2.service.collection.response 7 | 8 | 9 | 10 | 11 | 12 |

io.milvus.v2.service.collection.response

13 |
14 |

Classes

15 | 20 |
21 | 22 | 23 | -------------------------------------------------------------------------------- /doc/io/milvus/v2/service/database/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | io.milvus.v2.service.database 7 | 8 | 9 | 10 | 11 | 12 |

io.milvus.v2.service.database

13 |
14 |

Classes

15 | 18 |
19 | 20 | 21 | -------------------------------------------------------------------------------- /doc/io/milvus/v2/service/database/response/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | io.milvus.v2.service.database.response 7 | 8 | 9 | 10 | 11 | 12 |

io.milvus.v2.service.database.response

13 |
14 |

Classes

15 | 19 |
20 | 21 | 22 | -------------------------------------------------------------------------------- /doc/io/milvus/v2/service/index/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | io.milvus.v2.service.index 7 | 8 | 9 | 10 | 11 | 12 |

io.milvus.v2.service.index

13 |
14 |

Classes

15 | 18 |
19 | 20 | 21 | -------------------------------------------------------------------------------- /doc/io/milvus/v2/service/index/response/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | io.milvus.v2.service.index.response 7 | 8 | 9 | 10 | 11 | 12 |

io.milvus.v2.service.index.response

13 |
14 |

Classes

15 | 19 |
20 | 21 | 22 | -------------------------------------------------------------------------------- /doc/io/milvus/v2/service/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | io.milvus.v2.service 7 | 8 | 9 | 10 | 11 | 12 |

io.milvus.v2.service

13 |
14 |

Classes

15 | 18 |
19 | 20 | 21 | -------------------------------------------------------------------------------- /doc/io/milvus/v2/service/partition/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | io.milvus.v2.service.partition 7 | 8 | 9 | 10 | 11 | 12 |

io.milvus.v2.service.partition

13 |
14 |

Classes

15 | 18 |
19 | 20 | 21 | -------------------------------------------------------------------------------- /doc/io/milvus/v2/service/rbac/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | io.milvus.v2.service.rbac 7 | 8 | 9 | 10 | 11 | 12 |

io.milvus.v2.service.rbac

13 |
14 |

Classes

15 | 19 |
20 | 21 | 22 | -------------------------------------------------------------------------------- /doc/io/milvus/v2/service/rbac/response/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | io.milvus.v2.service.rbac.response 7 | 8 | 9 | 10 | 11 | 12 |

io.milvus.v2.service.rbac.response

13 |
14 |

Classes

15 | 20 |
21 | 22 | 23 | -------------------------------------------------------------------------------- /doc/io/milvus/v2/service/utility/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | io.milvus.v2.service.utility 7 | 8 | 9 | 10 | 11 | 12 |

io.milvus.v2.service.utility

13 |
14 |

Classes

15 | 18 |
19 | 20 | 21 | -------------------------------------------------------------------------------- /doc/io/milvus/v2/service/utility/response/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | io.milvus.v2.service.utility.response 7 | 8 | 9 | 10 | 11 | 12 |

io.milvus.v2.service.utility.response

13 |
14 |

Classes

15 | 19 |
20 | 21 | 22 | -------------------------------------------------------------------------------- /doc/io/milvus/v2/service/vector/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | io.milvus.v2.service.vector 7 | 8 | 9 | 10 | 11 | 12 |

io.milvus.v2.service.vector

13 |
14 |

Classes

15 | 18 |
19 | 20 | 21 | -------------------------------------------------------------------------------- /doc/io/milvus/v2/service/vector/request/ranker/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | io.milvus.v2.service.vector.request.ranker 7 | 8 | 9 | 10 | 11 | 12 |

io.milvus.v2.service.vector.request.ranker

13 |
14 |

Classes

15 | 20 |
21 | 22 | 23 | -------------------------------------------------------------------------------- /doc/script.js: -------------------------------------------------------------------------------- 1 | function show(type) 2 | { 3 | count = 0; 4 | for (var key in methods) { 5 | var row = document.getElementById(key); 6 | if ((methods[key] & type) != 0) { 7 | row.style.display = ''; 8 | row.className = (count++ % 2) ? rowColor : altColor; 9 | } 10 | else 11 | row.style.display = 'none'; 12 | } 13 | updateTabs(type); 14 | } 15 | 16 | function updateTabs(type) 17 | { 18 | for (var value in tabs) { 19 | var sNode = document.getElementById(tabs[value][0]); 20 | var spanNode = sNode.firstChild; 21 | if (value == type) { 22 | sNode.className = activeTableTab; 23 | spanNode.innerHTML = tabs[value][1]; 24 | } 25 | else { 26 | sNode.className = tableTab; 27 | spanNode.innerHTML = "" + tabs[value][1] + ""; 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /examples/src/main/resources/log4j.properties: -------------------------------------------------------------------------------- 1 | # Set root logger level to DEBUG and its only appender to A1. 2 | log4j.rootLogger=INFO, A1 3 | 4 | # A1 is set to be a ConsoleAppender. 5 | log4j.appender.A1=org.apache.log4j.ConsoleAppender 6 | 7 | # A1 uses PatternLayout. 8 | log4j.appender.A1.layout=org.apache.log4j.PatternLayout 9 | log4j.appender.A1.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n 10 | 11 | # If the log level is DEBUG, print only messages of level WARN for some noisy libs. 12 | log4j.logger.io.grpc.netty.shaded=WARN 13 | log4j.logger.org.apache.parquet=WARN 14 | log4j.logger.org.apache.hadoop=WARN 15 | -------------------------------------------------------------------------------- /examples/src/main/resources/tls/gen.sh: -------------------------------------------------------------------------------- 1 | Country="CN" 2 | State="Shanghai" 3 | Location="Shanghai" 4 | Organization="milvus" 5 | Organizational="milvus" 6 | CommonName="localhost" 7 | 8 | echo "generate ca.key" 9 | openssl genrsa -out ca.key 2048 10 | 11 | echo "generate ca.pem" 12 | openssl req -new -x509 -key ca.key -out ca.pem -days 3650 -subj "/C=$Country/ST=$State/L=$Location/O=$Organization/OU=$Organizational/CN=$CommonName" 13 | 14 | echo "generate server SAN certificate" 15 | openssl genpkey -algorithm RSA -out server.key 16 | openssl req -new -nodes -key server.key -out server.csr -days 3650 -subj "/C=$Country/O=$Organization/OU=$Organizational/CN=$CommonName" -config ./openssl.cnf -extensions v3_req 17 | openssl x509 -req -days 3650 -in server.csr -out server.pem -CA ca.pem -CAkey ca.key -CAcreateserial -extfile ./openssl.cnf -extensions v3_req 18 | 19 | echo "generate client SAN certificate" 20 | openssl genpkey -algorithm RSA -out client.key 21 | openssl req -new -nodes -key client.key -out client.csr -days 3650 -subj "/C=$Country/O=$Organization/OU=$Organizational/CN=$CommonName" -config ./openssl.cnf -extensions v3_req 22 | openssl x509 -req -days 3650 -in client.csr -out client.pem -CA ca.pem -CAkey ca.key -CAcreateserial -extfile ./openssl.cnf -extensions v3_req 23 | 24 | 25 | -------------------------------------------------------------------------------- /sdk-bulkwriter/src/main/java/io/milvus/bulkwriter/common/clientenum/BulkFileType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.bulkwriter.common.clientenum; 21 | 22 | public enum BulkFileType { 23 | PARQUET(1), 24 | JSON(2), 25 | CSV(3), 26 | ; 27 | 28 | private Integer code; 29 | 30 | BulkFileType(Integer code) { 31 | this.code = code; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /sdk-bulkwriter/src/main/java/io/milvus/bulkwriter/connect/StorageConnectParam.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.bulkwriter.connect; 21 | 22 | public class StorageConnectParam { 23 | 24 | } 25 | -------------------------------------------------------------------------------- /sdk-bulkwriter/src/main/java/io/milvus/bulkwriter/response/BulkImportResponse.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.bulkwriter.response; 21 | 22 | import lombok.AllArgsConstructor; 23 | import lombok.Builder; 24 | import lombok.Data; 25 | import lombok.NoArgsConstructor; 26 | 27 | import java.io.Serializable; 28 | 29 | @Data 30 | @Builder 31 | @AllArgsConstructor 32 | @NoArgsConstructor 33 | public class BulkImportResponse implements Serializable { 34 | private static final long serialVersionUID = -7162743560382861611L; 35 | 36 | private String jobId; 37 | } 38 | -------------------------------------------------------------------------------- /sdk-bulkwriter/src/main/java/io/milvus/bulkwriter/response/Record.java: -------------------------------------------------------------------------------- 1 | package io.milvus.bulkwriter.response; 2 | 3 | import lombok.AllArgsConstructor; 4 | import lombok.Builder; 5 | import lombok.Data; 6 | import lombok.NoArgsConstructor; 7 | 8 | @Data 9 | @Builder 10 | @AllArgsConstructor 11 | @NoArgsConstructor 12 | public class Record { 13 | private String collectionName; 14 | private String jobId; 15 | private String state; 16 | } 17 | -------------------------------------------------------------------------------- /sdk-bulkwriter/src/main/java/io/milvus/bulkwriter/storage/StorageClient.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.bulkwriter.storage; 21 | 22 | 23 | import java.io.InputStream; 24 | 25 | public interface StorageClient { 26 | Long getObjectEntity(String bucketName, String objectKey) throws Exception; 27 | boolean checkBucketExist(String bucketName) throws Exception; 28 | void putObjectStream(InputStream inputStream, long contentLength, String bucketName, String objectKey) throws Exception; 29 | } 30 | -------------------------------------------------------------------------------- /sdk-bulkwriter/src/main/java/io/milvus/bulkwriter/writer/FormatFileWriter.java: -------------------------------------------------------------------------------- 1 | package io.milvus.bulkwriter.writer; 2 | 3 | import java.io.IOException; 4 | import java.util.Map; 5 | 6 | public interface FormatFileWriter { 7 | void appendRow(Map rowValues, boolean firstWrite) throws IOException; 8 | 9 | String getFilePath(); 10 | 11 | void close() throws IOException; 12 | } 13 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/common/clientenum/FunctionType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.common.clientenum; 21 | 22 | import lombok.Getter; 23 | 24 | public enum FunctionType { 25 | UNKNOWN(0), 26 | BM25(1), 27 | TextEmbedding(2), 28 | Rerank(3), 29 | ; 30 | 31 | @Getter 32 | private final int code; 33 | 34 | FunctionType(int i) { 35 | code = i; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/common/resourcegroup/NodeInfo.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.common.resourcegroup; 21 | 22 | import lombok.Data; 23 | import lombok.experimental.SuperBuilder; 24 | 25 | @Data 26 | @SuperBuilder 27 | public class NodeInfo { 28 | private Long nodeId; 29 | private String address; 30 | private String hostname; 31 | } 32 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/connection/Listener.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.connection; 21 | 22 | /** 23 | * Interface of multi server listener. 24 | */ 25 | public interface Listener { 26 | 27 | Boolean heartBeat(ServerSetting serverSetting); 28 | 29 | } 30 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/exception/ClientNotConnectedException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.exception; 21 | 22 | import io.milvus.param.R; 23 | 24 | /** 25 | * Milvus client API throws this exception when not connected to the Milvus server. 26 | */ 27 | public class ClientNotConnectedException extends MilvusException { 28 | public ClientNotConnectedException(String msg) { 29 | super(msg, R.Status.ClientNotConnected.getCode()); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/exception/ParamException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.exception; 21 | 22 | import io.milvus.param.R; 23 | 24 | /** 25 | * Exception for illegal parameters input. 26 | */ 27 | public class ParamException extends MilvusException { 28 | public ParamException(String msg) { 29 | super(msg, R.Status.ParamError.getCode()); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/exception/UnExpectedException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.exception; 21 | 22 | import io.milvus.param.R; 23 | 24 | /** 25 | * Exception for unexpected exception. 26 | */ 27 | public class UnExpectedException extends MilvusException { 28 | public UnExpectedException(String msg) { 29 | super(msg, R.Status.UnexpectedError.getCode()); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/param/IndexBuildState.java: -------------------------------------------------------------------------------- 1 | package io.milvus.param; 2 | 3 | public enum IndexBuildState { 4 | IndexStateNone, 5 | Unissued, 6 | InProgress, 7 | Finished, 8 | Failed, 9 | Retry, 10 | } 11 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/param/LogLevel.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.param; 21 | 22 | public enum LogLevel { 23 | Debug, 24 | Info, 25 | Warning, 26 | Error, 27 | } 28 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/param/MetricType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.param; 21 | 22 | /** 23 | * Represents the available metric types. 24 | * For more information: @see Similarity Metrics 25 | */ 26 | public enum MetricType { 27 | None, 28 | 29 | // Only for float vectors 30 | L2, 31 | IP, 32 | COSINE, 33 | 34 | // Only for binary vectors 35 | HAMMING, 36 | JACCARD, 37 | ; 38 | } 39 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/param/RpcStatus.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.param; 21 | 22 | import lombok.ToString; 23 | 24 | /** 25 | * Utility class to wrap a message. 26 | */ 27 | @ToString 28 | public class RpcStatus { 29 | public static final String SUCCESS_MSG = "Success"; 30 | 31 | private final String msg; 32 | 33 | public String getMsg() { 34 | return msg; 35 | } 36 | 37 | public RpcStatus(String msg) { 38 | this.msg = msg; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/param/dml/ranker/BaseRanker.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.param.dml.ranker; 21 | 22 | import java.util.HashMap; 23 | import java.util.Map; 24 | 25 | public abstract class BaseRanker { 26 | public abstract Map getProperties(); 27 | } 28 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/param/highlevel/collection/response/ListCollectionsResponse.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.param.highlevel.collection.response; 21 | 22 | import lombok.Builder; 23 | import lombok.ToString; 24 | 25 | import java.util.List; 26 | 27 | /** 28 | * Parameters for showCollections interface. 29 | */ 30 | @Builder 31 | @ToString 32 | public class ListCollectionsResponse { 33 | public List collectionNames; 34 | } 35 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/param/highlevel/dml/response/GetResponse.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.param.highlevel.dml.response; 21 | 22 | import io.milvus.response.QueryResultsWrapper; 23 | import lombok.Builder; 24 | import lombok.Getter; 25 | 26 | import java.util.List; 27 | 28 | /** 29 | * Parameters for get interface. 30 | */ 31 | @Builder 32 | @Getter 33 | public class GetResponse { 34 | public List rowRecords; 35 | } 36 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/param/highlevel/dml/response/InsertResponse.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.param.highlevel.dml.response; 21 | 22 | import lombok.Builder; 23 | import lombok.Getter; 24 | 25 | import java.util.List; 26 | 27 | /** 28 | * Parameters for insert interface. 29 | */ 30 | @Builder 31 | @Getter 32 | public class InsertResponse { 33 | private Long insertCount; 34 | public List insertIds; 35 | } 36 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/param/highlevel/dml/response/QueryResponse.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.param.highlevel.dml.response; 21 | 22 | import io.milvus.response.QueryResultsWrapper; 23 | import lombok.Builder; 24 | import lombok.Getter; 25 | 26 | import java.util.List; 27 | 28 | /** 29 | * Parameters for query interface. 30 | */ 31 | @Builder 32 | @Getter 33 | public class QueryResponse { 34 | public List rowRecords; 35 | } 36 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/pool/MilvusClientV1Pool.java: -------------------------------------------------------------------------------- 1 | package io.milvus.pool; 2 | 3 | import io.milvus.client.MilvusClient; 4 | import io.milvus.client.MilvusServiceClient; 5 | import io.milvus.param.ConnectParam; 6 | 7 | public class MilvusClientV1Pool extends ClientPool { 8 | public MilvusClientV1Pool(PoolConfig poolConfig, ConnectParam connectParam) throws ClassNotFoundException, NoSuchMethodException { 9 | super(poolConfig, new PoolClientFactory(connectParam, MilvusServiceClient.class.getName())); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/pool/MilvusClientV2Pool.java: -------------------------------------------------------------------------------- 1 | package io.milvus.pool; 2 | 3 | import io.milvus.v2.client.ConnectConfig; 4 | import io.milvus.v2.client.MilvusClientV2; 5 | 6 | public class MilvusClientV2Pool extends ClientPool { 7 | public MilvusClientV2Pool(PoolConfig poolConfig, ConnectConfig connectConfig) throws ClassNotFoundException, NoSuchMethodException { 8 | super(poolConfig, new PoolClientFactory(connectConfig, MilvusClientV2.class.getName())); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/pool/PoolConfig.java: -------------------------------------------------------------------------------- 1 | package io.milvus.pool; 2 | 3 | import lombok.Builder; 4 | import lombok.Data; 5 | import lombok.experimental.SuperBuilder; 6 | 7 | import java.time.Duration; 8 | 9 | @Data 10 | @SuperBuilder 11 | public class PoolConfig { 12 | @Builder.Default 13 | private int maxIdlePerKey = 5; 14 | @Builder.Default 15 | private int minIdlePerKey = 0; 16 | @Builder.Default 17 | private int maxTotalPerKey = 10; 18 | @Builder.Default 19 | private int maxTotal = 50; 20 | @Builder.Default 21 | private boolean blockWhenExhausted = true; 22 | @Builder.Default 23 | private Duration maxBlockWaitDuration = Duration.ofSeconds(3L); 24 | @Builder.Default 25 | private Duration evictionPollingInterval = Duration.ofSeconds(60L); 26 | @Builder.Default 27 | private Duration minEvictableIdleDuration = Duration.ofSeconds(10L); 28 | @Builder.Default 29 | private boolean testOnBorrow = false; 30 | @Builder.Default 31 | private boolean testOnReturn = true; 32 | } 33 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/common/CompactionState.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.v2.common; 21 | 22 | import lombok.Getter; 23 | 24 | @Getter 25 | public enum CompactionState { 26 | UndefiedState(0), 27 | Executing(1), 28 | Completed(2); 29 | 30 | private final int code; 31 | CompactionState(int code) { 32 | this.code = code; 33 | } 34 | ; 35 | } 36 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/common/IndexBuildState.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.v2.common; 21 | 22 | public enum IndexBuildState { 23 | IndexStateNone, 24 | Unissued, 25 | InProgress, 26 | Finished, 27 | Failed, 28 | Retry, 29 | } 30 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/exception/ErrorCode.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.v2.exception; 21 | 22 | import lombok.Getter; 23 | 24 | @Getter 25 | public enum ErrorCode { 26 | SUCCESS(0), 27 | COLLECTION_NOT_FOUND(1), 28 | SERVER_ERROR(2), 29 | INVALID_PARAMS(3), 30 | CLIENT_ERROR(4), 31 | RPC_ERROR(5), 32 | TIMEOUT(6); 33 | 34 | private final int code; 35 | 36 | ErrorCode(int i) { 37 | this.code = i; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/collection/ReplicaInfo.java: -------------------------------------------------------------------------------- 1 | package io.milvus.v2.service.collection; 2 | 3 | import lombok.Builder; 4 | import lombok.Data; 5 | import lombok.experimental.SuperBuilder; 6 | 7 | import java.util.ArrayList; 8 | import java.util.HashMap; 9 | import java.util.List; 10 | import java.util.Map; 11 | 12 | @Data 13 | @SuperBuilder 14 | public class ReplicaInfo { 15 | private Long replicaID; 16 | private Long collectionID; 17 | @Builder.Default 18 | private List partitionIDs = new ArrayList<>(); 19 | @Builder.Default 20 | private List shardReplicas = new ArrayList<>(); 21 | @Builder.Default 22 | private List nodeIDs = new ArrayList<>(); // include leaders 23 | @Builder.Default 24 | private String resourceGroupName = ""; 25 | @Builder.Default 26 | private Map numOutboundNode = new HashMap<>(); 27 | } 28 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/collection/ShardReplica.java: -------------------------------------------------------------------------------- 1 | package io.milvus.v2.service.collection; 2 | 3 | import lombok.Builder; 4 | import lombok.Data; 5 | import lombok.experimental.SuperBuilder; 6 | 7 | import java.util.ArrayList; 8 | import java.util.List; 9 | 10 | @Data 11 | @SuperBuilder 12 | public class ShardReplica { 13 | private Long leaderID; 14 | private String leaderAddress; // IP:port 15 | @Builder.Default 16 | private String channelName = ""; 17 | @Builder.Default 18 | private List nodeIDs = new ArrayList<>(); 19 | } 20 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/collection/request/AlterCollectionReq.java: -------------------------------------------------------------------------------- 1 | package io.milvus.v2.service.collection.request; 2 | 3 | import lombok.Builder; 4 | import lombok.Data; 5 | import lombok.experimental.SuperBuilder; 6 | 7 | import java.util.HashMap; 8 | import java.util.Map; 9 | 10 | @Data 11 | @SuperBuilder 12 | @Deprecated 13 | public class AlterCollectionReq { 14 | private String collectionName; 15 | private String databaseName; 16 | @Builder.Default 17 | private final Map properties = new HashMap<>(); 18 | 19 | 20 | 21 | public static abstract class AlterCollectionReqBuilder> { 22 | public B property(String key, String value) { 23 | if(null == this.properties$value ){ 24 | this.properties$value = new HashMap<>(); 25 | } 26 | this.properties$value.put(key, value); 27 | this.properties$set = true; 28 | return self(); 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/collection/request/DescribeCollectionReq.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.v2.service.collection.request; 21 | 22 | import lombok.Data; 23 | import lombok.experimental.SuperBuilder; 24 | 25 | @Data 26 | @SuperBuilder 27 | public class DescribeCollectionReq { 28 | private String databaseName; 29 | private String collectionName; 30 | } 31 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/collection/request/DescribeReplicasReq.java: -------------------------------------------------------------------------------- 1 | package io.milvus.v2.service.collection.request; 2 | 3 | import lombok.Data; 4 | import lombok.experimental.SuperBuilder; 5 | 6 | @Data 7 | @SuperBuilder 8 | public class DescribeReplicasReq { 9 | private String collectionName; 10 | private String databaseName; 11 | } 12 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/collection/request/DropCollectionReq.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.v2.service.collection.request; 21 | 22 | import lombok.Builder; 23 | import lombok.Data; 24 | import lombok.experimental.SuperBuilder; 25 | 26 | @Data 27 | @SuperBuilder 28 | public class DropCollectionReq { 29 | private String collectionName; 30 | @Deprecated 31 | @Builder.Default 32 | private Boolean async = Boolean.TRUE; 33 | @Builder.Default 34 | private Long timeout = 60000L; 35 | } 36 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/collection/request/GetCollectionStatsReq.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.v2.service.collection.request; 21 | 22 | import lombok.Data; 23 | import lombok.experimental.SuperBuilder; 24 | 25 | @Data 26 | @SuperBuilder 27 | public class GetCollectionStatsReq { 28 | private String collectionName; 29 | } 30 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/collection/request/GetLoadStateReq.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.v2.service.collection.request; 21 | 22 | import lombok.Data; 23 | import lombok.experimental.SuperBuilder; 24 | 25 | @Data 26 | @SuperBuilder 27 | public class GetLoadStateReq { 28 | private String collectionName; 29 | private String partitionName; 30 | } 31 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/collection/request/HasCollectionReq.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.v2.service.collection.request; 21 | 22 | import lombok.Data; 23 | import lombok.experimental.SuperBuilder; 24 | 25 | @Data 26 | @SuperBuilder 27 | public class HasCollectionReq { 28 | private String collectionName; 29 | } 30 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/collection/request/ReleaseCollectionReq.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.v2.service.collection.request; 21 | 22 | import lombok.Builder; 23 | import lombok.Data; 24 | import lombok.experimental.SuperBuilder; 25 | 26 | @Data 27 | @SuperBuilder 28 | public class ReleaseCollectionReq { 29 | private String collectionName; 30 | @Deprecated 31 | @Builder.Default 32 | private Boolean async = Boolean.TRUE; 33 | @Builder.Default 34 | private Long timeout = 60000L; 35 | } 36 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/collection/request/RenameCollectionReq.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.v2.service.collection.request; 21 | 22 | import lombok.Data; 23 | import lombok.experimental.SuperBuilder; 24 | 25 | @Data 26 | @SuperBuilder 27 | public class RenameCollectionReq { 28 | private String collectionName; 29 | private String newCollectionName; 30 | } 31 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/collection/response/DescribeReplicasResp.java: -------------------------------------------------------------------------------- 1 | package io.milvus.v2.service.collection.response; 2 | 3 | import io.milvus.v2.service.collection.ReplicaInfo; 4 | import lombok.Builder; 5 | import lombok.Data; 6 | import lombok.experimental.SuperBuilder; 7 | 8 | import java.util.ArrayList; 9 | import java.util.List; 10 | 11 | @Data 12 | @SuperBuilder 13 | public class DescribeReplicasResp { 14 | @Builder.Default 15 | private List replicas = new ArrayList<>(); 16 | } 17 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/collection/response/GetCollectionStatsResp.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.v2.service.collection.response; 21 | 22 | import lombok.Data; 23 | import lombok.experimental.SuperBuilder; 24 | 25 | @Data 26 | @SuperBuilder 27 | public class GetCollectionStatsResp { 28 | private Long numOfEntities; 29 | } 30 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/collection/response/ListCollectionsResp.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.v2.service.collection.response; 21 | 22 | import lombok.Builder; 23 | import lombok.Data; 24 | import lombok.experimental.SuperBuilder; 25 | 26 | import java.util.ArrayList; 27 | import java.util.List; 28 | 29 | @Data 30 | @SuperBuilder 31 | public class ListCollectionsResp { 32 | @Builder.Default 33 | private List collectionNames = new ArrayList<>(); 34 | } 35 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/database/request/AlterDatabaseReq.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.v2.service.database.request; 21 | 22 | import lombok.Builder; 23 | import lombok.Data; 24 | import lombok.experimental.SuperBuilder; 25 | 26 | import java.util.HashMap; 27 | import java.util.Map; 28 | 29 | @Data 30 | @SuperBuilder 31 | @Deprecated 32 | public class AlterDatabaseReq { 33 | private String databaseName; 34 | @Builder.Default 35 | private Map properties = new HashMap<>(); 36 | } 37 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/database/request/CreateDatabaseReq.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.v2.service.database.request; 21 | 22 | import lombok.Builder; 23 | import lombok.Data; 24 | import lombok.experimental.SuperBuilder; 25 | 26 | import java.util.HashMap; 27 | import java.util.Map; 28 | 29 | @Data 30 | @SuperBuilder 31 | public class CreateDatabaseReq { 32 | private String databaseName; 33 | @Builder.Default 34 | private Map properties = new HashMap<>(); 35 | } 36 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/database/request/DescribeDatabaseReq.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.v2.service.database.request; 21 | 22 | import lombok.Data; 23 | import lombok.experimental.SuperBuilder; 24 | 25 | @Data 26 | @SuperBuilder 27 | public class DescribeDatabaseReq { 28 | private String databaseName; 29 | } 30 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/database/request/DropDatabasePropertiesReq.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.v2.service.database.request; 21 | 22 | 23 | import lombok.Builder; 24 | import lombok.Data; 25 | import lombok.experimental.SuperBuilder; 26 | 27 | import java.util.ArrayList; 28 | import java.util.List; 29 | 30 | @Data 31 | @SuperBuilder 32 | public class DropDatabasePropertiesReq { 33 | private String databaseName; 34 | @Builder.Default 35 | private List propertyKeys = new ArrayList<>(); 36 | } 37 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/database/request/DropDatabaseReq.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.v2.service.database.request; 21 | 22 | import lombok.Data; 23 | import lombok.experimental.SuperBuilder; 24 | 25 | @Data 26 | @SuperBuilder 27 | public class DropDatabaseReq { 28 | private String databaseName; 29 | } 30 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/database/response/DescribeDatabaseResp.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.v2.service.database.response; 21 | 22 | import lombok.Builder; 23 | import lombok.Data; 24 | import lombok.experimental.SuperBuilder; 25 | 26 | import java.util.HashMap; 27 | import java.util.Map; 28 | 29 | @Data 30 | @SuperBuilder 31 | public class DescribeDatabaseResp { 32 | private String databaseName; 33 | @Builder.Default 34 | private Map properties = new HashMap<>(); 35 | } 36 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/database/response/ListDatabasesResp.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.v2.service.database.response; 21 | 22 | import lombok.Builder; 23 | import lombok.Data; 24 | import lombok.experimental.SuperBuilder; 25 | 26 | import java.util.ArrayList; 27 | import java.util.List; 28 | 29 | @Data 30 | @SuperBuilder 31 | public class ListDatabasesResp { 32 | @Builder.Default 33 | private List databaseNames = new ArrayList<>(); 34 | } 35 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/index/request/AlterIndexReq.java: -------------------------------------------------------------------------------- 1 | package io.milvus.v2.service.index.request; 2 | 3 | import lombok.Builder; 4 | import lombok.Data; 5 | import lombok.experimental.SuperBuilder; 6 | 7 | import java.util.HashMap; 8 | import java.util.Map; 9 | 10 | @Data 11 | @SuperBuilder 12 | @Deprecated 13 | public class AlterIndexReq { 14 | private String collectionName; 15 | private String databaseName; 16 | private String indexName; 17 | @Builder.Default 18 | private Map properties = new HashMap<>(); 19 | } 20 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/index/request/DropIndexReq.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.v2.service.index.request; 21 | 22 | import lombok.Data; 23 | import lombok.NonNull; 24 | import lombok.experimental.SuperBuilder; 25 | 26 | @Data 27 | @SuperBuilder 28 | public class DropIndexReq { 29 | @NonNull 30 | private String collectionName; 31 | private String fieldName; 32 | private String indexName; 33 | } 34 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/index/request/ListIndexesReq.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.v2.service.index.request; 21 | 22 | import lombok.Data; 23 | import lombok.NonNull; 24 | import lombok.experimental.SuperBuilder; 25 | 26 | @Data 27 | @SuperBuilder 28 | public class ListIndexesReq { 29 | @NonNull 30 | private String collectionName; 31 | private String fieldName; 32 | } 33 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/partition/request/CreatePartitionReq.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.v2.service.partition.request; 21 | 22 | import lombok.Data; 23 | import lombok.experimental.SuperBuilder; 24 | 25 | @Data 26 | @SuperBuilder 27 | public class CreatePartitionReq { 28 | private String collectionName; 29 | private String partitionName; 30 | } 31 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/partition/request/DropPartitionReq.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.v2.service.partition.request; 21 | 22 | import lombok.Data; 23 | import lombok.experimental.SuperBuilder; 24 | 25 | @Data 26 | @SuperBuilder 27 | public class DropPartitionReq { 28 | private String collectionName; 29 | private String partitionName; 30 | } 31 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/partition/request/GetPartitionStatsReq.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.v2.service.partition.request; 21 | 22 | import lombok.Data; 23 | import lombok.experimental.SuperBuilder; 24 | 25 | @Data 26 | @SuperBuilder 27 | public class GetPartitionStatsReq { 28 | private String collectionName; 29 | private String partitionName; 30 | } 31 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/partition/request/HasPartitionReq.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.v2.service.partition.request; 21 | 22 | import lombok.Data; 23 | import lombok.experimental.SuperBuilder; 24 | 25 | @Data 26 | @SuperBuilder 27 | public class HasPartitionReq { 28 | private String collectionName; 29 | private String partitionName; 30 | } 31 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/partition/request/ListPartitionsReq.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.v2.service.partition.request; 21 | 22 | import lombok.Data; 23 | import lombok.experimental.SuperBuilder; 24 | 25 | @Data 26 | @SuperBuilder 27 | public class ListPartitionsReq { 28 | private String collectionName; 29 | } 30 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/partition/request/ReleasePartitionsReq.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.v2.service.partition.request; 21 | 22 | import lombok.Data; 23 | import lombok.experimental.SuperBuilder; 24 | 25 | import java.util.List; 26 | 27 | @Data 28 | @SuperBuilder 29 | public class ReleasePartitionsReq { 30 | private String collectionName; 31 | private List partitionNames; 32 | } 33 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/partition/response/GetPartitionStatsResp.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | 21 | package io.milvus.v2.service.partition.response; 22 | 23 | import lombok.Data; 24 | import lombok.experimental.SuperBuilder; 25 | 26 | @Data 27 | @SuperBuilder 28 | public class GetPartitionStatsResp { 29 | private Long numOfEntities; 30 | } 31 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/rbac/PrivilegeGroup.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.v2.service.rbac; 21 | 22 | import lombok.Builder; 23 | import lombok.Data; 24 | import lombok.experimental.SuperBuilder; 25 | 26 | import java.util.ArrayList; 27 | import java.util.List; 28 | 29 | @Data 30 | @SuperBuilder 31 | public class PrivilegeGroup { 32 | private String groupName; 33 | @Builder.Default 34 | private List privileges = new ArrayList<>(); 35 | } 36 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/rbac/request/AddPrivilegesToGroupReq.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.v2.service.rbac.request; 21 | 22 | import lombok.Builder; 23 | import lombok.Data; 24 | import lombok.experimental.SuperBuilder; 25 | 26 | import java.util.ArrayList; 27 | import java.util.List; 28 | 29 | @Data 30 | @SuperBuilder 31 | public class AddPrivilegesToGroupReq { 32 | private String groupName; 33 | @Builder.Default 34 | private List privileges = new ArrayList<>(); 35 | } 36 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/rbac/request/CreatePrivilegeGroupReq.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.v2.service.rbac.request; 21 | 22 | import lombok.Data; 23 | import lombok.experimental.SuperBuilder; 24 | 25 | @Data 26 | @SuperBuilder 27 | public class CreatePrivilegeGroupReq { 28 | private String groupName; 29 | } 30 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/rbac/request/CreateRoleReq.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.v2.service.rbac.request; 21 | 22 | import lombok.Data; 23 | import lombok.experimental.SuperBuilder; 24 | 25 | @Data 26 | @SuperBuilder 27 | public class CreateRoleReq { 28 | private String roleName; 29 | } 30 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/rbac/request/CreateUserReq.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.v2.service.rbac.request; 21 | 22 | import lombok.Data; 23 | import lombok.experimental.SuperBuilder; 24 | 25 | @Data 26 | @SuperBuilder 27 | public class CreateUserReq { 28 | private String userName; 29 | private String password; 30 | } 31 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/rbac/request/DescribeRoleReq.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.v2.service.rbac.request; 21 | 22 | import lombok.Data; 23 | import lombok.experimental.SuperBuilder; 24 | 25 | @Data 26 | @SuperBuilder 27 | public class DescribeRoleReq { 28 | private String roleName; 29 | private String dbName; 30 | } 31 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/rbac/request/DescribeUserReq.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.v2.service.rbac.request; 21 | 22 | import lombok.Data; 23 | import lombok.experimental.SuperBuilder; 24 | 25 | @Data 26 | @SuperBuilder 27 | public class DescribeUserReq { 28 | private String userName; 29 | } 30 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/rbac/request/DropPrivilegeGroupReq.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.v2.service.rbac.request; 21 | 22 | import lombok.Data; 23 | import lombok.experimental.SuperBuilder; 24 | 25 | @Data 26 | @SuperBuilder 27 | public class DropPrivilegeGroupReq { 28 | private String groupName; 29 | } 30 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/rbac/request/DropRoleReq.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.v2.service.rbac.request; 21 | 22 | import lombok.Data; 23 | import lombok.experimental.SuperBuilder; 24 | 25 | @Data 26 | @SuperBuilder 27 | public class DropRoleReq { 28 | private String roleName; 29 | } 30 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/rbac/request/DropUserReq.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.v2.service.rbac.request; 21 | 22 | import lombok.Data; 23 | import lombok.experimental.SuperBuilder; 24 | 25 | @Data 26 | @SuperBuilder 27 | public class DropUserReq { 28 | private String userName; 29 | } 30 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/rbac/request/GrantPrivilegeReq.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.v2.service.rbac.request; 21 | 22 | import lombok.Data; 23 | import lombok.experimental.SuperBuilder; 24 | 25 | @Data 26 | @SuperBuilder 27 | public class GrantPrivilegeReq { 28 | private String roleName; 29 | private String objectType; 30 | private String privilege; 31 | private String objectName; 32 | } 33 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/rbac/request/GrantPrivilegeReqV2.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.v2.service.rbac.request; 21 | 22 | import lombok.Data; 23 | import lombok.experimental.SuperBuilder; 24 | 25 | @Data 26 | @SuperBuilder 27 | public class GrantPrivilegeReqV2 { 28 | private String roleName; 29 | private String privilege; 30 | private String dbName; 31 | private String collectionName; 32 | } 33 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/rbac/request/GrantRoleReq.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.v2.service.rbac.request; 21 | 22 | import lombok.Data; 23 | import lombok.experimental.SuperBuilder; 24 | 25 | @Data 26 | @SuperBuilder 27 | public class GrantRoleReq { 28 | private String userName; 29 | private String roleName; 30 | } 31 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/rbac/request/ListPrivilegeGroupsReq.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.v2.service.rbac.request; 21 | 22 | import lombok.Data; 23 | import lombok.experimental.SuperBuilder; 24 | 25 | @Data 26 | @SuperBuilder 27 | public class ListPrivilegeGroupsReq { 28 | } 29 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/rbac/request/RemovePrivilegesFromGroupReq.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.v2.service.rbac.request; 21 | 22 | import lombok.Builder; 23 | import lombok.Data; 24 | import lombok.experimental.SuperBuilder; 25 | 26 | import java.util.ArrayList; 27 | import java.util.List; 28 | 29 | @Data 30 | @SuperBuilder 31 | public class RemovePrivilegesFromGroupReq { 32 | private String groupName; 33 | @Builder.Default 34 | private List privileges = new ArrayList<>(); 35 | } 36 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/rbac/request/RevokePrivilegeReq.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.v2.service.rbac.request; 21 | 22 | import lombok.Data; 23 | import lombok.experimental.SuperBuilder; 24 | 25 | @Data 26 | @SuperBuilder 27 | public class RevokePrivilegeReq { 28 | private String roleName; 29 | private String dbName; 30 | private String objectType; 31 | private String privilege; 32 | private String objectName; 33 | } 34 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/rbac/request/RevokePrivilegeReqV2.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.v2.service.rbac.request; 21 | 22 | import lombok.Data; 23 | import lombok.experimental.SuperBuilder; 24 | 25 | @Data 26 | @SuperBuilder 27 | public class RevokePrivilegeReqV2 { 28 | private String roleName; 29 | private String privilege; 30 | private String dbName; 31 | private String collectionName; 32 | } 33 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/rbac/request/RevokeRoleReq.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.v2.service.rbac.request; 21 | 22 | import lombok.Data; 23 | import lombok.experimental.SuperBuilder; 24 | 25 | @Data 26 | @SuperBuilder 27 | public class RevokeRoleReq { 28 | private String userName; 29 | private String roleName; 30 | } 31 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/rbac/request/UpdatePasswordReq.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.v2.service.rbac.request; 21 | 22 | import lombok.Data; 23 | import lombok.experimental.SuperBuilder; 24 | 25 | @Data 26 | @SuperBuilder 27 | public class UpdatePasswordReq { 28 | private String userName; 29 | private String password; 30 | private String newPassword; 31 | } 32 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/rbac/response/DescribeUserResp.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.v2.service.rbac.response; 21 | 22 | import lombok.Builder; 23 | import lombok.Data; 24 | import lombok.experimental.SuperBuilder; 25 | 26 | import java.util.ArrayList; 27 | import java.util.List; 28 | 29 | @Data 30 | @SuperBuilder 31 | public class DescribeUserResp { 32 | @Builder.Default 33 | private List roles = new ArrayList<>(); 34 | } 35 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/rbac/response/ListPrivilegeGroupsResp.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.v2.service.rbac.response; 21 | 22 | import io.milvus.v2.service.rbac.PrivilegeGroup; 23 | import lombok.Builder; 24 | import lombok.Data; 25 | import lombok.experimental.SuperBuilder; 26 | 27 | import java.util.*; 28 | 29 | @Data 30 | @SuperBuilder 31 | public class ListPrivilegeGroupsResp { 32 | @Builder.Default 33 | private List privilegeGroups = new ArrayList<>(); 34 | } 35 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/resourcegroup/request/CreateResourceGroupReq.java: -------------------------------------------------------------------------------- 1 | package io.milvus.v2.service.resourcegroup.request; 2 | 3 | import io.milvus.common.resourcegroup.ResourceGroupConfig; 4 | import lombok.Data; 5 | import lombok.experimental.SuperBuilder; 6 | 7 | @Data 8 | @SuperBuilder 9 | public class CreateResourceGroupReq { 10 | private String groupName; 11 | private ResourceGroupConfig config; 12 | } 13 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/resourcegroup/request/DescribeResourceGroupReq.java: -------------------------------------------------------------------------------- 1 | package io.milvus.v2.service.resourcegroup.request; 2 | 3 | import lombok.Data; 4 | import lombok.experimental.SuperBuilder; 5 | 6 | @Data 7 | @SuperBuilder 8 | public class DescribeResourceGroupReq { 9 | private String groupName; 10 | } 11 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/resourcegroup/request/DropResourceGroupReq.java: -------------------------------------------------------------------------------- 1 | package io.milvus.v2.service.resourcegroup.request; 2 | 3 | import lombok.Data; 4 | import lombok.experimental.SuperBuilder; 5 | 6 | @Data 7 | @SuperBuilder 8 | public class DropResourceGroupReq { 9 | private String groupName; 10 | } 11 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/resourcegroup/request/ListResourceGroupsReq.java: -------------------------------------------------------------------------------- 1 | package io.milvus.v2.service.resourcegroup.request; 2 | 3 | import lombok.Data; 4 | import lombok.experimental.SuperBuilder; 5 | 6 | @Data 7 | @SuperBuilder 8 | public class ListResourceGroupsReq { 9 | } 10 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/resourcegroup/request/TransferNodeReq.java: -------------------------------------------------------------------------------- 1 | package io.milvus.v2.service.resourcegroup.request; 2 | 3 | import lombok.Data; 4 | import lombok.experimental.SuperBuilder; 5 | 6 | @Data 7 | @SuperBuilder 8 | public class TransferNodeReq { 9 | private String sourceGroupName; 10 | private String targetGroupName; 11 | private Integer numOfNodes; 12 | } 13 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/resourcegroup/request/TransferReplicaReq.java: -------------------------------------------------------------------------------- 1 | package io.milvus.v2.service.resourcegroup.request; 2 | 3 | import lombok.Data; 4 | import lombok.experimental.SuperBuilder; 5 | 6 | @Data 7 | @SuperBuilder 8 | public class TransferReplicaReq { 9 | private String sourceGroupName; 10 | private String targetGroupName; 11 | private String collectionName; 12 | private String databaseName; 13 | private Long numberOfReplicas; 14 | } 15 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/resourcegroup/request/UpdateResourceGroupsReq.java: -------------------------------------------------------------------------------- 1 | package io.milvus.v2.service.resourcegroup.request; 2 | 3 | import io.milvus.common.resourcegroup.ResourceGroupConfig; 4 | import lombok.Builder; 5 | import lombok.Data; 6 | import lombok.experimental.SuperBuilder; 7 | 8 | import java.util.HashMap; 9 | import java.util.Map; 10 | 11 | @Data 12 | @SuperBuilder 13 | public class UpdateResourceGroupsReq { 14 | @Builder.Default 15 | private Map resourceGroups = new HashMap<>(); 16 | } 17 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/resourcegroup/response/DescribeResourceGroupResp.java: -------------------------------------------------------------------------------- 1 | package io.milvus.v2.service.resourcegroup.response; 2 | 3 | import io.milvus.common.resourcegroup.NodeInfo; 4 | import io.milvus.common.resourcegroup.ResourceGroupConfig; 5 | import lombok.Builder; 6 | import lombok.Data; 7 | import lombok.experimental.SuperBuilder; 8 | 9 | import java.util.*; 10 | 11 | @Data 12 | @SuperBuilder 13 | public class DescribeResourceGroupResp { 14 | private String groupName; 15 | private Integer capacity; 16 | private Integer numberOfAvailableNode; 17 | @Builder.Default 18 | private Map numberOfLoadedReplica = new HashMap<>(); 19 | @Builder.Default 20 | private Map numberOfOutgoingNode = new HashMap<>(); 21 | @Builder.Default 22 | private Map numberOfIncomingNode = new HashMap<>(); 23 | private ResourceGroupConfig config; 24 | @Builder.Default 25 | private List nodes = new ArrayList<>(); 26 | } 27 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/resourcegroup/response/ListResourceGroupsResp.java: -------------------------------------------------------------------------------- 1 | package io.milvus.v2.service.resourcegroup.response; 2 | 3 | import lombok.Builder; 4 | import lombok.Data; 5 | import lombok.experimental.SuperBuilder; 6 | 7 | import java.util.ArrayList; 8 | import java.util.List; 9 | 10 | @Data 11 | @SuperBuilder 12 | public class ListResourceGroupsResp { 13 | @Builder.Default 14 | private List groupNames = new ArrayList<>(); 15 | } 16 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/utility/request/AlterAliasReq.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.v2.service.utility.request; 21 | 22 | import lombok.Data; 23 | import lombok.experimental.SuperBuilder; 24 | 25 | @Data 26 | @SuperBuilder 27 | public class AlterAliasReq { 28 | private String alias; 29 | private String collectionName; 30 | } 31 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/utility/request/CompactReq.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.v2.service.utility.request; 21 | 22 | import lombok.Builder; 23 | import lombok.Data; 24 | import lombok.experimental.SuperBuilder; 25 | 26 | @Data 27 | @SuperBuilder 28 | public class CompactReq { 29 | private String collectionName; 30 | 31 | @Builder.Default 32 | private Boolean isClustering = Boolean.FALSE; 33 | } 34 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/utility/request/CreateAliasReq.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.v2.service.utility.request; 21 | 22 | import lombok.Data; 23 | import lombok.experimental.SuperBuilder; 24 | 25 | @Data 26 | @SuperBuilder 27 | public class CreateAliasReq { 28 | private String alias; 29 | private String collectionName; 30 | } 31 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/utility/request/DescribeAliasReq.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.v2.service.utility.request; 21 | 22 | import lombok.Data; 23 | import lombok.experimental.SuperBuilder; 24 | 25 | @Data 26 | @SuperBuilder 27 | public class DescribeAliasReq { 28 | private String alias; 29 | } 30 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/utility/request/DropAliasReq.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.v2.service.utility.request; 21 | 22 | import lombok.Data; 23 | import lombok.experimental.SuperBuilder; 24 | 25 | @Data 26 | @SuperBuilder 27 | public class DropAliasReq { 28 | private String alias; 29 | } 30 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/utility/request/GetCompactionStateReq.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.v2.service.utility.request; 21 | 22 | import lombok.Data; 23 | import lombok.experimental.SuperBuilder; 24 | 25 | @Data 26 | @SuperBuilder 27 | public class GetCompactionStateReq { 28 | private Long compactionID; 29 | } 30 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/utility/request/GetPersistentSegmentInfoReq.java: -------------------------------------------------------------------------------- 1 | package io.milvus.v2.service.utility.request; 2 | 3 | import lombok.Data; 4 | import lombok.experimental.SuperBuilder; 5 | 6 | @Data 7 | @SuperBuilder 8 | public class GetPersistentSegmentInfoReq { 9 | private String collectionName; 10 | } 11 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/utility/request/GetQuerySegmentInfoReq.java: -------------------------------------------------------------------------------- 1 | package io.milvus.v2.service.utility.request; 2 | 3 | import lombok.Data; 4 | import lombok.experimental.SuperBuilder; 5 | 6 | @Data 7 | @SuperBuilder 8 | public class GetQuerySegmentInfoReq { 9 | private String collectionName; 10 | } 11 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/utility/request/ListAliasesReq.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.v2.service.utility.request; 21 | 22 | import lombok.Data; 23 | import lombok.experimental.SuperBuilder; 24 | 25 | @Data 26 | @SuperBuilder 27 | public class ListAliasesReq { 28 | private String collectionName; 29 | } 30 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/utility/response/CheckHealthResp.java: -------------------------------------------------------------------------------- 1 | package io.milvus.v2.service.utility.response; 2 | 3 | import lombok.Builder; 4 | import lombok.Data; 5 | import lombok.experimental.SuperBuilder; 6 | 7 | import java.util.ArrayList; 8 | import java.util.List; 9 | 10 | @Data 11 | @SuperBuilder 12 | public class CheckHealthResp { 13 | @Builder.Default 14 | Boolean isHealthy = false; 15 | @Builder.Default 16 | List reasons = new ArrayList<>(); 17 | @Builder.Default 18 | List quotaStates = new ArrayList<>(); 19 | } 20 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/utility/response/CompactResp.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.v2.service.utility.response; 21 | 22 | import lombok.Builder; 23 | import lombok.Data; 24 | import lombok.experimental.SuperBuilder; 25 | 26 | @Data 27 | @SuperBuilder 28 | public class CompactResp { 29 | @Builder.Default 30 | private Long compactionID = 0L; 31 | } 32 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/utility/response/DescribeAliasResp.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.v2.service.utility.response; 21 | 22 | import lombok.Data; 23 | import lombok.experimental.SuperBuilder; 24 | 25 | @Data 26 | @SuperBuilder 27 | public class DescribeAliasResp { 28 | private String collectionName; 29 | private String alias; 30 | } 31 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/utility/response/FlushResp.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.v2.service.utility.response; 21 | 22 | import lombok.Builder; 23 | import lombok.Data; 24 | import lombok.experimental.SuperBuilder; 25 | 26 | import java.util.*; 27 | 28 | @Data 29 | @SuperBuilder 30 | public class FlushResp { 31 | @Builder.Default 32 | Map> collectionSegmentIDs = new HashMap<>(); 33 | @Builder.Default 34 | Map collectionFlushTs = new HashMap<>(); 35 | } 36 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/utility/response/GetPersistentSegmentInfoResp.java: -------------------------------------------------------------------------------- 1 | package io.milvus.v2.service.utility.response; 2 | 3 | import lombok.Builder; 4 | import lombok.Data; 5 | import lombok.experimental.SuperBuilder; 6 | 7 | import java.util.ArrayList; 8 | import java.util.List; 9 | 10 | @Data 11 | @SuperBuilder 12 | public class GetPersistentSegmentInfoResp { 13 | @Data 14 | @SuperBuilder 15 | public static class PersistentSegmentInfo { 16 | private Long segmentID; 17 | private Long collectionID; 18 | private Long partitionID; 19 | private Long numOfRows; 20 | private String state; 21 | private String level; 22 | private Boolean isSorted; 23 | } 24 | 25 | @Builder.Default 26 | private List segmentInfos = new ArrayList<>(); 27 | } 28 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/utility/response/GetQuerySegmentInfoResp.java: -------------------------------------------------------------------------------- 1 | package io.milvus.v2.service.utility.response; 2 | 3 | import lombok.Builder; 4 | import lombok.Data; 5 | import lombok.experimental.SuperBuilder; 6 | 7 | import java.util.ArrayList; 8 | import java.util.List; 9 | 10 | @Data 11 | @SuperBuilder 12 | public class GetQuerySegmentInfoResp { 13 | @Data 14 | @SuperBuilder 15 | public static class QuerySegmentInfo { 16 | private Long segmentID; 17 | private Long collectionID; 18 | private Long partitionID; 19 | private Long memSize; 20 | private Long numOfRows; 21 | private String indexName; 22 | private Long indexID; 23 | private String state; 24 | private String level; 25 | @Builder.Default 26 | private List nodeIDs = new ArrayList<>(); 27 | private Boolean isSorted; 28 | } 29 | 30 | @Builder.Default 31 | private List segmentInfos = new ArrayList<>(); 32 | } 33 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/utility/response/ListAliasResp.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.v2.service.utility.response; 21 | 22 | import lombok.Data; 23 | import lombok.experimental.SuperBuilder; 24 | 25 | import java.util.List; 26 | 27 | @Data 28 | @SuperBuilder 29 | public class ListAliasResp { 30 | private String collectionName; 31 | private List alias; 32 | } 33 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/vector/request/GetReq.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.v2.service.vector.request; 21 | 22 | import lombok.Builder; 23 | import lombok.Data; 24 | import lombok.experimental.SuperBuilder; 25 | 26 | import java.util.List; 27 | 28 | @Data 29 | @SuperBuilder 30 | public class GetReq { 31 | private String collectionName; 32 | @Builder.Default 33 | private String partitionName = ""; 34 | private List ids; 35 | private List outputFields; 36 | } 37 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/vector/request/QueryIteratorReq.java: -------------------------------------------------------------------------------- 1 | package io.milvus.v2.service.vector.request; 2 | 3 | import com.google.common.collect.Lists; 4 | import io.milvus.v2.common.ConsistencyLevel; 5 | import lombok.Builder; 6 | import lombok.Data; 7 | import lombok.experimental.SuperBuilder; 8 | 9 | import java.util.List; 10 | 11 | @Data 12 | @SuperBuilder 13 | public class QueryIteratorReq { 14 | private String databaseName; 15 | private String collectionName; 16 | @Builder.Default 17 | private List partitionNames = Lists.newArrayList(); 18 | @Builder.Default 19 | private List outputFields = Lists.newArrayList(); 20 | @Builder.Default 21 | private String expr = ""; 22 | @Builder.Default 23 | private ConsistencyLevel consistencyLevel = null; 24 | @Builder.Default 25 | private long offset = 0; 26 | @Builder.Default 27 | private long limit = -1; 28 | @Builder.Default 29 | private boolean ignoreGrowing = false; 30 | @Builder.Default 31 | private long batchSize = 1000L; 32 | @Builder.Default 33 | private boolean reduceStopForBest = false; 34 | } 35 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/vector/request/data/BaseVector.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.v2.service.vector.request.data; 21 | 22 | import io.milvus.grpc.PlaceholderType; 23 | 24 | public interface BaseVector { 25 | PlaceholderType getPlaceholderType(); 26 | Object getData(); 27 | } 28 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/vector/request/data/EmbeddedText.java: -------------------------------------------------------------------------------- 1 | package io.milvus.v2.service.vector.request.data; 2 | 3 | import io.milvus.grpc.PlaceholderType; 4 | 5 | public class EmbeddedText implements BaseVector { 6 | private final String data; 7 | 8 | public EmbeddedText(String data) { 9 | this.data = data; 10 | } 11 | @Override 12 | public PlaceholderType getPlaceholderType() { 13 | return PlaceholderType.VarChar; 14 | } 15 | 16 | @Override 17 | public Object getData() { 18 | return this.data; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/vector/request/ranker/BaseRanker.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.v2.service.vector.request.ranker; 21 | 22 | import java.util.Map; 23 | 24 | public abstract class BaseRanker { 25 | public abstract Map getProperties(); 26 | } 27 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/vector/response/DeleteResp.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.v2.service.vector.response; 21 | 22 | import lombok.Data; 23 | import lombok.experimental.SuperBuilder; 24 | 25 | @Data 26 | @SuperBuilder 27 | public class DeleteResp { 28 | private long deleteCnt; 29 | } 30 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/vector/response/GetResp.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.v2.service.vector.response; 21 | 22 | import lombok.Data; 23 | import lombok.experimental.SuperBuilder; 24 | 25 | import java.util.List; 26 | 27 | @Data 28 | @SuperBuilder 29 | public class GetResp { 30 | public List getResults; 31 | } 32 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/vector/response/InsertResp.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.v2.service.vector.response; 21 | 22 | import lombok.Builder; 23 | import lombok.Data; 24 | import lombok.experimental.SuperBuilder; 25 | 26 | import java.util.ArrayList; 27 | import java.util.List; 28 | 29 | @Data 30 | @SuperBuilder 31 | public class InsertResp { 32 | private long InsertCnt; 33 | @Builder.Default 34 | private List primaryKeys = new ArrayList<>(); 35 | } 36 | -------------------------------------------------------------------------------- /sdk-core/src/main/java/io/milvus/v2/service/vector/response/UpsertResp.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package io.milvus.v2.service.vector.response; 21 | 22 | import lombok.Data; 23 | import lombok.experimental.SuperBuilder; 24 | 25 | @Data 26 | @SuperBuilder 27 | public class UpsertResp { 28 | private long upsertCnt; 29 | } 30 | -------------------------------------------------------------------------------- /sdk-core/src/main/resources/log4j2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /sdk-core/src/main/resources/milvus-client.properties: -------------------------------------------------------------------------------- 1 | groupId=${project.groupId} 2 | artifactId=${project.artifactId} 3 | version=${project.version} 4 | -------------------------------------------------------------------------------- /tests/milvustest/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/**/target/ 5 | !**/src/test/**/target/ 6 | */.DS_Store 7 | logs/ 8 | allure-results/ 9 | ### STS ### 10 | .apt_generated 11 | .classpath 12 | .factorypath 13 | .project 14 | .settings 15 | .springBeans 16 | .sts4-cache 17 | 18 | ### IntelliJ IDEA ### 19 | .idea 20 | *.iws 21 | *.iml 22 | *.ipr 23 | 24 | ### NetBeans ### 25 | /nbproject/private/ 26 | /nbbuild/ 27 | /dist/ 28 | /nbdist/ 29 | /.nb-gradle/ 30 | build/ 31 | !**/src/main/**/build/ 32 | !**/src/test/**/build/ 33 | 34 | ### VS Code ### 35 | .vscode/ 36 | -------------------------------------------------------------------------------- /tests/milvustest/allure-results/environment.properties: -------------------------------------------------------------------------------- 1 | milvus.url=127.0.0.1 2 | milvus.version=2.4+ 3 | milvus-jdk-java.version=2.4+ -------------------------------------------------------------------------------- /tests/milvustest/pom.xslt: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /tests/milvustest/src/main/java/com/zilliz/milvustest/MilvustestApplication.java: -------------------------------------------------------------------------------- 1 | package com.zilliz.milvustest; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class MilvustestApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(MilvustestApplication.class, args); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /tests/milvustest/src/main/java/com/zilliz/milvustest/entity/FieldType.java: -------------------------------------------------------------------------------- 1 | package com.zilliz.milvustest.entity; 2 | 3 | public enum FieldType { 4 | PK_FIELD, 5 | INT_FIELD, 6 | STRING_FIELD, 7 | FLOAT_FIELD, 8 | BOOLEAN_FIELD, 9 | FLOAT_VECTOR_FIELD, 10 | BINARY_VECTOR_FIELD, 11 | LONG_FIELD, 12 | STRING_PK_FIELD; 13 | } 14 | -------------------------------------------------------------------------------- /tests/milvustest/src/main/java/com/zilliz/milvustest/entity/FileBody.java: -------------------------------------------------------------------------------- 1 | package com.zilliz.milvustest.entity; 2 | 3 | import lombok.Data; 4 | 5 | import java.util.List; 6 | 7 | @Data 8 | public class FileBody { 9 | private String fieldName; 10 | private FieldType fieldType; 11 | private List fieldValue; 12 | } 13 | -------------------------------------------------------------------------------- /tests/milvustest/src/main/java/com/zilliz/milvustest/entity/MilvusEntity.java: -------------------------------------------------------------------------------- 1 | package com.zilliz.milvustest.entity; 2 | 3 | import lombok.Data; 4 | 5 | @Data 6 | public class MilvusEntity { 7 | private String Collection; 8 | private String partition; 9 | private String alias; 10 | private String index; 11 | } 12 | -------------------------------------------------------------------------------- /tests/milvustest/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | #log 2 | logging.config=classpath:log4j2.xml 3 | -------------------------------------------------------------------------------- /tests/milvustest/src/main/resources/images/img.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/milvus-io/milvus-sdk-java/50a556042dce69b8bdfc908f61b4463ca0594ae4/tests/milvustest/src/main/resources/images/img.png -------------------------------------------------------------------------------- /tests/milvustest/src/test/java/com/zilliz/milvustest/MilvustestApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.zilliz.milvustest; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class MilvustestApplicationTests { 8 | 9 | @Test 10 | void contextLoads() {} 11 | } 12 | -------------------------------------------------------------------------------- /tests/milvustest/src/test/java/com/zilliz/milvustest/connection/CloseTest.java: -------------------------------------------------------------------------------- 1 | package com.zilliz.milvustest.connection; 2 | 3 | import com.zilliz.milvustest.common.BaseTest; 4 | import io.qameta.allure.Severity; 5 | import io.qameta.allure.SeverityLevel; 6 | import org.testng.annotations.Test; 7 | 8 | /** 9 | * @Author yongpeng.li 10 | * @Date 2022/7/11 14:14 11 | */ 12 | public class CloseTest extends BaseTest { 13 | @Test(description = "close connection",enabled = false,groups = {"Smoke"}) 14 | @Severity(SeverityLevel.BLOCKER) 15 | public void closeConnection(){ 16 | milvusClient.close(); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /tests/milvustest/src/test/java/com/zilliz/milvustest/credential/ListCredUsersTest.java: -------------------------------------------------------------------------------- 1 | package com.zilliz.milvustest.credential; 2 | 3 | import com.zilliz.milvustest.common.BaseTest; 4 | import com.zilliz.milvustest.common.CommonData; 5 | import io.milvus.grpc.ListCredUsersResponse; 6 | import io.milvus.param.R; 7 | import io.milvus.param.credential.ListCredUsersParam; 8 | import io.qameta.allure.Epic; 9 | import io.qameta.allure.Feature; 10 | import io.qameta.allure.Severity; 11 | import io.qameta.allure.SeverityLevel; 12 | import org.testng.Assert; 13 | import org.testng.annotations.Test; 14 | 15 | @Epic("Credential") 16 | @Feature("ListCredUser") 17 | public class ListCredUsersTest extends BaseTest { 18 | @Severity(SeverityLevel.BLOCKER) 19 | @Test(description = "List all user names",groups = {"Smoke"}) 20 | public void listCredUsersTest() { 21 | R listCredUsersResponseR = 22 | milvusClient.listCredUsers(ListCredUsersParam.newBuilder().build()); 23 | Assert.assertEquals(listCredUsersResponseR.getStatus().intValue(), 0); 24 | Assert.assertTrue(listCredUsersResponseR.getData().getUsernamesList().size() > 1); 25 | Assert.assertTrue( 26 | listCredUsersResponseR.getData().getUsernamesList().contains(CommonData.defaultUserName)); 27 | System.out.println(listCredUsersResponseR.getData()); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /tests/milvustest/src/test/java/resources/run.properties: -------------------------------------------------------------------------------- 1 | milvusHost=127.0.0.1 2 | milvusPort=19530 3 | ScenarioDesc=CI 4 | BuildId=1d 5 | SDKBranch=Master 6 | #enviroment 7 | milvusV=2.2.2 8 | milvusJdkJavaV=2.2.0 9 | #minio 10 | minioHost=http://10.102.6.207:9000 11 | accesskey=minioadmin 12 | secretkey=minioadmin 13 | #https://devops.apiserver.zilliz.cc:6443 14 | storageType=aws 15 | #s3:AWS S3, GCP GCS, Aliyun OSS, Tencent Cloud TOS 16 | storageBucket=vdc-test-us2 17 | storageAccessKey=ak 18 | storageSecretKey=sk 19 | storageRegion=us-west-2 20 | #azure 21 | azureContainerName=containername 22 | azureAccountName=accoutname 23 | azureAccountKey=keyvalue 24 | #zilliz cloud import 25 | milvusCloudHost=in01-4d253ae3cd33b40.aws-us-west-2.vectordb.zillizcloud.com 26 | milvusCloudPort=19541 27 | milvusCloudName=db_admin 28 | milvusCloudPassword=1234.com 29 | cloudEndpoint=https://controller.api.aws-us-west-2.zillizcloud.com 30 | apikey=apikey 31 | clusterId=in01-4d253ae3cd33b40 -------------------------------------------------------------------------------- /tests/milvustest/src/test/java/resources/scripts/install_milvus.sh: -------------------------------------------------------------------------------- 1 | 2 | release=${1:-"milvs-chaos"} 3 | ns=${2:-"chaos-testing"} 4 | bash uninstall_milvus.sh ${release} ${ns}|| true 5 | 6 | helm repo add milvus https://milvus-io.github.io/milvus-helm/ 7 | helm repo update 8 | helm install --wait --timeout 360s ${release} milvus/milvus -f ../cluster-values.yaml --set metrics.serviceMonitor.enabled=true -n=${ns} 9 | -------------------------------------------------------------------------------- /tests/milvustest/src/test/java/resources/scripts/install_milvus_cluster.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | 4 | release=${1:-"milvs-chaos"} 5 | ns=${2:-"chaos-testing"} 6 | bash uninstall_milvus.sh ${release} ${ns}|| true 7 | 8 | echo "insatll cluster" 9 | helm install --wait --debug --timeout 600s ${RELEASE_NAME:-$release} milvus/milvus \ 10 | --set image.all.repository=${REPOSITORY:-"milvusdb/milvus"} \ 11 | --set image.all.tag=${IMAGE_TAG:-"master-latest"} \ 12 | --set metrics.serviceMonitor.enabled=true \ 13 | -f ../cluster-values.yaml -n=${ns} -------------------------------------------------------------------------------- /tests/milvustest/src/test/java/resources/scripts/install_milvus_standalone.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | 4 | release=${1:-"milvs-chaos"} 5 | ns=${2:-"chaos-testing"} 6 | bash uninstall_milvus.sh ${release} ${ns}|| true 7 | echo "insatll standalone" 8 | helm install --wait --debug --timeout 600s ${RELEASE_NAME:-$release} milvus/milvus \ 9 | --set image.all.repository=${REPOSITORY:-"milvusdb/milvus"} \ 10 | --set image.all.tag=${IMAGE_TAG:-"master-latest"} \ 11 | --set metrics.serviceMonitor.enabled=true \ 12 | -f ../standalone-values.yaml -n=${ns} -------------------------------------------------------------------------------- /tests/milvustest/src/test/java/resources/scripts/modify_config.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | set -x 4 | 5 | 6 | echo "check os env" 7 | platform='Linux' 8 | unamestr=$(uname) 9 | if [[ "$unamestr" == 'Linux' ]]; then 10 | platform='Linux' 11 | elif [[ "$unamestr" == 'Darwin' ]]; then 12 | platform='Mac' 13 | fi 14 | echo "platform: $platform" 15 | 16 | if [ "$platform" == "Mac" ]; 17 | then 18 | sed -i "" "s/TESTS_CONFIG_LOCATION =.*/TESTS_CONFIG_LOCATION = \'chaos_objects\/${CHAOS_TYPE/-/_}\/'/g" constants.py 19 | sed -i "" "s/ALL_CHAOS_YAMLS =.*/ALL_CHAOS_YAMLS = \'chaos_${POD_NAME}_${CHAOS_TYPE/-/_}.yaml\'/g" constants.py 20 | sed -i "" "s/RELEASE_NAME =.*/RELEASE_NAME = \'${RELEASE_NAME}\'/g" constants.py 21 | else 22 | sed -i "s/TESTS_CONFIG_LOCATION =.*/TESTS_CONFIG_LOCATION = \'chaos_objects\/${CHAOS_TYPE/-/_}\/'/g" constants.py 23 | sed -i "s/ALL_CHAOS_YAMLS =.*/ALL_CHAOS_YAMLS = \'chaos_${POD_NAME}_${CHAOS_TYPE/-/_}.yaml\'/g" constants.py 24 | sed -i "s/RELEASE_NAME =.*/RELEASE_NAME = \'${RELEASE_NAME}\'/g" constants.py 25 | fi -------------------------------------------------------------------------------- /tests/milvustest/src/test/java/resources/scripts/uninstall_milvus.sh: -------------------------------------------------------------------------------- 1 | 2 | # Exit immediately for non zero status 3 | set -e 4 | release=${1:-"milvus-chaos"} 5 | ns=${2:-"chaos-testing"} 6 | helm uninstall ${release} -n=${ns} 7 | kubectl delete pvc -l release=${release} -n=${ns} 8 | kubectl delete pvc -l app.kubernetes.io/instance=${release} -n=${ns} 9 | -------------------------------------------------------------------------------- /tests/milvustest/src/test/java/resources/standalone-values.yaml: -------------------------------------------------------------------------------- 1 | cluster: 2 | enabled: false 3 | image: 4 | all: 5 | repository: milvusdb/milvus 6 | tag: master-latest 7 | pullPolicy: IfNotPresent 8 | 9 | kafka: 10 | enabled: false 11 | name: kafka 12 | replicaCount: 3 13 | defaultReplicationFactor: 2 14 | 15 | etcd: 16 | replicaCount: 1 17 | image: 18 | repository: milvusdb/etcd 19 | tag: 3.5.0-r7 20 | minio: 21 | mode: standalone 22 | pulsar: 23 | enabled: false -------------------------------------------------------------------------------- /tests/milvustest/src/test/java/resources/testcase/milvus-java-sdk-TestCase.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/milvus-io/milvus-sdk-java/50a556042dce69b8bdfc908f61b4463ca0594ae4/tests/milvustest/src/test/java/resources/testcase/milvus-java-sdk-TestCase.xlsx -------------------------------------------------------------------------------- /tests/milvustest/src/test/java/resources/tls/ca.srl: -------------------------------------------------------------------------------- 1 | 342790CE3BD09229C9C14810E2AB86D28A4700BF 2 | -------------------------------------------------------------------------------- /tests/milvustest/src/test/java/resources/tls/client.csr: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE REQUEST----- 2 | MIIC7jCCAdYCAQAwSTELMAkGA1UEBhMCQ04xEjAQBgNVBAoMCXJvbmV0aGluZzES 3 | MBAGA1UECwwJcm9uZXRoaW5nMRIwEAYDVQQDDAlsb2NhbGhvc3QwggEiMA0GCSqG 4 | SIb3DQEBAQUAA4IBDwAwggEKAoIBAQCwQ/qyS53J8XdpM26LcFGdtTMzjfzPoNtw 5 | nSdfqrMi2iMZeMwDPRkHoeHE9lyHYPssDbFuLNJPLibcBCfd5SeELLlyG3GDP+W0 6 | inUs3kE0voXbH4LmSOCKLnzw0GfblINWMB7aqgpHPtRTcdWHcPo+KJA66ZbD5cNI 7 | w77aBxcsDJa40GunzxVOKtGQopypjrj6mkpauVzT9DwhylYvMR+VL12pjozGCvST 8 | NSgJfP7DX2UwHTMEBbxiTNQ7F8w4X5d2xuS2HepLy0/+uWo1e7jDGAWN27Alr176 9 | 6n2os3WClL06U6mmlT7HE2TvunhiBNjWnWafENaeH9W5rmVNDCmLAgMBAAGgYDBe 10 | BgkqhkiG9w0BCQ4xUTBPMAkGA1UdEwQCMAAwCwYDVR0PBAQDAgXgMDUGA1UdEQQu 11 | MCyCCWxvY2FsaG9zdIIOKi5yb25ldGhpbmcuY26CDyoucm9uZXRoaW5nLmNvbTAN 12 | BgkqhkiG9w0BAQsFAAOCAQEAS+OhS9i+Cjy4VM+gXknoaOWHqI73eSq/ODzUe4M4 13 | 7lg314CPbWHTrSP0yw2NZ9s/Nw7l8It3DMaXgAioAXOTlcRnH0JOmWuj53nTHnHY 14 | DVgnP0JLIcOeAiGfCV9rU4FR/eegE/bpHa4K1zz1l1S+Pk8227SnhqtjXvSm+TZr 15 | LwvsxpuMRQcj0vKtatPMhI1KhucNAYh3Aps/Lx0sGB18UnL12gMp9s82LQ2urRtF 16 | WrVFVtMG9o+59fPNB7Lxf1efMCc3LUxR3AaYGUaZWqgFeXrFmKj+VTGCQFPEAQxn 17 | ZwSHi5NA0ikYfgb9LxHc7nbgehHUPv5ztIq/lMPSad6xtw== 18 | -----END CERTIFICATE REQUEST----- 19 | -------------------------------------------------------------------------------- /tests/milvustest/src/test/java/resources/tls/client.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE----- 2 | MIIDizCCAnOgAwIBAgIUNCeQzjvQkinJwUgQ4quG0opHAL8wDQYJKoZIhvcNAQEL 3 | BQAwYzELMAkGA1UEBhMCQ04xCzAJBgNVBAgMAkdaMQswCQYDVQQHDAJHWjESMBAG 4 | A1UECgwJcm9uZXRoaW5nMRIwEAYDVQQLDAlyb25ldGhpbmcxEjAQBgNVBAMMCWxv 5 | Y2FsaG9zdDAeFw0yMjA1MDEwODU3MzRaFw0zMjA0MjgwODU3MzRaMEkxCzAJBgNV 6 | BAYTAkNOMRIwEAYDVQQKDAlyb25ldGhpbmcxEjAQBgNVBAsMCXJvbmV0aGluZzES 7 | MBAGA1UEAwwJbG9jYWxob3N0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKC 8 | AQEAsEP6skudyfF3aTNui3BRnbUzM438z6DbcJ0nX6qzItojGXjMAz0ZB6HhxPZc 9 | h2D7LA2xbizSTy4m3AQn3eUnhCy5chtxgz/ltIp1LN5BNL6F2x+C5kjgii588NBn 10 | 25SDVjAe2qoKRz7UU3HVh3D6PiiQOumWw+XDSMO+2gcXLAyWuNBrp88VTirRkKKc 11 | qY64+ppKWrlc0/Q8IcpWLzEflS9dqY6Mxgr0kzUoCXz+w19lMB0zBAW8YkzUOxfM 12 | OF+Xdsbkth3qS8tP/rlqNXu4wxgFjduwJa9e+up9qLN1gpS9OlOpppU+xxNk77p4 13 | YgTY1p1mnxDWnh/Vua5lTQwpiwIDAQABo1EwTzAJBgNVHRMEAjAAMAsGA1UdDwQE 14 | AwIF4DA1BgNVHREELjAsgglsb2NhbGhvc3SCDioucm9uZXRoaW5nLmNugg8qLnJv 15 | bmV0aGluZy5jb20wDQYJKoZIhvcNAQELBQADggEBAHBmcrQBtOcY776CHfRnHkWG 16 | 2JX595eY9cTEi+xB3n3q6Uo9GkGpGkg0T9U67dj68aB5ETm9+F8augS/5e2vbyJ/ 17 | GfwtwbmJFkM4SVrSYpHLYQc72j6kG4oLauz8C3IZxirX4nAxGDEnHbpLrS2HIZ+l 18 | /G5YQeaYStxmleOD4CwrOOIUdRATMTaQgRu6pUJhuhC9Fm1v+ueg6b24RB9V+jvU 19 | FOFiR29PPRyyAm3UBEv4yyVSoW6RgD+5QpD/HTGbXumT1xASKDeLY7HBVU9FXxN+ 20 | wojcbIyFkXNo3C+5P7zN7S1zJV6Fp4TeOJpIeQn8ARf7XFQYREVesf9QC7yHxPk= 21 | -----END CERTIFICATE----- 22 | -------------------------------------------------------------------------------- /tests/milvustest/src/test/java/resources/tls/gen.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | # your variables 3 | Country="CN" 4 | State="Shanghai" 5 | Location="Shanghai" 6 | Organization="milvus" 7 | OrganizationUnit="milvus" 8 | CommonName="localhost" 9 | 10 | echo "generate ca.key" 11 | openssl genpkey -algorithm RSA -out ca.key 12 | 13 | echo "generate ca.pem" 14 | openssl req -new -x509 -key ca.key -out ca.pem -days 3650 -subj "/C=$Country/ST=$State/L=$Location/O=$Organization/OU=$OrganizationUnit/CN=$CommonName" 15 | 16 | echo "generate server SAN certificate" 17 | openssl genpkey -algorithm RSA -out server.key 18 | openssl req -new -nodes -key server.key -out server.csr -days 3650 -subj "/C=$Country/O=$Organization/OU=$OrganizationUnit/CN=$CommonName" -config ./openssl.cnf -extensions v3_req 19 | openssl x509 -req -days 3650 -in server.csr -out server.pem -CA ca.pem -CAkey ca.key -CAcreateserial -extfile ./openssl.cnf -extensions v3_req 20 | 21 | echo "generate client SAN certificate" 22 | openssl genpkey -algorithm RSA -out client.key 23 | openssl req -new -nodes -key client.key -out client.csr -days 3650 -subj "/C=$Country/O=$Organization/OU=$OrganizationUnit/CN=$CommonName" -config ./openssl.cnf -extensions v3_req 24 | openssl x509 -req -days 3650 -in client.csr -out client.pem -CA ca.pem -CAkey ca.key -CAcreateserial -extfile ./openssl.cnf -extensions v3_req 25 | -------------------------------------------------------------------------------- /tests/milvustest/src/test/java/resources/tls/server.csr: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE REQUEST----- 2 | MIIC7jCCAdYCAQAwSTELMAkGA1UEBhMCQ04xEjAQBgNVBAoMCXJvbmV0aGluZzES 3 | MBAGA1UECwwJcm9uZXRoaW5nMRIwEAYDVQQDDAlsb2NhbGhvc3QwggEiMA0GCSqG 4 | SIb3DQEBAQUAA4IBDwAwggEKAoIBAQCyI7d/ni5FxZxdMclJtjMIL2Kjx24XTHGc 5 | cgSR7uyZg4AWY0OweuL/3jTlQ23Nylqcx9pJyTVx/84zmPMdkPIO8rdaxKjq4e3G 6 | fDdPx/wXA2h6dFkY9Q/Hv61icY0BJyc+Qw6J1dl/ZgoTCf9VAP3/eeay/4JsD5ho 7 | ctyq8ZeftqoNvpSPolrwTo7uP0TStviM0LSTvomXz7dGQdlObjl82pfJSZcq1YzL 8 | U6BjE0jT1jTKjgaBMTwqpO2NP6+6D+dC/dHBY8/3fJz0IcdHlmifXSPQI1n8LJvZ 9 | mLRIGdrKiNbya0vwyTK9+kMWkmAo8LmbuSCC6FQ3X3eURQ81UuhjAgMBAAGgYDBe 10 | BgkqhkiG9w0BCQ4xUTBPMAkGA1UdEwQCMAAwCwYDVR0PBAQDAgXgMDUGA1UdEQQu 11 | MCyCCWxvY2FsaG9zdIIOKi5yb25ldGhpbmcuY26CDyoucm9uZXRoaW5nLmNvbTAN 12 | BgkqhkiG9w0BAQsFAAOCAQEAVKT51H3hzO5PRvHxek2QrvfetuAowCRxbh4Zg0gJ 13 | fxDVrZshabNmycEQ/GZX+tT6KMgB9es2TfM6lk8JXkhRcaxnE9FT5aIBcQDqFoKo 14 | nOjdG62wG5vRomK/V2xLBJzjRQYcWkm+KPuOxaEZEFTrhEjRFi1X7MlqXwRyZueq 15 | YnOvisR2v4dbShbV5qd+jBgtcHVlsSApSQLYoplL/cje85a9DhkaLityYH1PCRhs 16 | Gx5LToV6Photjk3ujmJBaxIHlV1nVQmTfejka5cwh66Jm8JrW7oytvwFxosKFEmP 17 | frd+UIbTf9iIRvyUHdJB2bEDHv8g32AmlDsUspEXQ0L9hA== 18 | -----END CERTIFICATE REQUEST----- 19 | -------------------------------------------------------------------------------- /tests/milvustest/src/test/java/resources/tls/server.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE----- 2 | MIIDizCCAnOgAwIBAgIUNCeQzjvQkinJwUgQ4quG0opHAL4wDQYJKoZIhvcNAQEL 3 | BQAwYzELMAkGA1UEBhMCQ04xCzAJBgNVBAgMAkdaMQswCQYDVQQHDAJHWjESMBAG 4 | A1UECgwJcm9uZXRoaW5nMRIwEAYDVQQLDAlyb25ldGhpbmcxEjAQBgNVBAMMCWxv 5 | Y2FsaG9zdDAeFw0yMjA1MDEwODU3MzRaFw0zMjA0MjgwODU3MzRaMEkxCzAJBgNV 6 | BAYTAkNOMRIwEAYDVQQKDAlyb25ldGhpbmcxEjAQBgNVBAsMCXJvbmV0aGluZzES 7 | MBAGA1UEAwwJbG9jYWxob3N0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKC 8 | AQEAsiO3f54uRcWcXTHJSbYzCC9io8duF0xxnHIEke7smYOAFmNDsHri/9405UNt 9 | zcpanMfaSck1cf/OM5jzHZDyDvK3WsSo6uHtxnw3T8f8FwNoenRZGPUPx7+tYnGN 10 | AScnPkMOidXZf2YKEwn/VQD9/3nmsv+CbA+YaHLcqvGXn7aqDb6Uj6Ja8E6O7j9E 11 | 0rb4jNC0k76Jl8+3RkHZTm45fNqXyUmXKtWMy1OgYxNI09Y0yo4GgTE8KqTtjT+v 12 | ug/nQv3RwWPP93yc9CHHR5Zon10j0CNZ/Cyb2Zi0SBnayojW8mtL8MkyvfpDFpJg 13 | KPC5m7kgguhUN193lEUPNVLoYwIDAQABo1EwTzAJBgNVHRMEAjAAMAsGA1UdDwQE 14 | AwIF4DA1BgNVHREELjAsgglsb2NhbGhvc3SCDioucm9uZXRoaW5nLmNugg8qLnJv 15 | bmV0aGluZy5jb20wDQYJKoZIhvcNAQELBQADggEBAG18ss3sNJjLXMv9Wm+dBvMQ 16 | ekGFunZ3unN641RxGpUWjbUj963woXx8eiL6lJFKiU52aXrFR4+6BZ0tbRsLz4e4 17 | pmCdOz4mClmNSk6mSSz7W8tnhz+h1jqUzp5whAh1Gj5QdauTzgcLFxBw3PWTt8tp 18 | 4xGIuZwAWyB9MHXMkBtsdiP/oUEoVXYC2SA+o7dWr0d9w0K6BA00TZR+OHscfpGS 19 | k0aD1Cu8fxiccnY7jcBMz/2vVg3LzoeUqL7TZbpan/jzO5FAMVoi21UFwEQbBYMb 20 | yUbPei060JQ/u7H6CR9OCCHKsDvtpIfgpeAmjcuFSCF+Q3cHTAstHrlZWaOCNO4= 21 | -----END CERTIFICATE----- 22 | -------------------------------------------------------------------------------- /tests/milvustest/testng.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /tests/milvustest/testngConcurrent.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /tests/milvustestv2/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | .gradle 3 | build/ 4 | !gradle/wrapper/gradle-wrapper.jar 5 | !**/src/main/**/build/ 6 | !**/src/test/**/build/ 7 | 8 | ### STS ### 9 | .apt_generated 10 | .classpath 11 | .factorypath 12 | .project 13 | .settings 14 | .springBeans 15 | .sts4-cache 16 | bin/ 17 | !**/src/main/**/bin/ 18 | !**/src/test/**/bin/ 19 | 20 | ### IntelliJ IDEA ### 21 | .idea 22 | *.iws 23 | *.iml 24 | *.ipr 25 | out/ 26 | !**/src/main/**/out/ 27 | !**/src/test/**/out/ 28 | 29 | ### NetBeans ### 30 | /nbproject/private/ 31 | /nbbuild/ 32 | /dist/ 33 | /nbdist/ 34 | /.nb-gradle/ 35 | 36 | ### VS Code ### 37 | .vscode/ 38 | -------------------------------------------------------------------------------- /tests/milvustestv2/src/main/java/com/zilliz/milvustestv2/Milvustestv2Application.java: -------------------------------------------------------------------------------- 1 | package com.zilliz.milvustestv2; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class Milvustestv2Application { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(Milvustestv2Application.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /tests/milvustestv2/src/main/java/com/zilliz/milvustestv2/config/ConnectInfoConfig.java: -------------------------------------------------------------------------------- 1 | package com.zilliz.milvustestv2.config; 2 | 3 | import lombok.Data; 4 | import org.springframework.boot.context.properties.ConfigurationProperties; 5 | import org.springframework.stereotype.Component; 6 | 7 | /** 8 | * @Author yongpeng.li 9 | * @Date 2024/2/23 10:41 10 | */ 11 | 12 | @Data 13 | @Component 14 | @ConfigurationProperties(prefix = "connectinfo") 15 | public class ConnectInfoConfig { 16 | String uri; 17 | } 18 | -------------------------------------------------------------------------------- /tests/milvustestv2/src/main/java/com/zilliz/milvustestv2/params/FieldParam.java: -------------------------------------------------------------------------------- 1 | package com.zilliz.milvustestv2.params; 2 | 3 | import io.milvus.v2.common.DataType; 4 | import io.milvus.v2.common.IndexParam; 5 | import lombok.Builder; 6 | import lombok.Data; 7 | 8 | @Data 9 | @Builder 10 | public class FieldParam { 11 | String fieldName; 12 | DataType dataType; 13 | int dim; 14 | int maxLength; 15 | int maxCapacity; 16 | DataType elementType; 17 | 18 | IndexParam.IndexType indextype; 19 | } 20 | -------------------------------------------------------------------------------- /tests/milvustestv2/src/main/java/com/zilliz/milvustestv2/utils/JsonObjectUtil.java: -------------------------------------------------------------------------------- 1 | package com.zilliz.milvustestv2.utils; 2 | 3 | import com.google.gson.Gson; 4 | import com.google.gson.JsonObject; 5 | import com.google.gson.JsonParser; 6 | 7 | import java.util.HashMap; 8 | import java.util.Map; 9 | 10 | public class JsonObjectUtil { 11 | 12 | public static JsonObject jsonMerge(JsonObject jsonObject1,JsonObject jsonObject2){ 13 | Gson gson = new Gson(); 14 | // 将 JsonObject 转换为 Map 15 | Map map1 = gson.fromJson(jsonObject1, HashMap.class); 16 | Map map2 = gson.fromJson(jsonObject2, HashMap.class); 17 | 18 | // 合并两个 Map 19 | Map mergedMap = new HashMap<>(map1); 20 | mergedMap.putAll(map2); 21 | 22 | // 将合并后的 Map 转换为 JsonObject 23 | JsonObject mergedJsonObject = JsonParser.parseString(gson.toJson(mergedMap)).getAsJsonObject(); 24 | return mergedJsonObject; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /tests/milvustestv2/src/test/java/com/zilliz/milvustestv2/Milvustestv2ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.zilliz.milvustestv2; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class Milvustestv2ApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /tests/milvustestv2/src/test/java/com/zilliz/milvustestv2/alias/DescribeAliasTest.java: -------------------------------------------------------------------------------- 1 | package com.zilliz.milvustestv2.alias; 2 | 3 | import com.zilliz.milvustestv2.common.BaseTest; 4 | import com.zilliz.milvustestv2.common.CommonData; 5 | import io.milvus.v2.service.utility.request.DescribeAliasReq; 6 | import io.milvus.v2.service.utility.response.DescribeAliasResp; 7 | import org.testng.Assert; 8 | import org.testng.annotations.Test; 9 | 10 | /** 11 | * @Author yongpeng.li 12 | * @Date 2024/2/26 09:24 13 | */ 14 | public class DescribeAliasTest extends BaseTest { 15 | 16 | 17 | @Test(description = "Describe alias",groups = {"Smoke"}) 18 | public void describeAlias(){ 19 | DescribeAliasResp describeAliasResp = milvusClientV2.describeAlias(DescribeAliasReq.builder().alias(CommonData.alias).build()); 20 | Assert.assertEquals(describeAliasResp.getCollectionName(),CommonData.defaultFloatVectorCollection); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /tests/milvustestv2/src/test/java/com/zilliz/milvustestv2/alias/ListAliasTest.java: -------------------------------------------------------------------------------- 1 | package com.zilliz.milvustestv2.alias; 2 | 3 | import com.zilliz.milvustestv2.common.BaseTest; 4 | import com.zilliz.milvustestv2.common.CommonData; 5 | import io.milvus.v2.service.utility.request.ListAliasesReq; 6 | import io.milvus.v2.service.utility.response.ListAliasResp; 7 | import org.testng.Assert; 8 | import org.testng.annotations.Test; 9 | 10 | /** 11 | * @Author yongpeng.li 12 | * @Date 2024/2/26 09:24 13 | */ 14 | public class ListAliasTest extends BaseTest { 15 | 16 | @Test(description = "List alias",groups = {"Smoke"}) 17 | public void listAlias(){ 18 | ListAliasResp listAliasResp = milvusClientV2.listAliases(ListAliasesReq.builder().collectionName(CommonData.defaultFloatVectorCollection).build()); 19 | Assert.assertTrue(listAliasResp.getAlias().contains(CommonData.alias)); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /tests/milvustestv2/src/test/java/com/zilliz/milvustestv2/collection/HasCollectionTest.java: -------------------------------------------------------------------------------- 1 | package com.zilliz.milvustestv2.collection; 2 | 3 | import com.zilliz.milvustestv2.common.BaseTest; 4 | import com.zilliz.milvustestv2.common.CommonData; 5 | import io.milvus.v2.service.collection.request.HasCollectionReq; 6 | import org.testng.Assert; 7 | import org.testng.annotations.Test; 8 | 9 | /** 10 | * @Author yongpeng.li 11 | * @Date 2024/2/19 14:22 12 | */ 13 | public class HasCollectionTest extends BaseTest { 14 | @Test(description = "Has collection", groups = {"Smoke"}) 15 | public void hasCollection(){ 16 | Boolean aBoolean = milvusClientV2.hasCollection(HasCollectionReq.builder() 17 | .collectionName(CommonData.defaultFloatVectorCollection) 18 | .build()); 19 | Assert.assertTrue(aBoolean); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /tests/milvustestv2/src/test/java/com/zilliz/milvustestv2/collection/ListCollectionsTest.java: -------------------------------------------------------------------------------- 1 | package com.zilliz.milvustestv2.collection; 2 | 3 | import com.zilliz.milvustestv2.common.BaseTest; 4 | import com.zilliz.milvustestv2.common.CommonData; 5 | import io.milvus.v2.service.collection.response.ListCollectionsResp; 6 | import org.testng.Assert; 7 | import org.testng.annotations.Test; 8 | 9 | /** 10 | * @Author yongpeng.li 11 | * @Date 2024/2/19 14:22 12 | */ 13 | public class ListCollectionsTest extends BaseTest { 14 | @Test(description = "List collections", groups = {"Smoke"}) 15 | public void listCollection(){ 16 | ListCollectionsResp listCollectionsResp = milvusClientV2.listCollections(); 17 | Assert.assertTrue(listCollectionsResp.getCollectionNames().contains(CommonData.defaultFloatVectorCollection)); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /tests/milvustestv2/src/test/java/com/zilliz/milvustestv2/database/ListDatabaseTest.java: -------------------------------------------------------------------------------- 1 | package com.zilliz.milvustestv2.database; 2 | 3 | import com.zilliz.milvustestv2.common.BaseTest; 4 | import io.milvus.v2.service.database.response.ListDatabasesResp; 5 | import org.testng.Assert; 6 | import org.testng.annotations.Test; 7 | 8 | public class ListDatabaseTest extends BaseTest { 9 | @Test(description = "list database", groups = {"Smoke"}) 10 | public void listDatabase() { 11 | ListDatabasesResp listDatabasesResp = milvusClientV2.listDatabases(); 12 | Assert.assertTrue(listDatabasesResp.getDatabaseNames().contains("default")); 13 | } 14 | 15 | 16 | } 17 | -------------------------------------------------------------------------------- /tests/milvustestv2/src/test/java/com/zilliz/milvustestv2/others/GetServerVersionTest.java: -------------------------------------------------------------------------------- 1 | package com.zilliz.milvustestv2.others; 2 | 3 | import com.zilliz.milvustestv2.common.BaseTest; 4 | import org.testng.Assert; 5 | import org.testng.annotations.Test; 6 | 7 | public class GetServerVersionTest extends BaseTest { 8 | 9 | @Test(description = "get server version", groups = {"Smoke"}) 10 | public void getServerVersion() { 11 | String serverVersion = milvusClientV2.getServerVersion(); 12 | Assert.assertTrue(serverVersion.contains("v")); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /tests/milvustestv2/src/test/java/com/zilliz/milvustestv2/rbac/CreateRoleTest.java: -------------------------------------------------------------------------------- 1 | package com.zilliz.milvustestv2.rbac; 2 | 3 | import com.zilliz.milvustestv2.common.BaseTest; 4 | import com.zilliz.milvustestv2.common.CommonData; 5 | import io.milvus.v2.service.rbac.request.*; 6 | import io.milvus.v2.service.rbac.response.DescribeRoleResp; 7 | import io.milvus.v2.service.rbac.response.DescribeUserResp; 8 | import org.testng.Assert; 9 | import org.testng.annotations.AfterClass; 10 | import org.testng.annotations.BeforeClass; 11 | import org.testng.annotations.Test; 12 | 13 | import java.util.List; 14 | 15 | /** 16 | * @Author yongpeng.li 17 | * @Date 2024/2/28 10:55 18 | */ 19 | public class CreateRoleTest extends BaseTest { 20 | 21 | @AfterClass(alwaysRun = true) 22 | public void deleteTestData(){ 23 | milvusClientV2.dropRole(DropRoleReq.builder().roleName(CommonData.roleName).build()); 24 | } 25 | 26 | @Test(description = "create role",groups = {"Smoke"}) 27 | public void createRole(){ 28 | milvusClientV2.createRole(CreateRoleReq.builder().roleName(CommonData.roleName).build()); 29 | List strings = milvusClientV2.listRoles(); 30 | Assert.assertTrue(strings.contains(CommonData.roleName)); 31 | } 32 | 33 | } 34 | -------------------------------------------------------------------------------- /tests/milvustestv2/src/test/java/com/zilliz/milvustestv2/rbac/DescribeUserTest.java: -------------------------------------------------------------------------------- 1 | package com.zilliz.milvustestv2.rbac; 2 | 3 | import com.zilliz.milvustestv2.common.BaseTest; 4 | import com.zilliz.milvustestv2.common.CommonData; 5 | import io.milvus.v2.service.rbac.request.DescribeUserReq; 6 | import io.milvus.v2.service.rbac.response.DescribeUserResp; 7 | import org.testng.Assert; 8 | import org.testng.annotations.Test; 9 | 10 | import java.util.List; 11 | 12 | /** 13 | * @Author yongpeng.li 14 | * @Date 2024/2/26 16:11 15 | */ 16 | public class DescribeUserTest extends BaseTest { 17 | 18 | @Test(description = "Describe user", groups = {"Smoke"}) 19 | public void describeUserTest() { 20 | DescribeUserResp describeUserResp = milvusClientV2.describeUser(DescribeUserReq.builder().userName(CommonData.rootUser).build()); 21 | System.out.println(describeUserResp); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /tests/milvustestv2/src/test/java/com/zilliz/milvustestv2/rbac/DropRoleTest.java: -------------------------------------------------------------------------------- 1 | package com.zilliz.milvustestv2.rbac; 2 | 3 | import com.zilliz.milvustestv2.common.BaseTest; 4 | import com.zilliz.milvustestv2.common.CommonData; 5 | import io.milvus.v2.service.rbac.request.CreateRoleReq; 6 | import io.milvus.v2.service.rbac.request.CreateUserReq; 7 | import io.milvus.v2.service.rbac.request.DropRoleReq; 8 | import io.milvus.v2.service.rbac.request.DropUserReq; 9 | import org.testng.Assert; 10 | import org.testng.annotations.AfterClass; 11 | import org.testng.annotations.BeforeClass; 12 | import org.testng.annotations.Test; 13 | 14 | import java.util.List; 15 | 16 | /** 17 | * @Author yongpeng.li 18 | * @Date 2024/2/28 14:19 19 | */ 20 | public class DropRoleTest extends BaseTest { 21 | @BeforeClass(alwaysRun = true) 22 | public void initTestData(){ 23 | milvusClientV2.createRole(CreateRoleReq.builder().roleName(CommonData.roleName).build()); 24 | } 25 | 26 | 27 | @Test(description = "create role",groups = {"Smoke"}) 28 | public void createRole(){ 29 | milvusClientV2.dropRole(DropRoleReq.builder().roleName(CommonData.roleName).build()); 30 | List strings = milvusClientV2.listRoles(); 31 | Assert.assertFalse(strings.contains(CommonData.roleName)); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /tests/milvustestv2/src/test/java/com/zilliz/milvustestv2/rbac/DropUserTest.java: -------------------------------------------------------------------------------- 1 | package com.zilliz.milvustestv2.rbac; 2 | 3 | import com.zilliz.milvustestv2.common.BaseTest; 4 | import com.zilliz.milvustestv2.common.CommonData; 5 | import io.milvus.v2.service.rbac.request.CreateUserReq; 6 | import io.milvus.v2.service.rbac.request.DropUserReq; 7 | import org.testng.annotations.AfterClass; 8 | import org.testng.annotations.BeforeClass; 9 | import org.testng.annotations.Test; 10 | 11 | /** 12 | * @Author yongpeng.li 13 | * @Date 2024/2/26 18:27 14 | */ 15 | public class DropUserTest extends BaseTest { 16 | 17 | @BeforeClass(alwaysRun = true) 18 | public void createUser(){ 19 | milvusClientV2.createUser(CreateUserReq.builder().userName(CommonData.userName).password(CommonData.password).build()); 20 | } 21 | 22 | @Test(description = "drop user",groups = {"Smoke"}) 23 | public void deleteUser(){ 24 | milvusClientV2.dropUser(DropUserReq.builder().userName(CommonData.userName).build()); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /tests/milvustestv2/src/test/java/com/zilliz/milvustestv2/rbac/ListRolesTest.java: -------------------------------------------------------------------------------- 1 | package com.zilliz.milvustestv2.rbac; 2 | 3 | import com.zilliz.milvustestv2.common.BaseTest; 4 | import com.zilliz.milvustestv2.common.CommonData; 5 | import io.milvus.v2.service.rbac.request.CreateRoleReq; 6 | import io.milvus.v2.service.rbac.request.DropRoleReq; 7 | import org.testng.Assert; 8 | import org.testng.annotations.AfterClass; 9 | import org.testng.annotations.BeforeClass; 10 | import org.testng.annotations.Test; 11 | 12 | import java.util.List; 13 | 14 | /** 15 | * @Author yongpeng.li 16 | * @Date 2024/2/28 14:26 17 | */ 18 | public class ListRolesTest extends BaseTest { 19 | @BeforeClass(alwaysRun = true) 20 | public void initTestData(){ 21 | milvusClientV2.createRole(CreateRoleReq.builder().roleName(CommonData.roleName).build()); 22 | } 23 | 24 | @AfterClass(alwaysRun = true) 25 | public void deleteTestData(){ 26 | milvusClientV2.dropRole(DropRoleReq.builder().roleName(CommonData.roleName).build()); 27 | } 28 | 29 | @Test(description = "list roles",groups = {"Smoke"}) 30 | public void listRolesTest(){ 31 | List strings = milvusClientV2.listRoles(); 32 | Assert.assertTrue(strings.contains(CommonData.roleName)); 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /tests/milvustestv2/src/test/java/com/zilliz/milvustestv2/rbac/ListUsersTest.java: -------------------------------------------------------------------------------- 1 | package com.zilliz.milvustestv2.rbac; 2 | 3 | import com.zilliz.milvustestv2.common.BaseTest; 4 | import com.zilliz.milvustestv2.common.CommonData; 5 | import org.testng.Assert; 6 | import org.testng.annotations.Test; 7 | 8 | import java.util.List; 9 | 10 | /** 11 | * @Author yongpeng.li 12 | * @Date 2024/2/26 16:08 13 | */ 14 | public class ListUsersTest extends BaseTest { 15 | @Test(description = "list users", groups = {"Smoke"}) 16 | public void listUserTest() { 17 | List strings = milvusClientV2.listUsers(); 18 | Assert.assertTrue(strings.contains(CommonData.rootUser)); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /tests/milvustestv2/src/test/java/resources/scripts/install_milvus.sh: -------------------------------------------------------------------------------- 1 | 2 | release=${1:-"milvs-chaos"} 3 | ns=${2:-"chaos-testing"} 4 | bash uninstall_milvus.sh ${release} ${ns}|| true 5 | 6 | helm repo add milvus https://milvus-io.github.io/milvus-helm/ 7 | helm repo update 8 | helm install --wait --timeout 360s ${release} milvus/milvus -f ../cluster-values.yaml --set metrics.serviceMonitor.enabled=true -n=${ns} 9 | -------------------------------------------------------------------------------- /tests/milvustestv2/src/test/java/resources/scripts/install_milvus_cluster.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | 4 | release=${1:-"milvs-chaos"} 5 | ns=${2:-"chaos-testing"} 6 | bash uninstall_milvus.sh ${release} ${ns}|| true 7 | 8 | echo "insatll cluster" 9 | helm install --wait --debug --timeout 600s ${RELEASE_NAME:-$release} milvus/milvus \ 10 | --set image.all.repository=${REPOSITORY:-"milvusdb/milvus"} \ 11 | --set image.all.tag=${IMAGE_TAG:-"master-latest"} \ 12 | --set metrics.serviceMonitor.enabled=true \ 13 | -f ../cluster-values.yaml -n=${ns} -------------------------------------------------------------------------------- /tests/milvustestv2/src/test/java/resources/scripts/install_milvus_standalone.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | 4 | release=${1:-"milvs-chaos"} 5 | ns=${2:-"chaos-testing"} 6 | bash uninstall_milvus.sh ${release} ${ns}|| true 7 | echo "insatll standalone" 8 | helm install --wait --debug --timeout 600s ${RELEASE_NAME:-$release} milvus/milvus \ 9 | --set image.all.repository=${REPOSITORY:-"milvusdb/milvus"} \ 10 | --set image.all.tag=${IMAGE_TAG:-"master-latest"} \ 11 | --set metrics.serviceMonitor.enabled=true \ 12 | -f ../standalone-values.yaml -n=${ns} -------------------------------------------------------------------------------- /tests/milvustestv2/src/test/java/resources/scripts/modify_config.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | set -x 4 | 5 | 6 | echo "check os env" 7 | platform='Linux' 8 | unamestr=$(uname) 9 | if [[ "$unamestr" == 'Linux' ]]; then 10 | platform='Linux' 11 | elif [[ "$unamestr" == 'Darwin' ]]; then 12 | platform='Mac' 13 | fi 14 | echo "platform: $platform" 15 | 16 | if [ "$platform" == "Mac" ]; 17 | then 18 | sed -i "" "s/TESTS_CONFIG_LOCATION =.*/TESTS_CONFIG_LOCATION = \'chaos_objects\/${CHAOS_TYPE/-/_}\/'/g" constants.py 19 | sed -i "" "s/ALL_CHAOS_YAMLS =.*/ALL_CHAOS_YAMLS = \'chaos_${POD_NAME}_${CHAOS_TYPE/-/_}.yaml\'/g" constants.py 20 | sed -i "" "s/RELEASE_NAME =.*/RELEASE_NAME = \'${RELEASE_NAME}\'/g" constants.py 21 | else 22 | sed -i "s/TESTS_CONFIG_LOCATION =.*/TESTS_CONFIG_LOCATION = \'chaos_objects\/${CHAOS_TYPE/-/_}\/'/g" constants.py 23 | sed -i "s/ALL_CHAOS_YAMLS =.*/ALL_CHAOS_YAMLS = \'chaos_${POD_NAME}_${CHAOS_TYPE/-/_}.yaml\'/g" constants.py 24 | sed -i "s/RELEASE_NAME =.*/RELEASE_NAME = \'${RELEASE_NAME}\'/g" constants.py 25 | fi -------------------------------------------------------------------------------- /tests/milvustestv2/src/test/java/resources/scripts/uninstall_milvus.sh: -------------------------------------------------------------------------------- 1 | 2 | # Exit immediately for non zero status 3 | set -e 4 | release=${1:-"milvus-chaos"} 5 | ns=${2:-"chaos-testing"} 6 | helm uninstall ${release} -n=${ns} 7 | kubectl delete pvc -l release=${release} -n=${ns} 8 | kubectl delete pvc -l app.kubernetes.io/instance=${release} -n=${ns} 9 | -------------------------------------------------------------------------------- /tests/milvustestv2/src/test/java/resources/standalone-values.yaml: -------------------------------------------------------------------------------- 1 | cluster: 2 | enabled: false 3 | image: 4 | all: 5 | repository: milvusdb/milvus 6 | tag: master-latest 7 | pullPolicy: IfNotPresent 8 | 9 | kafka: 10 | enabled: false 11 | name: kafka 12 | replicaCount: 3 13 | defaultReplicationFactor: 2 14 | 15 | etcd: 16 | replicaCount: 1 17 | image: 18 | repository: milvusdb/etcd 19 | tag: 3.5.0-r7 20 | minio: 21 | mode: standalone 22 | pulsar: 23 | enabled: false -------------------------------------------------------------------------------- /tests/milvustestv2/src/test/resources/run.properties: -------------------------------------------------------------------------------- 1 | uri=http://127.0.0.1:19530 2 | minio=http://127.0.0.1:9000 3 | 4 | -------------------------------------------------------------------------------- /tests/milvustestv2/testng.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | --------------------------------------------------------------------------------