Package io.milvus.response
Class ShowCollResponseWrapper
- java.lang.Object
-
- io.milvus.response.ShowCollResponseWrapper
-
public class ShowCollResponseWrapper extends Object
Util class to wrap response ofshowCollectionsinterface.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classShowCollResponseWrapper.CollectionInfoInternal-use class to wrap response ofshowCollectionsinterface.
-
Constructor Summary
Constructors Constructor Description ShowCollResponseWrapper(@NonNull ShowCollectionsResponse response)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ShowCollResponseWrapper.CollectionInfogetCollectionInfoByName(@NonNull String collectionName)Get information of one collection by name.List<String>getCollectionNames()List<ShowCollResponseWrapper.CollectionInfo>getCollectionsInfo()Get information of the collections.StringtoString()Construct aStringbyShowCollResponseWrapperinstance.
-
-
-
Constructor Detail
-
ShowCollResponseWrapper
public ShowCollResponseWrapper(@NonNull @NonNull ShowCollectionsResponse response)
-
-
Method Detail
-
getCollectionsInfo
public List<ShowCollResponseWrapper.CollectionInfo> getCollectionsInfo() throws IllegalResponseException
Get information of the collections.- Returns:
- List of CollectionInfo, information array of the collections
- Throws:
IllegalResponseException
-
getCollectionInfoByName
public ShowCollResponseWrapper.CollectionInfo getCollectionInfoByName(@NonNull @NonNull String collectionName)
Get information of one collection by name.- Parameters:
collectionName- collection name to get information- Returns:
ShowCollResponseWrapper.CollectionInfoinformation of the collection
-
toString
public String toString()
Construct aStringbyShowCollResponseWrapperinstance.
-
-