milvus-logo

Class ShowCollResponseWrapper

  • java.lang.Object
    • io.milvus.response.ShowCollResponseWrapper

  • public class ShowCollResponseWrapper
    extends java.lang.Object
    Util class to wrap response of showCollections interface.
    • Constructor Detail

      • ShowCollResponseWrapper

        public ShowCollResponseWrapper​(@NonNull
                                       @NonNull io.milvus.grpc.ShowCollectionsResponse response)
    • Method Detail

      • getCollectionsInfo

        public java.util.List<ShowCollResponseWrapper.CollectionInfo> getCollectionsInfo()
                                                                                  throws IllegalResponseException
        Get information of the collections.
        Returns:
        List<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 a String by ShowCollResponseWrapper instance.
        Overrides:
        toString in class java.lang.Object
        Returns:
        String