describeDatabase()
This operation gets detailed information about a specific database.
public DescribeDatabaseResp describeDatabase(DescribeDatabaseReq request)
Request Syntax
describeDatabase(DescribeDatabaseReq.builder()
.databaseName(String databaseName)
.build()
)
BUILDER METHODS:
databaseName(String databaseName)
The name of the database.
RETURN TYPE:
DescribeDatabaseResp
RETURNS:
A DescribeDatabaseResp object that contains detailed information about the specified database.
EXCEPTIONS:
MilvusClientExceptions
This exception will be raised when any error occurs during this operation.
Example
DescribeDatabaseResp descResp = client.describeDatabase(DescribeDatabaseReq.builder()
.databaseName(databaseName)
.build());
Map<String,String> propertiesResp = descResp.getProperties();
System.out.println(propertiesResp.get(Constant.DATABASE_REPLICA_NUMBER));