Package io.milvus.response
Class ShowCollResponseWrapper
- java.lang.Object
-
- io.milvus.response.ShowCollResponseWrapper
-
public class ShowCollResponseWrapper extends java.lang.Object
Util class to wrap response ofshowCollections
interface.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ShowCollResponseWrapper.CollectionInfo
Internal-use class to wrap response ofshowCollections
interface.
-
Constructor Summary
Constructors Constructor Description ShowCollResponseWrapper(@NonNull io.milvus.grpc.ShowCollectionsResponse response)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ShowCollResponseWrapper.CollectionInfo
getCollectionInfoByName(@NonNull java.lang.String collectionName)
Get information of one collection by name.java.util.List<java.lang.String>
getCollectionNames()
java.util.List<ShowCollResponseWrapper.CollectionInfo>
getCollectionsInfo()
Get information of the collections.java.lang.String
toString()
Construct aString
byShowCollResponseWrapper
instance.
-
-
-
Method Detail
-
getCollectionNames
public java.util.List<java.lang.String> getCollectionNames()
-
getCollectionsInfo
public java.util.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 java.lang.String collectionName)
Get information of one collection by name.- Parameters:
collectionName
- collection name to get information- Returns:
ShowCollResponseWrapper.CollectionInfo
information of the collection
-
toString
public java.lang.String toString()
Construct aString
byShowCollResponseWrapper
instance.- Overrides:
toString
in classjava.lang.Object
- Returns:
String
-
-